diff --git a/CHANGELOG.md b/CHANGELOG.md index 81d729822..231b2819f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,372 @@ +# 3.1.123 2024-11-21 + +### HuaweiCloud SDK AOM + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **PushEvents** + - changes of request param + - `+ enterprise-project-id` + - `- x-enterprise-prject-id` + - **ListPromInstance** + - changes of request param + - `* Enterprise-Project-Id: optional -> required` + +### HuaweiCloud SDK CloudRTC + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the APIs `ShowUrlAuth`, `UpdateUrlAuth` + +### HuaweiCloud SDK DataArtsStudio + +- _API Version_ + - V1 +- _Features_ + - Support the API `ListWorkspacesForUser` +- _Bug Fix_ + - None +- _Change_ + - **DebugDataconnection** + - changes of request param + - `+ supportService` + - **CreateConnections** + - changes of request param + - `+ data_source_vos.supportService` + - **UpdateDataconnection** + - changes of request param + - `+ data_source_vos.supportService` + +### HuaweiCloud SDK DDS + +- _API Version_ + - V3 +- _Features_ + - Support the following APIs: + - `ValidateConfigurationName` + - `ShowInstanceConfigurationModifyHistory` + - `SetAutoEnlargePolicies` + - `BatchDeleteBackup` + - `ShowAutoEnlargePolicy` + - `ListScheduledTasks` + - `CancelScheduledTask` + - `BatchUpgradeDatabaseVersion` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DWS + +- _API Version_ + - V2 +- _Features_ + - Support the APIs `StartCluster`, `StopCluster` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK EVS + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the APIs `ChangeVolumeChargeMode`, `UnsubscribePostpaidVolume` + - **RetypeVolume** + - changes of request param + - `+ os-retype.iops` + - `+ os-retype.throughput` + +### HuaweiCloud SDK FunctionGraph + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowFunctionTrigger** + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **UpdateTrigger** + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **CreateFunctionTrigger** + - changes of request param + - `+ event_data.channel_id` + - `+ event_data.event_types` + - `+ event_data.status: enum value [ACTIVE,DISABLE]` + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **ListFunctionTriggers** + - changes of response param + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _API Version_ + - V3 +- _Features_ + - Support the following APIs: + - `ShowBackupPolicies` + - `ApplyConfigurationToInstances` + - `UpdateInstanceConfigurations` + - `CreateDbCacheMapping` + - `DeleteDbCacheMapping` + - `UpdateDbCacheRule` + - `CreateDbCacheRule` + - `DeleteDbCacheRule` + - `ListDbCacheMappings` + - `ListDbCacheRules` + - `ShowSecondLevelMonitoringStatus` + - `SwitchSecondLevelMonitoring` + - `SetInstanceDataDump` + - `ListInstanceMaintenanceWindow` + - `ModifyInstanceMaintenanceWindow` + - `ListNosqlTaskList` + - `CancelInstanceScheduleWindow` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK GaussDBforopenGauss + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateLimitTask** + - changes of response param + - `+ job_id` + - `- jobId` + - `* key_words: list -> string` + - **UpdateLimitTask** + - changes of response param + - `+ job_id` + - `- jobId` + +### HuaweiCloud SDK HSS + +- _API Version_ + - V5 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListApps** + - changes of request param + - `* host_id: required -> optional` + +### HuaweiCloud SDK Meeting + +- _API Version_ + - V1 +- _Features_ + - Support the API `CheckCallNumberInConf` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK MetaStudio + +- _API Version_ + - V1 +- _Features_ + - Support the APIs `CreateBeautyPreviewJob`, `ShowBeautyPreviewJob`, `StartBeautyPreviewJob` +- _Bug Fix_ + - None +- _Change_ + - **List2dModelTrainingJob** + - changes of response param + - `+ jobs.is_only_human_model` + - `+ jobs.state: enum value [WAIT_ASSET_SYNC]` + - **Create2dModelTrainingJob** + - changes of request param + - `+ beauty_level` + - `+ is_only_human_model` + - changes of response param + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Update2dModelTrainingJob** + - changes of request param + - `+ beauty_level` + - `+ samples_basic_info.recommended_value` + - changes of response param + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Show2dModelTrainingJob** + - changes of response param + - `+ allocated_resource` + - `+ pre_beauty_image_download_url` + - `+ post_beauty_image_download_url` + - `+ inference_data_process_chat_action_mark_info` + - `+ is_only_human_model` + - `+ traning_video_mark_info` + - `+ beauty_level` + - `+ state: enum value [WAIT_ASSET_SYNC]` + - `+ samples.recommended_value` + - `+ inference_data_process_video_mark_info.chat_video_start_time` + - `+ inference_data_process_video_mark_info.chat_video_end_time` + - **ShowAsset** + - changes of response param + - `* asset_extra_meta.image_meta.size: number -> integer` + - **UpdateDigitalAsset** + - changes of request param + - `* asset_extra_meta.image_meta.size: number -> integer` + - changes of response param + - `* asset_extra_meta.image_meta.size: number -> integer` + - **CreateDigitalAsset** + - changes of request param + - `* asset_extra_meta.image_meta.size: number -> integer` + - **ListAssets** + - changes of response param + - `* assets.asset_extra_meta.image_meta.size: number -> integer` + +### HuaweiCloud SDK SFSTurbo + +- _API Version_ + - V1 +- _Features_ + - Support the APIs `UpdateObsTargetAttributes`, `UpdateObsTargetPolicy`, `DeleteHpcCacheTask` +- _Bug Fix_ + - None +- _Change_ + - **CreateHpcCacheTask** + - changes of request param + - `+ attributes` + - **ShowHpcCacheTask** + - changes of response param + - `+ status: enum value [SUCCESS,DOING,FAIL]` + - **ShowLdapConfig** + - changes of response param + - `+ schema` + - `+ search_timeout` + - `+ backup_url` + - `+ allow_local_user` + - **UpdateLdapConfig** + - changes of request param + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **CreateLdapConfig** + - changes of request param + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **ShowShare** + - changes of response param + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - **ListSharedTags** + - changes of request param + - `+ limit` + - `+ offset` + - **ListHpcCacheTasks** + - changes of request param + - `+ start_time` + - `+ end_time` + - changes of response param + - `+ tasks.status: enum value [SUCCESS,DOING,FAIL]` + - **ShowBackendTargetInfo** + - changes of response param + - `+ obs.policy` + - `+ obs.attributes` + - **ListPermRules** + - changes of request param + - `+ limit` + - `+ offset` + - **ShowJobDetail** + - changes of response param + - `+ status: enum value [success,failed,waiting,running]` + - **ListShares** + - changes of response param + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - `+ shares.optional_endpoint` + - `+ shares.hpc_bw` + - `+ shares.instanceId` + - `+ shares.instanceType` + - `+ shares.statusDetail` + - `+ shares.features` + - **CreateBackendTarget** + - changes of request param + - `+ obs.policy` + - `+ obs.attributes` + - changes of response param + - `+ obs.policy` + - `+ obs.attributes` + - **ListBackendTargets** + - changes of response param + - `+ targets.obs.policy` + - `+ targets.obs.attributes` + - **SetHpcCacheBackend** + - changes of request param + - `- update_hpc_cache.data.obs` + # 3.1.122 2024-11-14 ### HuaweiCloud SDK AOM diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 83b839e36..96c0f843e 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,372 @@ +# 3.1.123 2024-11-21 + +### HuaweiCloud SDK AOM + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **PushEvents** + - 请求参数变更 + - `+ enterprise-project-id` + - `- x-enterprise-prject-id` + - **ListPromInstance** + - 请求参数变更 + - `* Enterprise-Project-Id: optional -> required` + +### HuaweiCloud SDK CloudRTC + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 移除接口`ShowUrlAuth`、`UpdateUrlAuth` + +### HuaweiCloud SDK DataArtsStudio + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`ListWorkspacesForUser` +- _解决问题_ + - 无 +- _特性变更_ + - **DebugDataconnection** + - 请求参数变更 + - `+ supportService` + - **CreateConnections** + - 请求参数变更 + - `+ data_source_vos.supportService` + - **UpdateDataconnection** + - 请求参数变更 + - `+ data_source_vos.supportService` + +### HuaweiCloud SDK DDS + +- _接口版本_ + - V3 +- _新增特性_ + - 支持以下接口: + - `ValidateConfigurationName` + - `ShowInstanceConfigurationModifyHistory` + - `SetAutoEnlargePolicies` + - `BatchDeleteBackup` + - `ShowAutoEnlargePolicy` + - `ListScheduledTasks` + - `CancelScheduledTask` + - `BatchUpgradeDatabaseVersion` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DWS + +- _接口版本_ + - V2 +- _新增特性_ + - 支持接口`StartCluster`、`StopCluster` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK EVS + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 移除接口`ChangeVolumeChargeMode`、`UnsubscribePostpaidVolume` + - **RetypeVolume** + - 请求参数变更 + - `+ os-retype.iops` + - `+ os-retype.throughput` + +### HuaweiCloud SDK FunctionGraph + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowFunctionTrigger** + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **UpdateTrigger** + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **CreateFunctionTrigger** + - 请求参数变更 + - `+ event_data.channel_id` + - `+ event_data.event_types` + - `+ event_data.status: enum value [ACTIVE,DISABLE]` + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + - **ListFunctionTriggers** + - 响应参数变更 + - `+ event_data.Key_encode` + - `+ event_data.agency` + - `+ event_data.channel_name` + - `+ event_data.channel_id` + - `+ event_data.source_name` + - `+ event_data.created_time` + - `+ event_data.status` + - `+ event_data.trigger_name` + - `+ event_data.event_types` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _接口版本_ + - V3 +- _新增特性_ + - 支持以下接口: + - `ShowBackupPolicies` + - `ApplyConfigurationToInstances` + - `UpdateInstanceConfigurations` + - `CreateDbCacheMapping` + - `DeleteDbCacheMapping` + - `UpdateDbCacheRule` + - `CreateDbCacheRule` + - `DeleteDbCacheRule` + - `ListDbCacheMappings` + - `ListDbCacheRules` + - `ShowSecondLevelMonitoringStatus` + - `SwitchSecondLevelMonitoring` + - `SetInstanceDataDump` + - `ListInstanceMaintenanceWindow` + - `ModifyInstanceMaintenanceWindow` + - `ListNosqlTaskList` + - `CancelInstanceScheduleWindow` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK GaussDBforopenGauss + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateLimitTask** + - 响应参数变更 + - `+ job_id` + - `- jobId` + - `* key_words: list -> string` + - **UpdateLimitTask** + - 响应参数变更 + - `+ job_id` + - `- jobId` + +### HuaweiCloud SDK HSS + +- _接口版本_ + - V5 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListApps** + - 请求参数变更 + - `* host_id: required -> optional` + +### HuaweiCloud SDK Meeting + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`CheckCallNumberInConf` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK MetaStudio + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`CreateBeautyPreviewJob`、`ShowBeautyPreviewJob`、`StartBeautyPreviewJob` +- _解决问题_ + - 无 +- _特性变更_ + - **List2dModelTrainingJob** + - 响应参数变更 + - `+ jobs.is_only_human_model` + - `+ jobs.state: enum value [WAIT_ASSET_SYNC]` + - **Create2dModelTrainingJob** + - 请求参数变更 + - `+ beauty_level` + - `+ is_only_human_model` + - 响应参数变更 + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Update2dModelTrainingJob** + - 请求参数变更 + - `+ beauty_level` + - `+ samples_basic_info.recommended_value` + - 响应参数变更 + - `+ post_beauty_image_upload_url` + - `+ pre_beauty_image_upload_url` + - **Show2dModelTrainingJob** + - 响应参数变更 + - `+ allocated_resource` + - `+ pre_beauty_image_download_url` + - `+ post_beauty_image_download_url` + - `+ inference_data_process_chat_action_mark_info` + - `+ is_only_human_model` + - `+ traning_video_mark_info` + - `+ beauty_level` + - `+ state: enum value [WAIT_ASSET_SYNC]` + - `+ samples.recommended_value` + - `+ inference_data_process_video_mark_info.chat_video_start_time` + - `+ inference_data_process_video_mark_info.chat_video_end_time` + - **ShowAsset** + - 响应参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - **UpdateDigitalAsset** + - 请求参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - 响应参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - **CreateDigitalAsset** + - 请求参数变更 + - `* asset_extra_meta.image_meta.size: number -> integer` + - **ListAssets** + - 响应参数变更 + - `* assets.asset_extra_meta.image_meta.size: number -> integer` + +### HuaweiCloud SDK SFSTurbo + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`UpdateObsTargetAttributes`、`UpdateObsTargetPolicy`、`DeleteHpcCacheTask` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateHpcCacheTask** + - 请求参数变更 + - `+ attributes` + - **ShowHpcCacheTask** + - 响应参数变更 + - `+ status: enum value [SUCCESS,DOING,FAIL]` + - **ShowLdapConfig** + - 响应参数变更 + - `+ schema` + - `+ search_timeout` + - `+ backup_url` + - `+ allow_local_user` + - **UpdateLdapConfig** + - 请求参数变更 + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **CreateLdapConfig** + - 请求参数变更 + - `+ backup_url` + - `+ schema` + - `+ search_timeout` + - `+ allow_local_user` + - **ShowShare** + - 响应参数变更 + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - **ListSharedTags** + - 请求参数变更 + - `+ limit` + - `+ offset` + - **ListHpcCacheTasks** + - 请求参数变更 + - `+ start_time` + - `+ end_time` + - 响应参数变更 + - `+ tasks.status: enum value [SUCCESS,DOING,FAIL]` + - **ShowBackendTargetInfo** + - 响应参数变更 + - `+ obs.policy` + - `+ obs.attributes` + - **ListPermRules** + - 请求参数变更 + - `+ limit` + - `+ offset` + - **ShowJobDetail** + - 响应参数变更 + - `+ status: enum value [success,failed,waiting,running]` + - **ListShares** + - 响应参数变更 + - `+ optional_endpoint` + - `+ statusDetail` + - `+ features` + - `+ instanceId` + - `+ instanceType` + - `+ hpc_bw` + - `+ shares.optional_endpoint` + - `+ shares.hpc_bw` + - `+ shares.instanceId` + - `+ shares.instanceType` + - `+ shares.statusDetail` + - `+ shares.features` + - **CreateBackendTarget** + - 请求参数变更 + - `+ obs.policy` + - `+ obs.attributes` + - 响应参数变更 + - `+ obs.policy` + - `+ obs.attributes` + - **ListBackendTargets** + - 响应参数变更 + - `+ targets.obs.policy` + - `+ targets.obs.attributes` + - **SetHpcCacheBackend** + - 请求参数变更 + - `- update_hpc_cache.data.obs` + # 3.1.122 2024-11-14 ### HuaweiCloud SDK AOM diff --git a/VERSION b/VERSION index d65367016..f68b3dc0a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.122 +3.1.123 diff --git a/huaweicloud-sdk-aad/requirements.txt b/huaweicloud-sdk-aad/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-aad/requirements.txt +++ b/huaweicloud-sdk-aad/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-aad/setup.py b/huaweicloud-sdk-aad/setup.py index 4ba76c644..e33c645e6 100644 --- a/huaweicloud-sdk-aad/setup.py +++ b/huaweicloud-sdk-aad/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkaad" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index 3401387ad..1b0dbd6cb 100644 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,167 +1,167 @@ -huaweicloudsdkcore == 3.1.122 -huaweicloudsdkaad == 3.1.122 -huaweicloudsdkantiddos == 3.1.122 -huaweicloudsdkaom == 3.1.122 -huaweicloudsdkaos == 3.1.122 -huaweicloudsdkapig == 3.1.122 -huaweicloudsdkapm == 3.1.122 -huaweicloudsdkas == 3.1.122 -huaweicloudsdkasm == 3.1.122 -huaweicloudsdkbcs == 3.1.122 -huaweicloudsdkbms == 3.1.122 -huaweicloudsdkbss == 3.1.122 -huaweicloudsdkbssintl == 3.1.122 -huaweicloudsdkcae == 3.1.122 -huaweicloudsdkcampusgo == 3.1.122 -huaweicloudsdkcbh == 3.1.122 -huaweicloudsdkcbr == 3.1.122 -huaweicloudsdkcbs == 3.1.122 -huaweicloudsdkcc == 3.1.122 -huaweicloudsdkcce == 3.1.122 -huaweicloudsdkccm == 3.1.122 -huaweicloudsdkcdm == 3.1.122 -huaweicloudsdkcdn == 3.1.122 -huaweicloudsdkces == 3.1.122 -huaweicloudsdkcfw == 3.1.122 -huaweicloudsdkcgs == 3.1.122 -huaweicloudsdkclassroom == 3.1.122 -huaweicloudsdkcloudide == 3.1.122 -huaweicloudsdkcloudpond == 3.1.122 -huaweicloudsdkcloudrtc == 3.1.122 -huaweicloudsdkcloudtable == 3.1.122 -huaweicloudsdkcloudtest == 3.1.122 -huaweicloudsdkcoc == 3.1.122 -huaweicloudsdkcodeartsartifact == 3.1.122 -huaweicloudsdkcodeartsbuild == 3.1.122 -huaweicloudsdkcodeartscheck == 3.1.122 -huaweicloudsdkcodeartsdeploy == 3.1.122 -huaweicloudsdkcodeartsgovernance == 3.1.122 -huaweicloudsdkcodeartsinspector == 3.1.122 -huaweicloudsdkcodeartspipeline == 3.1.122 -huaweicloudsdkcodecraft == 3.1.122 -huaweicloudsdkcodehub == 3.1.122 -huaweicloudsdkconfig == 3.1.122 -huaweicloudsdkcph == 3.1.122 -huaweicloudsdkcpts == 3.1.122 -huaweicloudsdkcse == 3.1.122 -huaweicloudsdkcsms == 3.1.122 -huaweicloudsdkcss == 3.1.122 -huaweicloudsdkcts == 3.1.122 -huaweicloudsdkdas == 3.1.122 -huaweicloudsdkdataartsfabric == 3.1.122 -huaweicloudsdkdataartsfabricep == 3.1.122 -huaweicloudsdkdataartsstudio == 3.1.122 -huaweicloudsdkdbss == 3.1.122 -huaweicloudsdkdc == 3.1.122 -huaweicloudsdkdcs == 3.1.122 -huaweicloudsdkddm == 3.1.122 -huaweicloudsdkdds == 3.1.122 -huaweicloudsdkdeh == 3.1.122 -huaweicloudsdkdevstar == 3.1.122 -huaweicloudsdkdgc == 3.1.122 -huaweicloudsdkdis == 3.1.122 -huaweicloudsdkdlf == 3.1.122 -huaweicloudsdkdli == 3.1.122 -huaweicloudsdkdns == 3.1.122 -huaweicloudsdkdris == 3.1.122 -huaweicloudsdkdrs == 3.1.122 -huaweicloudsdkdsc == 3.1.122 -huaweicloudsdkdwr == 3.1.122 -huaweicloudsdkdws == 3.1.122 -huaweicloudsdkec == 3.1.122 -huaweicloudsdkecs == 3.1.122 -huaweicloudsdkedgesec == 3.1.122 -huaweicloudsdkeg == 3.1.122 -huaweicloudsdkeihealth == 3.1.122 -huaweicloudsdkeip == 3.1.122 -huaweicloudsdkelb == 3.1.122 -huaweicloudsdkeps == 3.1.122 -huaweicloudsdker == 3.1.122 -huaweicloudsdkevs == 3.1.122 -huaweicloudsdkfrs == 3.1.122 -huaweicloudsdkfunctiongraph == 3.1.122 -huaweicloudsdkga == 3.1.122 -huaweicloudsdkgaussdb == 3.1.122 -huaweicloudsdkgaussdbfornosql == 3.1.122 -huaweicloudsdkgaussdbforopengauss == 3.1.122 -huaweicloudsdkgeip == 3.1.122 -huaweicloudsdkges == 3.1.122 -huaweicloudsdkgsl == 3.1.122 -huaweicloudsdkhilens == 3.1.122 -huaweicloudsdkhss == 3.1.122 -huaweicloudsdkiam == 3.1.122 -huaweicloudsdkiamaccessanalyzer == 3.1.122 -huaweicloudsdkidentitycenter == 3.1.122 -huaweicloudsdkidentitycenterstore == 3.1.122 -huaweicloudsdkidme == 3.1.122 -huaweicloudsdkidmeclassicapi == 3.1.122 -huaweicloudsdkiec == 3.1.122 -huaweicloudsdkief == 3.1.122 -huaweicloudsdkimage == 3.1.122 -huaweicloudsdkimagesearch == 3.1.122 -huaweicloudsdkims == 3.1.122 -huaweicloudsdkiotanalytics == 3.1.122 -huaweicloudsdkiotda == 3.1.122 -huaweicloudsdkiotdm == 3.1.122 -huaweicloudsdkiotedge == 3.1.122 -huaweicloudsdkivs == 3.1.122 -huaweicloudsdkkafka == 3.1.122 -huaweicloudsdkkms == 3.1.122 -huaweicloudsdkkoomessage == 3.1.122 -huaweicloudsdkkps == 3.1.122 -huaweicloudsdklakeformation == 3.1.122 -huaweicloudsdklive == 3.1.122 -huaweicloudsdklts == 3.1.122 -huaweicloudsdkmapds == 3.1.122 -huaweicloudsdkmas == 3.1.122 -huaweicloudsdkmeeting == 3.1.122 -huaweicloudsdkmetastudio == 3.1.122 -huaweicloudsdkmoderation == 3.1.122 -huaweicloudsdkmpc == 3.1.122 -huaweicloudsdkmrs == 3.1.122 -huaweicloudsdkmsgsms == 3.1.122 -huaweicloudsdkmssi == 3.1.122 -huaweicloudsdknat == 3.1.122 -huaweicloudsdknlp == 3.1.122 -huaweicloudsdkobs == 3.1.122 -huaweicloudsdkocr == 3.1.122 -huaweicloudsdkoctopus == 3.1.122 -huaweicloudsdkoms == 3.1.122 -huaweicloudsdkoptverse == 3.1.122 -huaweicloudsdkorganizations == 3.1.122 -huaweicloudsdkorgid == 3.1.122 -huaweicloudsdkoroas == 3.1.122 -huaweicloudsdkosm == 3.1.122 -huaweicloudsdkpangulargemodels == 3.1.122 -huaweicloudsdkprojectman == 3.1.122 -huaweicloudsdkrabbitmq == 3.1.122 -huaweicloudsdkram == 3.1.122 -huaweicloudsdkrds == 3.1.122 -huaweicloudsdkres == 3.1.122 -huaweicloudsdkrgc == 3.1.122 -huaweicloudsdkrms == 3.1.122 -huaweicloudsdkrocketmq == 3.1.122 -huaweicloudsdkroma == 3.1.122 -huaweicloudsdksa == 3.1.122 -huaweicloudsdkscm == 3.1.122 -huaweicloudsdksdrs == 3.1.122 -huaweicloudsdksecmaster == 3.1.122 -huaweicloudsdkservicestage == 3.1.122 -huaweicloudsdksfsturbo == 3.1.122 -huaweicloudsdksis == 3.1.122 -huaweicloudsdksmn == 3.1.122 -huaweicloudsdksms == 3.1.122 -huaweicloudsdksts == 3.1.122 -huaweicloudsdkswr == 3.1.122 -huaweicloudsdktics == 3.1.122 -huaweicloudsdktms == 3.1.122 -huaweicloudsdkugo == 3.1.122 -huaweicloudsdkvas == 3.1.122 -huaweicloudsdkvcm == 3.1.122 -huaweicloudsdkvod == 3.1.122 -huaweicloudsdkvpc == 3.1.122 -huaweicloudsdkvpcep == 3.1.122 -huaweicloudsdkvpn == 3.1.122 -huaweicloudsdkwaf == 3.1.122 -huaweicloudsdkworkspace == 3.1.122 -huaweicloudsdkworkspaceapp == 3.1.122 +huaweicloudsdkcore == 3.1.123 +huaweicloudsdkaad == 3.1.123 +huaweicloudsdkantiddos == 3.1.123 +huaweicloudsdkaom == 3.1.123 +huaweicloudsdkaos == 3.1.123 +huaweicloudsdkapig == 3.1.123 +huaweicloudsdkapm == 3.1.123 +huaweicloudsdkas == 3.1.123 +huaweicloudsdkasm == 3.1.123 +huaweicloudsdkbcs == 3.1.123 +huaweicloudsdkbms == 3.1.123 +huaweicloudsdkbss == 3.1.123 +huaweicloudsdkbssintl == 3.1.123 +huaweicloudsdkcae == 3.1.123 +huaweicloudsdkcampusgo == 3.1.123 +huaweicloudsdkcbh == 3.1.123 +huaweicloudsdkcbr == 3.1.123 +huaweicloudsdkcbs == 3.1.123 +huaweicloudsdkcc == 3.1.123 +huaweicloudsdkcce == 3.1.123 +huaweicloudsdkccm == 3.1.123 +huaweicloudsdkcdm == 3.1.123 +huaweicloudsdkcdn == 3.1.123 +huaweicloudsdkces == 3.1.123 +huaweicloudsdkcfw == 3.1.123 +huaweicloudsdkcgs == 3.1.123 +huaweicloudsdkclassroom == 3.1.123 +huaweicloudsdkcloudide == 3.1.123 +huaweicloudsdkcloudpond == 3.1.123 +huaweicloudsdkcloudrtc == 3.1.123 +huaweicloudsdkcloudtable == 3.1.123 +huaweicloudsdkcloudtest == 3.1.123 +huaweicloudsdkcoc == 3.1.123 +huaweicloudsdkcodeartsartifact == 3.1.123 +huaweicloudsdkcodeartsbuild == 3.1.123 +huaweicloudsdkcodeartscheck == 3.1.123 +huaweicloudsdkcodeartsdeploy == 3.1.123 +huaweicloudsdkcodeartsgovernance == 3.1.123 +huaweicloudsdkcodeartsinspector == 3.1.123 +huaweicloudsdkcodeartspipeline == 3.1.123 +huaweicloudsdkcodecraft == 3.1.123 +huaweicloudsdkcodehub == 3.1.123 +huaweicloudsdkconfig == 3.1.123 +huaweicloudsdkcph == 3.1.123 +huaweicloudsdkcpts == 3.1.123 +huaweicloudsdkcse == 3.1.123 +huaweicloudsdkcsms == 3.1.123 +huaweicloudsdkcss == 3.1.123 +huaweicloudsdkcts == 3.1.123 +huaweicloudsdkdas == 3.1.123 +huaweicloudsdkdataartsfabric == 3.1.123 +huaweicloudsdkdataartsfabricep == 3.1.123 +huaweicloudsdkdataartsstudio == 3.1.123 +huaweicloudsdkdbss == 3.1.123 +huaweicloudsdkdc == 3.1.123 +huaweicloudsdkdcs == 3.1.123 +huaweicloudsdkddm == 3.1.123 +huaweicloudsdkdds == 3.1.123 +huaweicloudsdkdeh == 3.1.123 +huaweicloudsdkdevstar == 3.1.123 +huaweicloudsdkdgc == 3.1.123 +huaweicloudsdkdis == 3.1.123 +huaweicloudsdkdlf == 3.1.123 +huaweicloudsdkdli == 3.1.123 +huaweicloudsdkdns == 3.1.123 +huaweicloudsdkdris == 3.1.123 +huaweicloudsdkdrs == 3.1.123 +huaweicloudsdkdsc == 3.1.123 +huaweicloudsdkdwr == 3.1.123 +huaweicloudsdkdws == 3.1.123 +huaweicloudsdkec == 3.1.123 +huaweicloudsdkecs == 3.1.123 +huaweicloudsdkedgesec == 3.1.123 +huaweicloudsdkeg == 3.1.123 +huaweicloudsdkeihealth == 3.1.123 +huaweicloudsdkeip == 3.1.123 +huaweicloudsdkelb == 3.1.123 +huaweicloudsdkeps == 3.1.123 +huaweicloudsdker == 3.1.123 +huaweicloudsdkevs == 3.1.123 +huaweicloudsdkfrs == 3.1.123 +huaweicloudsdkfunctiongraph == 3.1.123 +huaweicloudsdkga == 3.1.123 +huaweicloudsdkgaussdb == 3.1.123 +huaweicloudsdkgaussdbfornosql == 3.1.123 +huaweicloudsdkgaussdbforopengauss == 3.1.123 +huaweicloudsdkgeip == 3.1.123 +huaweicloudsdkges == 3.1.123 +huaweicloudsdkgsl == 3.1.123 +huaweicloudsdkhilens == 3.1.123 +huaweicloudsdkhss == 3.1.123 +huaweicloudsdkiam == 3.1.123 +huaweicloudsdkiamaccessanalyzer == 3.1.123 +huaweicloudsdkidentitycenter == 3.1.123 +huaweicloudsdkidentitycenterstore == 3.1.123 +huaweicloudsdkidme == 3.1.123 +huaweicloudsdkidmeclassicapi == 3.1.123 +huaweicloudsdkiec == 3.1.123 +huaweicloudsdkief == 3.1.123 +huaweicloudsdkimage == 3.1.123 +huaweicloudsdkimagesearch == 3.1.123 +huaweicloudsdkims == 3.1.123 +huaweicloudsdkiotanalytics == 3.1.123 +huaweicloudsdkiotda == 3.1.123 +huaweicloudsdkiotdm == 3.1.123 +huaweicloudsdkiotedge == 3.1.123 +huaweicloudsdkivs == 3.1.123 +huaweicloudsdkkafka == 3.1.123 +huaweicloudsdkkms == 3.1.123 +huaweicloudsdkkoomessage == 3.1.123 +huaweicloudsdkkps == 3.1.123 +huaweicloudsdklakeformation == 3.1.123 +huaweicloudsdklive == 3.1.123 +huaweicloudsdklts == 3.1.123 +huaweicloudsdkmapds == 3.1.123 +huaweicloudsdkmas == 3.1.123 +huaweicloudsdkmeeting == 3.1.123 +huaweicloudsdkmetastudio == 3.1.123 +huaweicloudsdkmoderation == 3.1.123 +huaweicloudsdkmpc == 3.1.123 +huaweicloudsdkmrs == 3.1.123 +huaweicloudsdkmsgsms == 3.1.123 +huaweicloudsdkmssi == 3.1.123 +huaweicloudsdknat == 3.1.123 +huaweicloudsdknlp == 3.1.123 +huaweicloudsdkobs == 3.1.123 +huaweicloudsdkocr == 3.1.123 +huaweicloudsdkoctopus == 3.1.123 +huaweicloudsdkoms == 3.1.123 +huaweicloudsdkoptverse == 3.1.123 +huaweicloudsdkorganizations == 3.1.123 +huaweicloudsdkorgid == 3.1.123 +huaweicloudsdkoroas == 3.1.123 +huaweicloudsdkosm == 3.1.123 +huaweicloudsdkpangulargemodels == 3.1.123 +huaweicloudsdkprojectman == 3.1.123 +huaweicloudsdkrabbitmq == 3.1.123 +huaweicloudsdkram == 3.1.123 +huaweicloudsdkrds == 3.1.123 +huaweicloudsdkres == 3.1.123 +huaweicloudsdkrgc == 3.1.123 +huaweicloudsdkrms == 3.1.123 +huaweicloudsdkrocketmq == 3.1.123 +huaweicloudsdkroma == 3.1.123 +huaweicloudsdksa == 3.1.123 +huaweicloudsdkscm == 3.1.123 +huaweicloudsdksdrs == 3.1.123 +huaweicloudsdksecmaster == 3.1.123 +huaweicloudsdkservicestage == 3.1.123 +huaweicloudsdksfsturbo == 3.1.123 +huaweicloudsdksis == 3.1.123 +huaweicloudsdksmn == 3.1.123 +huaweicloudsdksms == 3.1.123 +huaweicloudsdksts == 3.1.123 +huaweicloudsdkswr == 3.1.123 +huaweicloudsdktics == 3.1.123 +huaweicloudsdktms == 3.1.123 +huaweicloudsdkugo == 3.1.123 +huaweicloudsdkvas == 3.1.123 +huaweicloudsdkvcm == 3.1.123 +huaweicloudsdkvod == 3.1.123 +huaweicloudsdkvpc == 3.1.123 +huaweicloudsdkvpcep == 3.1.123 +huaweicloudsdkvpn == 3.1.123 +huaweicloudsdkwaf == 3.1.123 +huaweicloudsdkworkspace == 3.1.123 +huaweicloudsdkworkspaceapp == 3.1.123 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index 68c357ff4..9eb41bb33 100644 --- a/huaweicloud-sdk-all/setup.py +++ b/huaweicloud-sdk-all/setup.py @@ -23,7 +23,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkall" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,173 +34,173 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.122', - 'huaweicloudsdkaad==3.1.122', - 'huaweicloudsdkantiddos==3.1.122', - 'huaweicloudsdkaom==3.1.122', - 'huaweicloudsdkaos==3.1.122', - 'huaweicloudsdkapig==3.1.122', - 'huaweicloudsdkapm==3.1.122', - 'huaweicloudsdkas==3.1.122', - 'huaweicloudsdkasm==3.1.122', - 'huaweicloudsdkbcs==3.1.122', - 'huaweicloudsdkbms==3.1.122', - 'huaweicloudsdkbss==3.1.122', - 'huaweicloudsdkbssintl==3.1.122', - 'huaweicloudsdkcae==3.1.122', - 'huaweicloudsdkcampusgo==3.1.122', - 'huaweicloudsdkcbh==3.1.122', - 'huaweicloudsdkcbr==3.1.122', - 'huaweicloudsdkcbs==3.1.122', - 'huaweicloudsdkcc==3.1.122', - 'huaweicloudsdkcce==3.1.122', - 'huaweicloudsdkccm==3.1.122', - 'huaweicloudsdkcdm==3.1.122', - 'huaweicloudsdkcdn==3.1.122', - 'huaweicloudsdkces==3.1.122', - 'huaweicloudsdkcfw==3.1.122', - 'huaweicloudsdkcgs==3.1.122', - 'huaweicloudsdkclassroom==3.1.122', - 'huaweicloudsdkcloudide==3.1.122', - 'huaweicloudsdkcloudpond==3.1.122', - 'huaweicloudsdkcloudrtc==3.1.122', - 'huaweicloudsdkcloudtable==3.1.122', - 'huaweicloudsdkcloudtest==3.1.122', - 'huaweicloudsdkcoc==3.1.122', - 'huaweicloudsdkcodeartsartifact==3.1.122', - 'huaweicloudsdkcodeartsbuild==3.1.122', - 'huaweicloudsdkcodeartscheck==3.1.122', - 'huaweicloudsdkcodeartsdeploy==3.1.122', - 'huaweicloudsdkcodeartsgovernance==3.1.122', - 'huaweicloudsdkcodeartsinspector==3.1.122', - 'huaweicloudsdkcodeartspipeline==3.1.122', - 'huaweicloudsdkcodecraft==3.1.122', - 'huaweicloudsdkcodehub==3.1.122', - 'huaweicloudsdkconfig==3.1.122', - 'huaweicloudsdkcph==3.1.122', - 'huaweicloudsdkcpts==3.1.122', - 'huaweicloudsdkcse==3.1.122', - 'huaweicloudsdkcsms==3.1.122', - 'huaweicloudsdkcss==3.1.122', - 'huaweicloudsdkcts==3.1.122', - 'huaweicloudsdkdas==3.1.122', - 'huaweicloudsdkdataartsfabric==3.1.122', - 'huaweicloudsdkdataartsfabricep==3.1.122', - 'huaweicloudsdkdataartsstudio==3.1.122', - 'huaweicloudsdkdbss==3.1.122', - 'huaweicloudsdkdc==3.1.122', - 'huaweicloudsdkdcs==3.1.122', - 'huaweicloudsdkddm==3.1.122', - 'huaweicloudsdkdds==3.1.122', - 'huaweicloudsdkdeh==3.1.122', - 'huaweicloudsdkdevstar==3.1.122', - 'huaweicloudsdkdgc==3.1.122', - 'huaweicloudsdkdis==3.1.122', - 'huaweicloudsdkdlf==3.1.122', - 'huaweicloudsdkdli==3.1.122', - 'huaweicloudsdkdns==3.1.122', - 'huaweicloudsdkdris==3.1.122', - 'huaweicloudsdkdrs==3.1.122', - 'huaweicloudsdkdsc==3.1.122', - 'huaweicloudsdkdwr==3.1.122', - 'huaweicloudsdkdws==3.1.122', - 'huaweicloudsdkec==3.1.122', - 'huaweicloudsdkecs==3.1.122', - 'huaweicloudsdkedgesec==3.1.122', - 'huaweicloudsdkeg==3.1.122', - 'huaweicloudsdkeihealth==3.1.122', - 'huaweicloudsdkeip==3.1.122', - 'huaweicloudsdkelb==3.1.122', - 'huaweicloudsdkeps==3.1.122', - 'huaweicloudsdker==3.1.122', - 'huaweicloudsdkevs==3.1.122', - 'huaweicloudsdkfrs==3.1.122', - 'huaweicloudsdkfunctiongraph==3.1.122', - 'huaweicloudsdkga==3.1.122', - 'huaweicloudsdkgaussdb==3.1.122', - 'huaweicloudsdkgaussdbfornosql==3.1.122', - 'huaweicloudsdkgaussdbforopengauss==3.1.122', - 'huaweicloudsdkgeip==3.1.122', - 'huaweicloudsdkges==3.1.122', - 'huaweicloudsdkgsl==3.1.122', - 'huaweicloudsdkhilens==3.1.122', - 'huaweicloudsdkhss==3.1.122', - 'huaweicloudsdkiam==3.1.122', - 'huaweicloudsdkiamaccessanalyzer==3.1.122', - 'huaweicloudsdkidentitycenter==3.1.122', - 'huaweicloudsdkidentitycenterstore==3.1.122', - 'huaweicloudsdkidme==3.1.122', - 'huaweicloudsdkidmeclassicapi==3.1.122', - 'huaweicloudsdkiec==3.1.122', - 'huaweicloudsdkief==3.1.122', - 'huaweicloudsdkimage==3.1.122', - 'huaweicloudsdkimagesearch==3.1.122', - 'huaweicloudsdkims==3.1.122', - 'huaweicloudsdkiotanalytics==3.1.122', - 'huaweicloudsdkiotda==3.1.122', - 'huaweicloudsdkiotdm==3.1.122', - 'huaweicloudsdkiotedge==3.1.122', - 'huaweicloudsdkivs==3.1.122', - 'huaweicloudsdkkafka==3.1.122', - 'huaweicloudsdkkms==3.1.122', - 'huaweicloudsdkkoomessage==3.1.122', - 'huaweicloudsdkkps==3.1.122', - 'huaweicloudsdklakeformation==3.1.122', - 'huaweicloudsdklive==3.1.122', - 'huaweicloudsdklts==3.1.122', - 'huaweicloudsdkmapds==3.1.122', - 'huaweicloudsdkmas==3.1.122', - 'huaweicloudsdkmeeting==3.1.122', - 'huaweicloudsdkmetastudio==3.1.122', - 'huaweicloudsdkmoderation==3.1.122', - 'huaweicloudsdkmpc==3.1.122', - 'huaweicloudsdkmrs==3.1.122', - 'huaweicloudsdkmsgsms==3.1.122', - 'huaweicloudsdkmssi==3.1.122', - 'huaweicloudsdknat==3.1.122', - 'huaweicloudsdknlp==3.1.122', - 'huaweicloudsdkobs==3.1.122', - 'huaweicloudsdkocr==3.1.122', - 'huaweicloudsdkoctopus==3.1.122', - 'huaweicloudsdkoms==3.1.122', - 'huaweicloudsdkoptverse==3.1.122', - 'huaweicloudsdkorganizations==3.1.122', - 'huaweicloudsdkorgid==3.1.122', - 'huaweicloudsdkoroas==3.1.122', - 'huaweicloudsdkosm==3.1.122', - 'huaweicloudsdkpangulargemodels==3.1.122', - 'huaweicloudsdkprojectman==3.1.122', - 'huaweicloudsdkrabbitmq==3.1.122', - 'huaweicloudsdkram==3.1.122', - 'huaweicloudsdkrds==3.1.122', - 'huaweicloudsdkres==3.1.122', - 'huaweicloudsdkrgc==3.1.122', - 'huaweicloudsdkrms==3.1.122', - 'huaweicloudsdkrocketmq==3.1.122', - 'huaweicloudsdkroma==3.1.122', - 'huaweicloudsdksa==3.1.122', - 'huaweicloudsdkscm==3.1.122', - 'huaweicloudsdksdrs==3.1.122', - 'huaweicloudsdksecmaster==3.1.122', - 'huaweicloudsdkservicestage==3.1.122', - 'huaweicloudsdksfsturbo==3.1.122', - 'huaweicloudsdksis==3.1.122', - 'huaweicloudsdksmn==3.1.122', - 'huaweicloudsdksms==3.1.122', - 'huaweicloudsdksts==3.1.122', - 'huaweicloudsdkswr==3.1.122', - 'huaweicloudsdktics==3.1.122', - 'huaweicloudsdktms==3.1.122', - 'huaweicloudsdkugo==3.1.122', - 'huaweicloudsdkvas==3.1.122', - 'huaweicloudsdkvcm==3.1.122', - 'huaweicloudsdkvod==3.1.122', - 'huaweicloudsdkvpc==3.1.122', - 'huaweicloudsdkvpcep==3.1.122', - 'huaweicloudsdkvpn==3.1.122', - 'huaweicloudsdkwaf==3.1.122', - 'huaweicloudsdkworkspace==3.1.122', - 'huaweicloudsdkworkspaceapp==3.1.122', + 'huaweicloudsdkcore==3.1.123', + 'huaweicloudsdkaad==3.1.123', + 'huaweicloudsdkantiddos==3.1.123', + 'huaweicloudsdkaom==3.1.123', + 'huaweicloudsdkaos==3.1.123', + 'huaweicloudsdkapig==3.1.123', + 'huaweicloudsdkapm==3.1.123', + 'huaweicloudsdkas==3.1.123', + 'huaweicloudsdkasm==3.1.123', + 'huaweicloudsdkbcs==3.1.123', + 'huaweicloudsdkbms==3.1.123', + 'huaweicloudsdkbss==3.1.123', + 'huaweicloudsdkbssintl==3.1.123', + 'huaweicloudsdkcae==3.1.123', + 'huaweicloudsdkcampusgo==3.1.123', + 'huaweicloudsdkcbh==3.1.123', + 'huaweicloudsdkcbr==3.1.123', + 'huaweicloudsdkcbs==3.1.123', + 'huaweicloudsdkcc==3.1.123', + 'huaweicloudsdkcce==3.1.123', + 'huaweicloudsdkccm==3.1.123', + 'huaweicloudsdkcdm==3.1.123', + 'huaweicloudsdkcdn==3.1.123', + 'huaweicloudsdkces==3.1.123', + 'huaweicloudsdkcfw==3.1.123', + 'huaweicloudsdkcgs==3.1.123', + 'huaweicloudsdkclassroom==3.1.123', + 'huaweicloudsdkcloudide==3.1.123', + 'huaweicloudsdkcloudpond==3.1.123', + 'huaweicloudsdkcloudrtc==3.1.123', + 'huaweicloudsdkcloudtable==3.1.123', + 'huaweicloudsdkcloudtest==3.1.123', + 'huaweicloudsdkcoc==3.1.123', + 'huaweicloudsdkcodeartsartifact==3.1.123', + 'huaweicloudsdkcodeartsbuild==3.1.123', + 'huaweicloudsdkcodeartscheck==3.1.123', + 'huaweicloudsdkcodeartsdeploy==3.1.123', + 'huaweicloudsdkcodeartsgovernance==3.1.123', + 'huaweicloudsdkcodeartsinspector==3.1.123', + 'huaweicloudsdkcodeartspipeline==3.1.123', + 'huaweicloudsdkcodecraft==3.1.123', + 'huaweicloudsdkcodehub==3.1.123', + 'huaweicloudsdkconfig==3.1.123', + 'huaweicloudsdkcph==3.1.123', + 'huaweicloudsdkcpts==3.1.123', + 'huaweicloudsdkcse==3.1.123', + 'huaweicloudsdkcsms==3.1.123', + 'huaweicloudsdkcss==3.1.123', + 'huaweicloudsdkcts==3.1.123', + 'huaweicloudsdkdas==3.1.123', + 'huaweicloudsdkdataartsfabric==3.1.123', + 'huaweicloudsdkdataartsfabricep==3.1.123', + 'huaweicloudsdkdataartsstudio==3.1.123', + 'huaweicloudsdkdbss==3.1.123', + 'huaweicloudsdkdc==3.1.123', + 'huaweicloudsdkdcs==3.1.123', + 'huaweicloudsdkddm==3.1.123', + 'huaweicloudsdkdds==3.1.123', + 'huaweicloudsdkdeh==3.1.123', + 'huaweicloudsdkdevstar==3.1.123', + 'huaweicloudsdkdgc==3.1.123', + 'huaweicloudsdkdis==3.1.123', + 'huaweicloudsdkdlf==3.1.123', + 'huaweicloudsdkdli==3.1.123', + 'huaweicloudsdkdns==3.1.123', + 'huaweicloudsdkdris==3.1.123', + 'huaweicloudsdkdrs==3.1.123', + 'huaweicloudsdkdsc==3.1.123', + 'huaweicloudsdkdwr==3.1.123', + 'huaweicloudsdkdws==3.1.123', + 'huaweicloudsdkec==3.1.123', + 'huaweicloudsdkecs==3.1.123', + 'huaweicloudsdkedgesec==3.1.123', + 'huaweicloudsdkeg==3.1.123', + 'huaweicloudsdkeihealth==3.1.123', + 'huaweicloudsdkeip==3.1.123', + 'huaweicloudsdkelb==3.1.123', + 'huaweicloudsdkeps==3.1.123', + 'huaweicloudsdker==3.1.123', + 'huaweicloudsdkevs==3.1.123', + 'huaweicloudsdkfrs==3.1.123', + 'huaweicloudsdkfunctiongraph==3.1.123', + 'huaweicloudsdkga==3.1.123', + 'huaweicloudsdkgaussdb==3.1.123', + 'huaweicloudsdkgaussdbfornosql==3.1.123', + 'huaweicloudsdkgaussdbforopengauss==3.1.123', + 'huaweicloudsdkgeip==3.1.123', + 'huaweicloudsdkges==3.1.123', + 'huaweicloudsdkgsl==3.1.123', + 'huaweicloudsdkhilens==3.1.123', + 'huaweicloudsdkhss==3.1.123', + 'huaweicloudsdkiam==3.1.123', + 'huaweicloudsdkiamaccessanalyzer==3.1.123', + 'huaweicloudsdkidentitycenter==3.1.123', + 'huaweicloudsdkidentitycenterstore==3.1.123', + 'huaweicloudsdkidme==3.1.123', + 'huaweicloudsdkidmeclassicapi==3.1.123', + 'huaweicloudsdkiec==3.1.123', + 'huaweicloudsdkief==3.1.123', + 'huaweicloudsdkimage==3.1.123', + 'huaweicloudsdkimagesearch==3.1.123', + 'huaweicloudsdkims==3.1.123', + 'huaweicloudsdkiotanalytics==3.1.123', + 'huaweicloudsdkiotda==3.1.123', + 'huaweicloudsdkiotdm==3.1.123', + 'huaweicloudsdkiotedge==3.1.123', + 'huaweicloudsdkivs==3.1.123', + 'huaweicloudsdkkafka==3.1.123', + 'huaweicloudsdkkms==3.1.123', + 'huaweicloudsdkkoomessage==3.1.123', + 'huaweicloudsdkkps==3.1.123', + 'huaweicloudsdklakeformation==3.1.123', + 'huaweicloudsdklive==3.1.123', + 'huaweicloudsdklts==3.1.123', + 'huaweicloudsdkmapds==3.1.123', + 'huaweicloudsdkmas==3.1.123', + 'huaweicloudsdkmeeting==3.1.123', + 'huaweicloudsdkmetastudio==3.1.123', + 'huaweicloudsdkmoderation==3.1.123', + 'huaweicloudsdkmpc==3.1.123', + 'huaweicloudsdkmrs==3.1.123', + 'huaweicloudsdkmsgsms==3.1.123', + 'huaweicloudsdkmssi==3.1.123', + 'huaweicloudsdknat==3.1.123', + 'huaweicloudsdknlp==3.1.123', + 'huaweicloudsdkobs==3.1.123', + 'huaweicloudsdkocr==3.1.123', + 'huaweicloudsdkoctopus==3.1.123', + 'huaweicloudsdkoms==3.1.123', + 'huaweicloudsdkoptverse==3.1.123', + 'huaweicloudsdkorganizations==3.1.123', + 'huaweicloudsdkorgid==3.1.123', + 'huaweicloudsdkoroas==3.1.123', + 'huaweicloudsdkosm==3.1.123', + 'huaweicloudsdkpangulargemodels==3.1.123', + 'huaweicloudsdkprojectman==3.1.123', + 'huaweicloudsdkrabbitmq==3.1.123', + 'huaweicloudsdkram==3.1.123', + 'huaweicloudsdkrds==3.1.123', + 'huaweicloudsdkres==3.1.123', + 'huaweicloudsdkrgc==3.1.123', + 'huaweicloudsdkrms==3.1.123', + 'huaweicloudsdkrocketmq==3.1.123', + 'huaweicloudsdkroma==3.1.123', + 'huaweicloudsdksa==3.1.123', + 'huaweicloudsdkscm==3.1.123', + 'huaweicloudsdksdrs==3.1.123', + 'huaweicloudsdksecmaster==3.1.123', + 'huaweicloudsdkservicestage==3.1.123', + 'huaweicloudsdksfsturbo==3.1.123', + 'huaweicloudsdksis==3.1.123', + 'huaweicloudsdksmn==3.1.123', + 'huaweicloudsdksms==3.1.123', + 'huaweicloudsdksts==3.1.123', + 'huaweicloudsdkswr==3.1.123', + 'huaweicloudsdktics==3.1.123', + 'huaweicloudsdktms==3.1.123', + 'huaweicloudsdkugo==3.1.123', + 'huaweicloudsdkvas==3.1.123', + 'huaweicloudsdkvcm==3.1.123', + 'huaweicloudsdkvod==3.1.123', + 'huaweicloudsdkvpc==3.1.123', + 'huaweicloudsdkvpcep==3.1.123', + 'huaweicloudsdkvpn==3.1.123', + 'huaweicloudsdkwaf==3.1.123', + 'huaweicloudsdkworkspace==3.1.123', + 'huaweicloudsdkworkspaceapp==3.1.123', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index 361da2a10..b181abc01 100644 --- a/huaweicloud-sdk-antiddos/setup.py +++ b/huaweicloud-sdk-antiddos/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkantiddos" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index c8ea98f7a..3ea9a58e5 100644 --- a/huaweicloud-sdk-aom/setup.py +++ b/huaweicloud-sdk-aom/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkaom" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/__init__.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/__init__.py index fbd1cc725..4c272f05d 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/__init__.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/__init__.py @@ -111,6 +111,8 @@ from huaweicloudsdkaos.v1.model.items_response import ItemsResponse from huaweicloudsdkaos.v1.model.kms_structure import KmsStructure from huaweicloudsdkaos.v1.model.list_execution_plans_request import ListExecutionPlansRequest from huaweicloudsdkaos.v1.model.list_execution_plans_response import ListExecutionPlansResponse +from huaweicloudsdkaos.v1.model.list_private_hooks_request import ListPrivateHooksRequest +from huaweicloudsdkaos.v1.model.list_private_hooks_response import ListPrivateHooksResponse from huaweicloudsdkaos.v1.model.list_stack_events_request import ListStackEventsRequest from huaweicloudsdkaos.v1.model.list_stack_events_response import ListStackEventsResponse from huaweicloudsdkaos.v1.model.list_stack_instances_request import ListStackInstancesRequest @@ -170,6 +172,8 @@ from huaweicloudsdkaos.v1.model.show_private_hook_metadata_request import ShowPr from huaweicloudsdkaos.v1.model.show_private_hook_metadata_response import ShowPrivateHookMetadataResponse from huaweicloudsdkaos.v1.model.show_private_hook_version_metadata_request import ShowPrivateHookVersionMetadataRequest from huaweicloudsdkaos.v1.model.show_private_hook_version_metadata_response import ShowPrivateHookVersionMetadataResponse +from huaweicloudsdkaos.v1.model.show_private_hook_version_policy_request import ShowPrivateHookVersionPolicyRequest +from huaweicloudsdkaos.v1.model.show_private_hook_version_policy_response import ShowPrivateHookVersionPolicyResponse from huaweicloudsdkaos.v1.model.show_stack_instance_request import ShowStackInstanceRequest from huaweicloudsdkaos.v1.model.show_stack_instance_response import ShowStackInstanceResponse from huaweicloudsdkaos.v1.model.show_stack_set_metadata_request import ShowStackSetMetadataRequest diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py index f31a03439..ea3df4e22 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py @@ -877,15 +877,21 @@ class AosAsyncClient(Client): 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化的默认版本,不允许空私有hook的创建。 设置配置(Configuration)后的私有hook才会在触发资源栈部署时生效,资源栈使用私有hook的默认版本。若创建私有hook时未指定配置项,则该私有hook在资源栈部署时不生效,后续可通过UpdatePrivateHook API更新配置。 + * 支持hook策略模板检验的资源栈服务API: - DeployStack + CreateExecutionPlan + ApplyExecutionPlan + CreateStack + DeployStack + ContinueDeployStack DeleteStack + DeleteStackEnhanced * 创建私有hook时指定的版本为初始默认版本。 * 如果同名的私有hook在当前domain_id+region下已经存在,则会返回409。 * 私有hook版本号遵循语义化版本号(Semantic Version),为用户自定义。 * 资源编排服务会对私有hook进行校验,如文件大小,策略文件语法校验等。若存在错误,则会创建失败。 * 当前仅支持部署资源前的检测,不支持部署资源过程中的检测。如果通过了部署资源前的检测,资源栈则会继续部署资源。反之会停止部署资源,并记录资源栈事件(stack events)。 - * 仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 + * 仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给予策略文件内容)。 * 策略模板中的决策结果使用object类型的hook_result,hook_result所在包的包名必须使用policy。hook_result格式如下: ``` hook_result := { @@ -979,6 +985,7 @@ class AosAsyncClient(Client): 创建私有hook版本(CreatePrivateHookVersion) 创建私有hook版本,创建私有hook版本后需要调用UpdatePrivateHook API设置为默认版本才能生效。 + * 版本号遵循语义化版本号(Semantic Version),为用户自定义。 * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 * 资源编排服务会对私有hook进行校验,如文件大小,策略文件语法校验等。若存在错误,则会创建失败。 @@ -1053,6 +1060,7 @@ class AosAsyncClient(Client): 删除私有hook(DeletePrivateHook) 删除某个私有hook以及私有hook下的全部hook版本 + * 默认版本只能调用本API删除,除默认版本外的其它版本可以调用DeletePrivateHookVersion API删除。 * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 @@ -1128,6 +1136,7 @@ class AosAsyncClient(Client): 删除私有hook版本(DeletePrivateHookVersion) 删除某个私有hook版本 + * 默认版本只能调用DeletePrivateHook API删除,除默认版本外的其它版本都可以调用本API删除。 * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 @@ -1199,6 +1208,84 @@ class AosAsyncClient(Client): return http_info + def list_private_hooks_async(self, request): + """列举私有hook + + 列举私有hook(ListPrivateHooks) + + 列举当前局点下用户所有的私有hook。 + + * 可以使用sort_key和sort_dir两个关键字对返回结果按创建时间(create_time)进行排序。给予的sort_key和sort_dir的数量须一致,否则返回400。若未给予sort_key和sort_dir,则默认按照创建时间降序排序。 + * 注意:目前暂时返回全量hook的信息,即不支持分页。 + * 若当前用户没有任何私有hook,则返回空list。 + * 具体返回的信息见ListPrivateHooksResponseBody。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListPrivateHooks + :type request: :class:`huaweicloudsdkaos.v1.ListPrivateHooksRequest` + :rtype: :class:`huaweicloudsdkaos.v1.ListPrivateHooksResponse` + """ + http_info = self._list_private_hooks_http_info(request) + return self._call_api(**http_info) + + def list_private_hooks_async_invoker(self, request): + http_info = self._list_private_hooks_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_private_hooks_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/private-hooks", + "request_type": request.__class__.__name__, + "response_type": "ListPrivateHooksResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + collection_formats['sort_key'] = 'multi' + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + collection_formats['sort_dir'] = 'multi' + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_private_hook_metadata_async(self, request): """获取私有hook元数据 @@ -1349,6 +1436,82 @@ class AosAsyncClient(Client): return http_info + def show_private_hook_version_policy_async(self, request): + """获取私有hook版本策略 + + 获取私有hook版本策略(ShowPrivateHookVersionPolicy) + + 获取指定私有hook对应版本的策略。 + + * 如果获取成功,则以临时重定向形式返回私有hook版本策略下载链接(OBS Pre Signed地址,有效期为5分钟),大多数的客户端会进行自动重定向并下载私有hook版本策略。 + * 如果未进行自动重定向,请参考HTTP的重定向规则获取私有hook版本策略下载链接,手动下载私有hook版本策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPrivateHookVersionPolicy + :type request: :class:`huaweicloudsdkaos.v1.ShowPrivateHookVersionPolicyRequest` + :rtype: :class:`huaweicloudsdkaos.v1.ShowPrivateHookVersionPolicyResponse` + """ + http_info = self._show_private_hook_version_policy_http_info(request) + return self._call_api(**http_info) + + def show_private_hook_version_policy_async_invoker(self, request): + http_info = self._show_private_hook_version_policy_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_private_hook_version_policy_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/private-hooks/{hook_name}/versions/{hook_version}/policies", + "request_type": request.__class__.__name__, + "response_type": "ShowPrivateHookVersionPolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + if 'hook_version' in local_var_params: + path_params['hook_version'] = local_var_params['hook_version'] + + query_params = [] + if 'hook_id' in local_var_params: + query_params.append(('hook_id', local_var_params['hook_id'])) + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["Location", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_private_hook_metadata_async(self, request): """更新私有hook元数据 diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py index ad6877d2f..e30f0eac6 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py @@ -877,15 +877,21 @@ class AosClient(Client): 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化的默认版本,不允许空私有hook的创建。 设置配置(Configuration)后的私有hook才会在触发资源栈部署时生效,资源栈使用私有hook的默认版本。若创建私有hook时未指定配置项,则该私有hook在资源栈部署时不生效,后续可通过UpdatePrivateHook API更新配置。 + * 支持hook策略模板检验的资源栈服务API: - DeployStack + CreateExecutionPlan + ApplyExecutionPlan + CreateStack + DeployStack + ContinueDeployStack DeleteStack + DeleteStackEnhanced * 创建私有hook时指定的版本为初始默认版本。 * 如果同名的私有hook在当前domain_id+region下已经存在,则会返回409。 * 私有hook版本号遵循语义化版本号(Semantic Version),为用户自定义。 * 资源编排服务会对私有hook进行校验,如文件大小,策略文件语法校验等。若存在错误,则会创建失败。 * 当前仅支持部署资源前的检测,不支持部署资源过程中的检测。如果通过了部署资源前的检测,资源栈则会继续部署资源。反之会停止部署资源,并记录资源栈事件(stack events)。 - * 仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 + * 仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给予策略文件内容)。 * 策略模板中的决策结果使用object类型的hook_result,hook_result所在包的包名必须使用policy。hook_result格式如下: ``` hook_result := { @@ -979,6 +985,7 @@ class AosClient(Client): 创建私有hook版本(CreatePrivateHookVersion) 创建私有hook版本,创建私有hook版本后需要调用UpdatePrivateHook API设置为默认版本才能生效。 + * 版本号遵循语义化版本号(Semantic Version),为用户自定义。 * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 * 资源编排服务会对私有hook进行校验,如文件大小,策略文件语法校验等。若存在错误,则会创建失败。 @@ -1053,6 +1060,7 @@ class AosClient(Client): 删除私有hook(DeletePrivateHook) 删除某个私有hook以及私有hook下的全部hook版本 + * 默认版本只能调用本API删除,除默认版本外的其它版本可以调用DeletePrivateHookVersion API删除。 * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 @@ -1128,6 +1136,7 @@ class AosClient(Client): 删除私有hook版本(DeletePrivateHookVersion) 删除某个私有hook版本 + * 默认版本只能调用DeletePrivateHook API删除,除默认版本外的其它版本都可以调用本API删除。 * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 @@ -1199,6 +1208,84 @@ class AosClient(Client): return http_info + def list_private_hooks(self, request): + """列举私有hook + + 列举私有hook(ListPrivateHooks) + + 列举当前局点下用户所有的私有hook。 + + * 可以使用sort_key和sort_dir两个关键字对返回结果按创建时间(create_time)进行排序。给予的sort_key和sort_dir的数量须一致,否则返回400。若未给予sort_key和sort_dir,则默认按照创建时间降序排序。 + * 注意:目前暂时返回全量hook的信息,即不支持分页。 + * 若当前用户没有任何私有hook,则返回空list。 + * 具体返回的信息见ListPrivateHooksResponseBody。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListPrivateHooks + :type request: :class:`huaweicloudsdkaos.v1.ListPrivateHooksRequest` + :rtype: :class:`huaweicloudsdkaos.v1.ListPrivateHooksResponse` + """ + http_info = self._list_private_hooks_http_info(request) + return self._call_api(**http_info) + + def list_private_hooks_invoker(self, request): + http_info = self._list_private_hooks_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_private_hooks_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/private-hooks", + "request_type": request.__class__.__name__, + "response_type": "ListPrivateHooksResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + collection_formats['sort_key'] = 'multi' + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + collection_formats['sort_dir'] = 'multi' + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_private_hook_metadata(self, request): """获取私有hook元数据 @@ -1349,6 +1436,82 @@ class AosClient(Client): return http_info + def show_private_hook_version_policy(self, request): + """获取私有hook版本策略 + + 获取私有hook版本策略(ShowPrivateHookVersionPolicy) + + 获取指定私有hook对应版本的策略。 + + * 如果获取成功,则以临时重定向形式返回私有hook版本策略下载链接(OBS Pre Signed地址,有效期为5分钟),大多数的客户端会进行自动重定向并下载私有hook版本策略。 + * 如果未进行自动重定向,请参考HTTP的重定向规则获取私有hook版本策略下载链接,手动下载私有hook版本策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPrivateHookVersionPolicy + :type request: :class:`huaweicloudsdkaos.v1.ShowPrivateHookVersionPolicyRequest` + :rtype: :class:`huaweicloudsdkaos.v1.ShowPrivateHookVersionPolicyResponse` + """ + http_info = self._show_private_hook_version_policy_http_info(request) + return self._call_api(**http_info) + + def show_private_hook_version_policy_invoker(self, request): + http_info = self._show_private_hook_version_policy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_private_hook_version_policy_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/private-hooks/{hook_name}/versions/{hook_version}/policies", + "request_type": request.__class__.__name__, + "response_type": "ShowPrivateHookVersionPolicyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + if 'hook_version' in local_var_params: + path_params['hook_version'] = local_var_params['hook_version'] + + query_params = [] + if 'hook_id' in local_var_params: + query_params.append(('hook_id', local_var_params['hook_id'])) + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["Location", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def update_private_hook_metadata(self, request): """更新私有hook元数据 diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/__init__.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/__init__.py index 4c7646acc..ae51313c6 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/__init__.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/__init__.py @@ -109,6 +109,8 @@ from huaweicloudsdkaos.v1.model.items_response import ItemsResponse from huaweicloudsdkaos.v1.model.kms_structure import KmsStructure from huaweicloudsdkaos.v1.model.list_execution_plans_request import ListExecutionPlansRequest from huaweicloudsdkaos.v1.model.list_execution_plans_response import ListExecutionPlansResponse +from huaweicloudsdkaos.v1.model.list_private_hooks_request import ListPrivateHooksRequest +from huaweicloudsdkaos.v1.model.list_private_hooks_response import ListPrivateHooksResponse from huaweicloudsdkaos.v1.model.list_stack_events_request import ListStackEventsRequest from huaweicloudsdkaos.v1.model.list_stack_events_response import ListStackEventsResponse from huaweicloudsdkaos.v1.model.list_stack_instances_request import ListStackInstancesRequest @@ -168,6 +170,8 @@ from huaweicloudsdkaos.v1.model.show_private_hook_metadata_request import ShowPr from huaweicloudsdkaos.v1.model.show_private_hook_metadata_response import ShowPrivateHookMetadataResponse from huaweicloudsdkaos.v1.model.show_private_hook_version_metadata_request import ShowPrivateHookVersionMetadataRequest from huaweicloudsdkaos.v1.model.show_private_hook_version_metadata_response import ShowPrivateHookVersionMetadataResponse +from huaweicloudsdkaos.v1.model.show_private_hook_version_policy_request import ShowPrivateHookVersionPolicyRequest +from huaweicloudsdkaos.v1.model.show_private_hook_version_policy_response import ShowPrivateHookVersionPolicyResponse from huaweicloudsdkaos.v1.model.show_stack_instance_request import ShowStackInstanceRequest from huaweicloudsdkaos.v1.model.show_stack_instance_response import ShowStackInstanceResponse from huaweicloudsdkaos.v1.model.show_stack_set_metadata_request import ShowStackSetMetadataRequest diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_execution_plan_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_execution_plan_request_body.py index 31f0da1f2..308347dbf 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_execution_plan_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_execution_plan_request_body.py @@ -53,11 +53,11 @@ class CreateExecutionPlanRequestBody: :type execution_plan_name: str :param description: 执行计划的描述。可用于客户识别自己的执行计划。 :type description: str - :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] - :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :type vars_body: str - :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :type vars_uri: str """ @@ -203,7 +203,7 @@ class CreateExecutionPlanRequestBody: def vars_structure(self): """Gets the vars_structure of this CreateExecutionPlanRequestBody. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :return: The vars_structure of this CreateExecutionPlanRequestBody. :rtype: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] @@ -214,7 +214,7 @@ class CreateExecutionPlanRequestBody: def vars_structure(self, vars_structure): """Sets the vars_structure of this CreateExecutionPlanRequestBody. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :param vars_structure: The vars_structure of this CreateExecutionPlanRequestBody. :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] @@ -225,7 +225,7 @@ class CreateExecutionPlanRequestBody: def vars_body(self): """Gets the vars_body of this CreateExecutionPlanRequestBody. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :return: The vars_body of this CreateExecutionPlanRequestBody. :rtype: str @@ -236,7 +236,7 @@ class CreateExecutionPlanRequestBody: def vars_body(self, vars_body): """Sets the vars_body of this CreateExecutionPlanRequestBody. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :param vars_body: The vars_body of this CreateExecutionPlanRequestBody. :type vars_body: str @@ -247,7 +247,7 @@ class CreateExecutionPlanRequestBody: def vars_uri(self): """Gets the vars_uri of this CreateExecutionPlanRequestBody. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :return: The vars_uri of this CreateExecutionPlanRequestBody. :rtype: str @@ -258,7 +258,7 @@ class CreateExecutionPlanRequestBody: def vars_uri(self, vars_uri): """Sets the vars_uri of this CreateExecutionPlanRequestBody. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :param vars_uri: The vars_uri of this CreateExecutionPlanRequestBody. :type vars_uri: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py index 837f2490c..6390a9cc6 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py @@ -51,7 +51,7 @@ class CreatePrivateHookRequestBody: :type hook_version_description: str :param configuration: :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` - :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 请确保OBS地址所在局点与使用RFS服务局点一致。 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :type policy_uri: str :param policy_body: 策略内容。仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 :type policy_body: str @@ -191,7 +191,7 @@ class CreatePrivateHookRequestBody: def policy_uri(self): """Gets the policy_uri of this CreatePrivateHookRequestBody. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 请确保OBS地址所在局点与使用RFS服务局点一致。 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :return: The policy_uri of this CreatePrivateHookRequestBody. :rtype: str @@ -202,7 +202,7 @@ class CreatePrivateHookRequestBody: def policy_uri(self, policy_uri): """Sets the policy_uri of this CreatePrivateHookRequestBody. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 请确保OBS地址所在局点与使用RFS服务局点一致。 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :param policy_uri: The policy_uri of this CreatePrivateHookRequestBody. :type policy_uri: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_response.py index a3609eb2d..8428c296e 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_response.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_response.py @@ -30,7 +30,7 @@ class CreatePrivateHookResponse(SdkResponse): The model defined in huaweicloud sdk - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str """ @@ -46,7 +46,7 @@ class CreatePrivateHookResponse(SdkResponse): def hook_id(self): """Gets the hook_id of this CreatePrivateHookResponse. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this CreatePrivateHookResponse. :rtype: str @@ -57,7 +57,7 @@ class CreatePrivateHookResponse(SdkResponse): def hook_id(self, hook_id): """Sets the hook_id of this CreatePrivateHookResponse. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this CreatePrivateHookResponse. :type hook_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py index d38cb36c4..74dbef161 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py @@ -37,13 +37,13 @@ class CreatePrivateHookVersionRequestBody: The model defined in huaweicloud sdk - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 :type hook_version: str :param hook_version_description: 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 :type hook_version_description: str - :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 请确保OBS地址所在局点与使用RFS服务局点一致。 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :type policy_uri: str :param policy_body: 策略内容。仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 :type policy_body: str @@ -72,7 +72,7 @@ class CreatePrivateHookVersionRequestBody: def hook_id(self): """Gets the hook_id of this CreatePrivateHookVersionRequestBody. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this CreatePrivateHookVersionRequestBody. :rtype: str @@ -83,7 +83,7 @@ class CreatePrivateHookVersionRequestBody: def hook_id(self, hook_id): """Sets the hook_id of this CreatePrivateHookVersionRequestBody. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this CreatePrivateHookVersionRequestBody. :type hook_id: str @@ -138,7 +138,7 @@ class CreatePrivateHookVersionRequestBody: def policy_uri(self): """Gets the policy_uri of this CreatePrivateHookVersionRequestBody. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 请确保OBS地址所在局点与使用RFS服务局点一致。 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :return: The policy_uri of this CreatePrivateHookVersionRequestBody. :rtype: str @@ -149,7 +149,7 @@ class CreatePrivateHookVersionRequestBody: def policy_uri(self, policy_uri): """Sets the policy_uri of this CreatePrivateHookVersionRequestBody. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 请确保OBS地址所在局点与使用RFS服务局点一致。 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :param policy_uri: The policy_uri of this CreatePrivateHookVersionRequestBody. :type policy_uri: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_instance_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_instance_request_body.py index 59aa971e6..658c0dea1 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_instance_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_instance_request_body.py @@ -37,7 +37,7 @@ class CreateStackInstanceRequestBody: The model defined in huaweicloud sdk - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str :param deployment_targets: :type deployment_targets: :class:`huaweicloudsdkaos.v1.DeploymentTargets` @@ -72,7 +72,7 @@ class CreateStackInstanceRequestBody: def stack_set_id(self): """Gets the stack_set_id of this CreateStackInstanceRequestBody. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this CreateStackInstanceRequestBody. :rtype: str @@ -83,7 +83,7 @@ class CreateStackInstanceRequestBody: def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this CreateStackInstanceRequestBody. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this CreateStackInstanceRequestBody. :type stack_set_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_request_body.py index b24a0d117..6d6354967 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_request_body.py @@ -61,11 +61,11 @@ class CreateStackRequestBody: :type template_body: str :param template_uri: HCL模板的OBS地址,该模板描述了资源的目标状态。资源编排服务将比较此模板与当前远程资源的状态之间的区别 请确保OBS地址所在局点与使用RFS服务局点一致。 对应的文件应该是纯tf文件或zip压缩包 纯tf文件需要以“.tf”或者“.tf.json”结尾,并遵守HCL语法,且文件的编码格式须为UTF-8 压缩包目前只支持zip格式,文件需要以\".zip\"结尾。解压后的文件不得包含\".tfvars\"文件。解压前最大支持1MB,解压后最大支持1MB。zip压缩包文件数量不能超过100个 template_body和template_uri 必须有且只有一个存在 **注意:** * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储template_uri对应的模板文件内容。 * template_uri对应的模板文件如果为zip类型,则内部的文件或文件夹名称长度不得超过255个字节,最深路径长度不得超过2048字节,zip包大小不得超过1MB :type template_uri: str - :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :type vars_body: str - :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] - :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :type vars_uri: str """ @@ -261,7 +261,7 @@ class CreateStackRequestBody: def vars_body(self): """Gets the vars_body of this CreateStackRequestBody. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :return: The vars_body of this CreateStackRequestBody. :rtype: str @@ -272,7 +272,7 @@ class CreateStackRequestBody: def vars_body(self, vars_body): """Sets the vars_body of this CreateStackRequestBody. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :param vars_body: The vars_body of this CreateStackRequestBody. :type vars_body: str @@ -283,7 +283,7 @@ class CreateStackRequestBody: def vars_structure(self): """Gets the vars_structure of this CreateStackRequestBody. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :return: The vars_structure of this CreateStackRequestBody. :rtype: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] @@ -294,7 +294,7 @@ class CreateStackRequestBody: def vars_structure(self, vars_structure): """Sets the vars_structure of this CreateStackRequestBody. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :param vars_structure: The vars_structure of this CreateStackRequestBody. :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] @@ -305,7 +305,7 @@ class CreateStackRequestBody: def vars_uri(self): """Gets the vars_uri of this CreateStackRequestBody. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :return: The vars_uri of this CreateStackRequestBody. :rtype: str @@ -316,7 +316,7 @@ class CreateStackRequestBody: def vars_uri(self, vars_uri): """Sets the vars_uri of this CreateStackRequestBody. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :param vars_uri: The vars_uri of this CreateStackRequestBody. :type vars_uri: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_set_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_set_request_body.py index a17db8813..7a328b964 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_set_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_set_request_body.py @@ -67,9 +67,9 @@ class CreateStackSetRequestBody: :type template_body: str :param template_uri: HCL模板的OBS地址,该模板描述了资源的目标状态。资源编排服务将比较此模板与当前远程资源的状态之间的区别 请确保OBS地址所在局点与使用RFS服务局点一致。 对应的文件应该是纯tf文件或zip压缩包 纯tf文件需要以“.tf”或者“.tf.json”结尾,并遵守HCL语法,且文件的编码格式须为UTF-8 压缩包目前只支持zip格式,文件需要以\".zip\"结尾。解压后的文件不得包含\".tfvars\"文件。解压前最大支持1MB,解压后最大支持1MB。zip压缩包文件数量不能超过100个 template_body和template_uri 必须有且只有一个存在 **注意:** * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储template_uri对应的模板文件内容。 * template_uri对应的模板文件如果为zip类型,则内部的文件或文件夹名称长度不得超过255个字节,最深路径长度不得超过2048字节,zip包大小不得超过1MB :type template_uri: str - :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :type vars_uri: str - :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :type vars_body: str :param initial_stack_description: 初始化资源栈描述。可用于客户识别被资源栈集所管理的资源栈。 资源栈集下的资源栈仅在创建时统一使用该描述。客户想要更新初始化资源栈描述,可以通过UpdateStackSet API。 后续更新资源栈集描述将不会同步更新已管理的资源栈描述。 :type initial_stack_description: str @@ -282,7 +282,7 @@ class CreateStackSetRequestBody: def vars_uri(self): """Gets the vars_uri of this CreateStackSetRequestBody. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :return: The vars_uri of this CreateStackSetRequestBody. :rtype: str @@ -293,7 +293,7 @@ class CreateStackSetRequestBody: def vars_uri(self, vars_uri): """Sets the vars_uri of this CreateStackSetRequestBody. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :param vars_uri: The vars_uri of this CreateStackSetRequestBody. :type vars_uri: str @@ -304,7 +304,7 @@ class CreateStackSetRequestBody: def vars_body(self): """Gets the vars_body of this CreateStackSetRequestBody. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :return: The vars_body of this CreateStackSetRequestBody. :rtype: str @@ -315,7 +315,7 @@ class CreateStackSetRequestBody: def vars_body(self, vars_body): """Sets the vars_body of this CreateStackSetRequestBody. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :param vars_body: The vars_body of this CreateStackSetRequestBody. :type vars_body: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_set_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_set_response.py index 2e71d25c3..c4fb9389b 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_set_response.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_stack_set_response.py @@ -30,7 +30,7 @@ class CreateStackSetResponse(SdkResponse): The model defined in huaweicloud sdk - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str """ @@ -46,7 +46,7 @@ class CreateStackSetResponse(SdkResponse): def stack_set_id(self): """Gets the stack_set_id of this CreateStackSetResponse. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this CreateStackSetResponse. :rtype: str @@ -57,7 +57,7 @@ class CreateStackSetResponse(SdkResponse): def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this CreateStackSetResponse. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this CreateStackSetResponse. :type stack_set_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_request.py index 32075071d..2a1cc1b46 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_request.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_request.py @@ -37,7 +37,7 @@ class DeletePrivateHookRequest: :type client_request_id: str :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 :type hook_name: str - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str """ @@ -101,7 +101,7 @@ class DeletePrivateHookRequest: def hook_id(self): """Gets the hook_id of this DeletePrivateHookRequest. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this DeletePrivateHookRequest. :rtype: str @@ -112,7 +112,7 @@ class DeletePrivateHookRequest: def hook_id(self, hook_id): """Sets the hook_id of this DeletePrivateHookRequest. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this DeletePrivateHookRequest. :type hook_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_request.py index f7190fa7c..6cf1ee409 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_request.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_request.py @@ -41,7 +41,7 @@ class DeletePrivateHookVersionRequest: :type hook_name: str :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 :type hook_version: str - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str """ @@ -129,7 +129,7 @@ class DeletePrivateHookVersionRequest: def hook_id(self): """Gets the hook_id of this DeletePrivateHookVersionRequest. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this DeletePrivateHookVersionRequest. :rtype: str @@ -140,7 +140,7 @@ class DeletePrivateHookVersionRequest: def hook_id(self, hook_id): """Sets the hook_id of this DeletePrivateHookVersionRequest. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this DeletePrivateHookVersionRequest. :type hook_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_stack_instance_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_stack_instance_request_body.py index 4beb6e688..b59bb96a4 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_stack_instance_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_stack_instance_request_body.py @@ -35,7 +35,7 @@ class DeleteStackInstanceRequestBody: The model defined in huaweicloud sdk - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str :param deployment_targets: :type deployment_targets: :class:`huaweicloudsdkaos.v1.DeploymentTargets` @@ -65,7 +65,7 @@ class DeleteStackInstanceRequestBody: def stack_set_id(self): """Gets the stack_set_id of this DeleteStackInstanceRequestBody. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this DeleteStackInstanceRequestBody. :rtype: str @@ -76,7 +76,7 @@ class DeleteStackInstanceRequestBody: def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this DeleteStackInstanceRequestBody. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this DeleteStackInstanceRequestBody. :type stack_set_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deploy_stack_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deploy_stack_request_body.py index 88172335e..e46dde3cc 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deploy_stack_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deploy_stack_request_body.py @@ -43,11 +43,11 @@ class DeployStackRequestBody: :type template_body: str :param template_uri: HCL模板的OBS地址,该模板描述了资源的目标状态。资源编排服务将比较此模板与当前远程资源的状态之间的区别 请确保OBS地址所在局点与使用RFS服务局点一致。 对应的文件应该是纯tf文件或zip压缩包 纯tf文件需要以“.tf”或者“.tf.json”结尾,并遵守HCL语法,且文件的编码格式须为UTF-8 压缩包目前只支持zip格式,文件需要以\".zip\"结尾。解压后的文件不得包含\".tfvars\"文件。解压前最大支持1MB,解压后最大支持1MB。zip压缩包文件数量不能超过100个 template_body和template_uri 必须有且只有一个存在 **注意:** * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储template_uri对应的模板文件内容。 * template_uri对应的模板文件如果为zip类型,则内部的文件或文件夹名称长度不得超过255个字节,最深路径长度不得超过2048字节,zip包大小不得超过1MB :type template_uri: str - :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] - :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :type vars_body: str - :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :type vars_uri: str :param stack_id: 资源栈(stack)的唯一ID。 此ID由资源编排服务在生成资源栈的时候生成,为UUID。 由于资源栈名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈,删除,再重新创建一个同名资源栈。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈就是我认为的那个,而不是其他队友删除后创建的同名资源栈。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈所对应的ID都不相同,更新不会影响ID。如果给予的stack_id和当前资源栈的ID不一致,则返回400 :type stack_id: str @@ -124,7 +124,7 @@ class DeployStackRequestBody: def vars_structure(self): """Gets the vars_structure of this DeployStackRequestBody. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :return: The vars_structure of this DeployStackRequestBody. :rtype: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] @@ -135,7 +135,7 @@ class DeployStackRequestBody: def vars_structure(self, vars_structure): """Sets the vars_structure of this DeployStackRequestBody. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :param vars_structure: The vars_structure of this DeployStackRequestBody. :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] @@ -146,7 +146,7 @@ class DeployStackRequestBody: def vars_body(self): """Gets the vars_body of this DeployStackRequestBody. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :return: The vars_body of this DeployStackRequestBody. :rtype: str @@ -157,7 +157,7 @@ class DeployStackRequestBody: def vars_body(self, vars_body): """Sets the vars_body of this DeployStackRequestBody. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :param vars_body: The vars_body of this DeployStackRequestBody. :type vars_body: str @@ -168,7 +168,7 @@ class DeployStackRequestBody: def vars_uri(self): """Gets the vars_uri of this DeployStackRequestBody. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :return: The vars_uri of this DeployStackRequestBody. :rtype: str @@ -179,7 +179,7 @@ class DeployStackRequestBody: def vars_uri(self, vars_uri): """Sets the vars_uri of this DeployStackRequestBody. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :param vars_uri: The vars_uri of this DeployStackRequestBody. :type vars_uri: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deploy_stack_set_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deploy_stack_set_request_body.py index 9b6d032a7..c624bdbe7 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deploy_stack_set_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deploy_stack_set_request_body.py @@ -43,7 +43,7 @@ class DeployStackSetRequestBody: The model defined in huaweicloud sdk - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str :param deployment_targets: :type deployment_targets: :class:`huaweicloudsdkaos.v1.DeploymentTargets` @@ -51,9 +51,9 @@ class DeployStackSetRequestBody: :type template_body: str :param template_uri: HCL模板的OBS地址,该模板描述了资源的目标状态。资源编排服务将比较此模板与当前远程资源的状态之间的区别 请确保OBS地址所在局点与使用RFS服务局点一致。 对应的文件应该是纯tf文件或zip压缩包 纯tf文件需要以“.tf”或者“.tf.json”结尾,并遵守HCL语法,且文件的编码格式须为UTF-8 压缩包目前只支持zip格式,文件需要以\".zip\"结尾。解压后的文件不得包含\".tfvars\"文件。解压前最大支持1MB,解压后最大支持1MB。zip压缩包文件数量不能超过100个 template_body和template_uri 必须有且只有一个存在 **注意:** * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储template_uri对应的模板文件内容。 * template_uri对应的模板文件如果为zip类型,则内部的文件或文件夹名称长度不得超过255个字节,最深路径长度不得超过2048字节,zip包大小不得超过1MB :type template_uri: str - :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :type vars_uri: str - :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :type vars_body: str :param operation_preferences: :type operation_preferences: :class:`huaweicloudsdkaos.v1.OperationPreferences` @@ -93,7 +93,7 @@ class DeployStackSetRequestBody: def stack_set_id(self): """Gets the stack_set_id of this DeployStackSetRequestBody. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this DeployStackSetRequestBody. :rtype: str @@ -104,7 +104,7 @@ class DeployStackSetRequestBody: def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this DeployStackSetRequestBody. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this DeployStackSetRequestBody. :type stack_set_id: str @@ -177,7 +177,7 @@ class DeployStackSetRequestBody: def vars_uri(self): """Gets the vars_uri of this DeployStackSetRequestBody. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :return: The vars_uri of this DeployStackSetRequestBody. :rtype: str @@ -188,7 +188,7 @@ class DeployStackSetRequestBody: def vars_uri(self, vars_uri): """Sets the vars_uri of this DeployStackSetRequestBody. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :param vars_uri: The vars_uri of this DeployStackSetRequestBody. :type vars_uri: str @@ -199,7 +199,7 @@ class DeployStackSetRequestBody: def vars_body(self): """Gets the vars_body of this DeployStackSetRequestBody. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :return: The vars_body of this DeployStackSetRequestBody. :rtype: str @@ -210,7 +210,7 @@ class DeployStackSetRequestBody: def vars_body(self, vars_body): """Sets the vars_body of this DeployStackSetRequestBody. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :param vars_body: The vars_body of this DeployStackSetRequestBody. :type vars_body: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deployment_targets.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deployment_targets.py index e9ba74e54..8bb5b3fc9 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deployment_targets.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/deployment_targets.py @@ -41,7 +41,7 @@ class DeploymentTargets: :type regions: list[str] :param domain_ids: 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids列表和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果指定了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri 有且仅有一个存在。 :type domain_ids: list[str] - :param domain_ids_uri: 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分割,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 + :param domain_ids_uri: 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分隔,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 :type domain_ids_uri: str :param organizational_unit_ids: 组织单元(Organizational Unit,缩写OU)ID列表,仅在资源栈集权限模型是SERVICE_MANAGED时,才允许指定该参数。 用户指定的Organization组织部署的ID列表,可以是根组织(Root)ID,也可以是某些组织单元的ID。 创建资源栈实例 (CreateStackInstances)API 必须指定该参数,该API 会异步校验OU IDs 的合法性,校验有效的OU IDs 及其所有非空子OU ID 都会被资源栈集记录管理。该API允许指定没有或者已经被资源栈集管理的OU IDs。 * 若资源栈集不自动部署,空子OU不会被资源栈集记录管理(特指子OU下无成员账号或部署排除其下所有成员账号)。* * 【暂不支持】若资源栈集开启自动部署,空子OU也会被资源栈集记录管理(特指子OU下无成员账号或部署排除其下所有成员账号),自动部署仅针对成员账号变动,不针对其他组织结构变化,例如新增OU等,新增OU不会自动被资源栈集管理。* 部署或删除资源栈实例(DeployStackSet、UpdateStackInstances、DeleteStackInstances) API,只允许指定已经被资源栈集管理的OU IDs。若指定了没有被资源栈集记录管理的OU IDs,则会报错。 删除资源栈实例 (DeleteStackInstances)API 必须指定该参数。 用户可以通过获取资源栈集元数据(ShowStackSetMetadata)API ,获取通过创建资源栈实例(CreateStackInstances)API 请求指定过的OU IDs。 资源栈集不仅会部署到目标 OU 中的用户,同时还会部署所有子 OU 下的用户。指定该参数后,资源栈集会根据用户输入的 OU 列表下所有的用户信息(包含子 OU 下的用户)和region列表,以笛卡尔积的形式,选择资源栈实例进行创建或部署。 *资源栈集不会选择组织管理员作为部署目标,进行资源栈实例的创建或部署,即使组织管理员位于给与的组织或组织的 OU 中。* :type organizational_unit_ids: list[str] @@ -116,7 +116,7 @@ class DeploymentTargets: def domain_ids_uri(self): """Gets the domain_ids_uri of this DeploymentTargets. - 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分割,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 + 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分隔,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 :return: The domain_ids_uri of this DeploymentTargets. :rtype: str @@ -127,7 +127,7 @@ class DeploymentTargets: def domain_ids_uri(self, domain_ids_uri): """Sets the domain_ids_uri of this DeploymentTargets. - 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分割,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 + 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分隔,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 :param domain_ids_uri: The domain_ids_uri of this DeploymentTargets. :type domain_ids_uri: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/domain_ids_uri_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/domain_ids_uri_primitive_type_holder.py index 5900b71fb..abf3efd56 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/domain_ids_uri_primitive_type_holder.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/domain_ids_uri_primitive_type_holder.py @@ -29,7 +29,7 @@ class DomainIdsUriPrimitiveTypeHolder: The model defined in huaweicloud sdk - :param domain_ids_uri: 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分割,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 + :param domain_ids_uri: 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分隔,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 :type domain_ids_uri: str """ @@ -45,7 +45,7 @@ class DomainIdsUriPrimitiveTypeHolder: def domain_ids_uri(self): """Gets the domain_ids_uri of this DomainIdsUriPrimitiveTypeHolder. - 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分割,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 + 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分隔,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 :return: The domain_ids_uri of this DomainIdsUriPrimitiveTypeHolder. :rtype: str @@ -56,7 +56,7 @@ class DomainIdsUriPrimitiveTypeHolder: def domain_ids_uri(self, domain_ids_uri): """Sets the domain_ids_uri of this DomainIdsUriPrimitiveTypeHolder. - 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分割,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 + 当资源栈集权限模型是SELF_MANAGED时,用户指定包含本次操作涉及到的租户ID内容文件的OBS地址。 内容格式要求每个租户ID以逗号(,)分隔,支持换行。当前仅支持csv文件,且文件的编码格式须为UTF-8。文件内容大小不超过100KB。 上传的csv文件应尽量避免Excel操作,以防出现读取内容不一致的问题。推荐使用记事本打开确认内容是否符合预期。 *在DeployStackSet API中,如果指定该参数,根据用户输入的domain_ids_uri文件内容和regions列表,以笛卡尔积的形式选择资源栈集中存在的资源栈实例进行部署。如果内容包含了没有被资源栈集所管理的domain_id,则会报错。* 当资源栈集权限模型是SERVICE_MANAGED时,该参数需结合domain_id_filter_type使用。链接文件内容用于指定资源栈集操作涉及到的,从所提供的OU中指定或排除部署的租户ID信息,或除提供的OU外,还进行额外部署的租户ID信息。 domain_ids和domain_ids_uri有且仅有一个存在。 :param domain_ids_uri: The domain_ids_uri of this DomainIdsUriPrimitiveTypeHolder. :type domain_ids_uri: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/get_execution_plan_metadata_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/get_execution_plan_metadata_response.py index d94c86804..88f385f60 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/get_execution_plan_metadata_response.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/get_execution_plan_metadata_response.py @@ -64,11 +64,11 @@ class GetExecutionPlanMetadataResponse(SdkResponse): :type execution_plan_name: str :param description: 执行计划的描述。可用于客户识别自己的执行计划。 :type description: str - :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] :param vars_uri_content: vars_uri对应的文件内容 :type vars_uri_content: str - :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :type vars_body: str :param status: 执行计划的状态 * `CREATION_IN_PROGRESS` - 正在创建,请等待 * `CREATION_FAILED` - 创建失败,请从status_message获取错误信息汇总 * `AVAILABLE` - 创建完成,可以调用ApplyExecutionPlan API进行执行 * `APPLY_IN_PROGRESS` - 执行中,可通过GetStackMetadata查询资源栈状态,通过ListStackEvents获取执行过程中产生的资源栈事件 * `APPLIED` - 已执行 :type status: str @@ -238,7 +238,7 @@ class GetExecutionPlanMetadataResponse(SdkResponse): def vars_structure(self): """Gets the vars_structure of this GetExecutionPlanMetadataResponse. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :return: The vars_structure of this GetExecutionPlanMetadataResponse. :rtype: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] @@ -249,7 +249,7 @@ class GetExecutionPlanMetadataResponse(SdkResponse): def vars_structure(self, vars_structure): """Sets the vars_structure of this GetExecutionPlanMetadataResponse. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :param vars_structure: The vars_structure of this GetExecutionPlanMetadataResponse. :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] @@ -282,7 +282,7 @@ class GetExecutionPlanMetadataResponse(SdkResponse): def vars_body(self): """Gets the vars_body of this GetExecutionPlanMetadataResponse. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :return: The vars_body of this GetExecutionPlanMetadataResponse. :rtype: str @@ -293,7 +293,7 @@ class GetExecutionPlanMetadataResponse(SdkResponse): def vars_body(self, vars_body): """Sets the vars_body of this GetExecutionPlanMetadataResponse. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :param vars_body: The vars_body of this GetExecutionPlanMetadataResponse. :type vars_body: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/get_stack_metadata_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/get_stack_metadata_response.py index d47fadee2..e59d84c8f 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/get_stack_metadata_response.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/get_stack_metadata_response.py @@ -60,9 +60,9 @@ class GetStackMetadataResponse(SdkResponse): :type stack_name: str :param description: 资源栈的描述。可用于客户识别自己的资源栈。 :type description: str - :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] - :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :type vars_body: str :param enable_deletion_protection: 删除保护的标识位,如果不传默认为false,即默认不开启资源栈删除保护(删除保护开启后资源栈不允许被删除) *在UpdateStack API中,如果该参数未在RequestBody中给予,则不会对资源栈的删除保护属性进行更新* :type enable_deletion_protection: bool @@ -195,7 +195,7 @@ class GetStackMetadataResponse(SdkResponse): def vars_structure(self): """Gets the vars_structure of this GetStackMetadataResponse. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :return: The vars_structure of this GetStackMetadataResponse. :rtype: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] @@ -206,7 +206,7 @@ class GetStackMetadataResponse(SdkResponse): def vars_structure(self, vars_structure): """Sets the vars_structure of this GetStackMetadataResponse. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :param vars_structure: The vars_structure of this GetStackMetadataResponse. :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] @@ -217,7 +217,7 @@ class GetStackMetadataResponse(SdkResponse): def vars_body(self): """Gets the vars_body of this GetStackMetadataResponse. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :return: The vars_body of this GetStackMetadataResponse. :rtype: str @@ -228,7 +228,7 @@ class GetStackMetadataResponse(SdkResponse): def vars_body(self, vars_body): """Sets the vars_body of this GetStackMetadataResponse. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :param vars_body: The vars_body of this GetStackMetadataResponse. :type vars_body: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/list_private_hooks_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/list_private_hooks_request.py new file mode 100644 index 000000000..6a33bb7ab --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/list_private_hooks_request.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPrivateHooksRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'client_request_id': 'str', + 'sort_key': 'list[str]', + 'sort_dir': 'list[str]' + } + + attribute_map = { + 'client_request_id': 'Client-Request-Id', + 'sort_key': 'sort_key', + 'sort_dir': 'sort_dir' + } + + def __init__(self, client_request_id=None, sort_key=None, sort_dir=None): + """ListPrivateHooksRequest + + The model defined in huaweicloud sdk + + :param client_request_id: 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + :type client_request_id: str + :param sort_key: 排序字段,仅支持给予create_time + :type sort_key: list[str] + :param sort_dir: 指定升序还是降序 * `asc` - 升序 * `desc` - 降序 + :type sort_dir: list[str] + """ + + + + self._client_request_id = None + self._sort_key = None + self._sort_dir = None + self.discriminator = None + + self.client_request_id = client_request_id + if sort_key is not None: + self.sort_key = sort_key + if sort_dir is not None: + self.sort_dir = sort_dir + + @property + def client_request_id(self): + """Gets the client_request_id of this ListPrivateHooksRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :return: The client_request_id of this ListPrivateHooksRequest. + :rtype: str + """ + return self._client_request_id + + @client_request_id.setter + def client_request_id(self, client_request_id): + """Sets the client_request_id of this ListPrivateHooksRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :param client_request_id: The client_request_id of this ListPrivateHooksRequest. + :type client_request_id: str + """ + self._client_request_id = client_request_id + + @property + def sort_key(self): + """Gets the sort_key of this ListPrivateHooksRequest. + + 排序字段,仅支持给予create_time + + :return: The sort_key of this ListPrivateHooksRequest. + :rtype: list[str] + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ListPrivateHooksRequest. + + 排序字段,仅支持给予create_time + + :param sort_key: The sort_key of this ListPrivateHooksRequest. + :type sort_key: list[str] + """ + self._sort_key = sort_key + + @property + def sort_dir(self): + """Gets the sort_dir of this ListPrivateHooksRequest. + + 指定升序还是降序 * `asc` - 升序 * `desc` - 降序 + + :return: The sort_dir of this ListPrivateHooksRequest. + :rtype: list[str] + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ListPrivateHooksRequest. + + 指定升序还是降序 * `asc` - 升序 * `desc` - 降序 + + :param sort_dir: The sort_dir of this ListPrivateHooksRequest. + :type sort_dir: list[str] + """ + self._sort_dir = sort_dir + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPrivateHooksRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/list_private_hooks_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/list_private_hooks_response.py new file mode 100644 index 000000000..a53548221 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/list_private_hooks_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPrivateHooksResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'hooks': 'list[PrivateHookSummary]' + } + + attribute_map = { + 'hooks': 'hooks' + } + + def __init__(self, hooks=None): + """ListPrivateHooksResponse + + The model defined in huaweicloud sdk + + :param hooks: 私有hook的列表。默认以创建时间降序排序。 + :type hooks: list[:class:`huaweicloudsdkaos.v1.PrivateHookSummary`] + """ + + super(ListPrivateHooksResponse, self).__init__() + + self._hooks = None + self.discriminator = None + + if hooks is not None: + self.hooks = hooks + + @property + def hooks(self): + """Gets the hooks of this ListPrivateHooksResponse. + + 私有hook的列表。默认以创建时间降序排序。 + + :return: The hooks of this ListPrivateHooksResponse. + :rtype: list[:class:`huaweicloudsdkaos.v1.PrivateHookSummary`] + """ + return self._hooks + + @hooks.setter + def hooks(self, hooks): + """Sets the hooks of this ListPrivateHooksResponse. + + 私有hook的列表。默认以创建时间降序排序。 + + :param hooks: The hooks of this ListPrivateHooksResponse. + :type hooks: list[:class:`huaweicloudsdkaos.v1.PrivateHookSummary`] + """ + self._hooks = hooks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPrivateHooksResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/managed_operation.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/managed_operation.py index 27dd6cc1f..6416f6266 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/managed_operation.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/managed_operation.py @@ -29,7 +29,7 @@ class ManagedOperation: The model defined in huaweicloud sdk - :param enable_parallel_operation: 资源栈集(stack_set)是否可以并发地创建多个资源栈集操作。该参数作为资源栈集属性,可以通过创建资源栈集API(CreateStackSet)指定,通过更新资源栈集API(UpdateStackSet)更新该参数。 该参数默认为false,资源栈集只允许以串行的方式生成并执行资源栈集操作。同一时刻,资源栈集中只会存在一个处于运行态,即QUEUE_IN_PROGRESS或OPERATION_IN_PROGRESS状态的资源栈集操作,该操作执行完成后,下一个资源栈集操作才允许被创建。 该参数如果设定为true,资源栈集允许并发地生成多个资源栈集操作,执行非冲突操作,并将冲突操作进行排队处理。当冲突操作执行完毕,资源栈集按请求顺序继续执行排队操作。 注:冲突操作指资源栈集允许多个操作同时执行的条件下,如果超过一个以上的操作包含了同一资源栈实例,此时在该资源栈实例上的多个操作被称为冲突操作。 当资源栈集状态为OPERATION_IN_PROGRESS时,不允许用户通过更新资源栈集(UpdateStackSet)来更新该参数。 * 当前,一个资源栈集下仅允许同时最多存在10个处于运行态的资源栈集操作* + :param enable_parallel_operation: 资源栈集(stack_set)是否可以并发地创建多个资源栈集操作。该参数作为资源栈集属性,可以通过创建资源栈集API(CreateStackSet)指定,通过更新资源栈集API(UpdateStackSet)更新该参数。 该参数默认为false,资源栈集只允许以串行的方式生成并执行资源栈集操作。同一时刻,资源栈集中只会存在一个处于运行态,即QUEUE_IN_PROGRESS或OPERATION_IN_PROGRESS状态的资源栈集操作,该操作执行完成后,下一个资源栈集操作才允许被创建。 该参数如果设定为true,资源栈集允许并发地生成多个资源栈集操作,执行非冲突操作,并将冲突操作进行排队处理。当冲突操作执行完毕,资源栈集按请求顺序继续执行排队操作。当前同一资源栈集下最多允许创建10个并发的资源栈集操作。 注:冲突操作指资源栈集允许多个操作同时执行的条件下,如果超过一个以上的操作包含了同一资源栈实例,此时在该资源栈实例上的多个操作被称为冲突操作。 当资源栈集状态为OPERATION_IN_PROGRESS时,不允许用户通过更新资源栈集(UpdateStackSet)来更新该参数。 * 当前,一个资源栈集下仅允许同时最多存在10个处于运行态的资源栈集操作* :type enable_parallel_operation: bool """ @@ -45,7 +45,7 @@ class ManagedOperation: def enable_parallel_operation(self): """Gets the enable_parallel_operation of this ManagedOperation. - 资源栈集(stack_set)是否可以并发地创建多个资源栈集操作。该参数作为资源栈集属性,可以通过创建资源栈集API(CreateStackSet)指定,通过更新资源栈集API(UpdateStackSet)更新该参数。 该参数默认为false,资源栈集只允许以串行的方式生成并执行资源栈集操作。同一时刻,资源栈集中只会存在一个处于运行态,即QUEUE_IN_PROGRESS或OPERATION_IN_PROGRESS状态的资源栈集操作,该操作执行完成后,下一个资源栈集操作才允许被创建。 该参数如果设定为true,资源栈集允许并发地生成多个资源栈集操作,执行非冲突操作,并将冲突操作进行排队处理。当冲突操作执行完毕,资源栈集按请求顺序继续执行排队操作。 注:冲突操作指资源栈集允许多个操作同时执行的条件下,如果超过一个以上的操作包含了同一资源栈实例,此时在该资源栈实例上的多个操作被称为冲突操作。 当资源栈集状态为OPERATION_IN_PROGRESS时,不允许用户通过更新资源栈集(UpdateStackSet)来更新该参数。 * 当前,一个资源栈集下仅允许同时最多存在10个处于运行态的资源栈集操作* + 资源栈集(stack_set)是否可以并发地创建多个资源栈集操作。该参数作为资源栈集属性,可以通过创建资源栈集API(CreateStackSet)指定,通过更新资源栈集API(UpdateStackSet)更新该参数。 该参数默认为false,资源栈集只允许以串行的方式生成并执行资源栈集操作。同一时刻,资源栈集中只会存在一个处于运行态,即QUEUE_IN_PROGRESS或OPERATION_IN_PROGRESS状态的资源栈集操作,该操作执行完成后,下一个资源栈集操作才允许被创建。 该参数如果设定为true,资源栈集允许并发地生成多个资源栈集操作,执行非冲突操作,并将冲突操作进行排队处理。当冲突操作执行完毕,资源栈集按请求顺序继续执行排队操作。当前同一资源栈集下最多允许创建10个并发的资源栈集操作。 注:冲突操作指资源栈集允许多个操作同时执行的条件下,如果超过一个以上的操作包含了同一资源栈实例,此时在该资源栈实例上的多个操作被称为冲突操作。 当资源栈集状态为OPERATION_IN_PROGRESS时,不允许用户通过更新资源栈集(UpdateStackSet)来更新该参数。 * 当前,一个资源栈集下仅允许同时最多存在10个处于运行态的资源栈集操作* :return: The enable_parallel_operation of this ManagedOperation. :rtype: bool @@ -56,7 +56,7 @@ class ManagedOperation: def enable_parallel_operation(self, enable_parallel_operation): """Sets the enable_parallel_operation of this ManagedOperation. - 资源栈集(stack_set)是否可以并发地创建多个资源栈集操作。该参数作为资源栈集属性,可以通过创建资源栈集API(CreateStackSet)指定,通过更新资源栈集API(UpdateStackSet)更新该参数。 该参数默认为false,资源栈集只允许以串行的方式生成并执行资源栈集操作。同一时刻,资源栈集中只会存在一个处于运行态,即QUEUE_IN_PROGRESS或OPERATION_IN_PROGRESS状态的资源栈集操作,该操作执行完成后,下一个资源栈集操作才允许被创建。 该参数如果设定为true,资源栈集允许并发地生成多个资源栈集操作,执行非冲突操作,并将冲突操作进行排队处理。当冲突操作执行完毕,资源栈集按请求顺序继续执行排队操作。 注:冲突操作指资源栈集允许多个操作同时执行的条件下,如果超过一个以上的操作包含了同一资源栈实例,此时在该资源栈实例上的多个操作被称为冲突操作。 当资源栈集状态为OPERATION_IN_PROGRESS时,不允许用户通过更新资源栈集(UpdateStackSet)来更新该参数。 * 当前,一个资源栈集下仅允许同时最多存在10个处于运行态的资源栈集操作* + 资源栈集(stack_set)是否可以并发地创建多个资源栈集操作。该参数作为资源栈集属性,可以通过创建资源栈集API(CreateStackSet)指定,通过更新资源栈集API(UpdateStackSet)更新该参数。 该参数默认为false,资源栈集只允许以串行的方式生成并执行资源栈集操作。同一时刻,资源栈集中只会存在一个处于运行态,即QUEUE_IN_PROGRESS或OPERATION_IN_PROGRESS状态的资源栈集操作,该操作执行完成后,下一个资源栈集操作才允许被创建。 该参数如果设定为true,资源栈集允许并发地生成多个资源栈集操作,执行非冲突操作,并将冲突操作进行排队处理。当冲突操作执行完毕,资源栈集按请求顺序继续执行排队操作。当前同一资源栈集下最多允许创建10个并发的资源栈集操作。 注:冲突操作指资源栈集允许多个操作同时执行的条件下,如果超过一个以上的操作包含了同一资源栈实例,此时在该资源栈实例上的多个操作被称为冲突操作。 当资源栈集状态为OPERATION_IN_PROGRESS时,不允许用户通过更新资源栈集(UpdateStackSet)来更新该参数。 * 当前,一个资源栈集下仅允许同时最多存在10个处于运行态的资源栈集操作* :param enable_parallel_operation: The enable_parallel_operation of this ManagedOperation. :type enable_parallel_operation: bool diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_id_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_id_primitive_type_holder.py index a911d2f78..5cb1a1547 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_id_primitive_type_holder.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_id_primitive_type_holder.py @@ -29,7 +29,7 @@ class PrivateHookIdPrimitiveTypeHolder: The model defined in huaweicloud sdk - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str """ @@ -45,7 +45,7 @@ class PrivateHookIdPrimitiveTypeHolder: def hook_id(self): """Gets the hook_id of this PrivateHookIdPrimitiveTypeHolder. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this PrivateHookIdPrimitiveTypeHolder. :rtype: str @@ -56,7 +56,7 @@ class PrivateHookIdPrimitiveTypeHolder: def hook_id(self, hook_id): """Sets the hook_id of this PrivateHookIdPrimitiveTypeHolder. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this PrivateHookIdPrimitiveTypeHolder. :type hook_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_summary.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_summary.py index 36487dee9..1436db150 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_summary.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_summary.py @@ -43,7 +43,7 @@ class PrivateHookSummary: :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 :type hook_name: str - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str :param hook_description: 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 :type hook_description: str @@ -108,7 +108,7 @@ class PrivateHookSummary: def hook_id(self): """Gets the hook_id of this PrivateHookSummary. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this PrivateHookSummary. :rtype: str @@ -119,7 +119,7 @@ class PrivateHookSummary: def hook_id(self, hook_id): """Sets the hook_id of this PrivateHookSummary. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this PrivateHookSummary. :type hook_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_summary.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_summary.py index ec3ec113f..b8b403f4e 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_summary.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_summary.py @@ -39,7 +39,7 @@ class PrivateHookVersionSummary: :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 :type hook_name: str - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 :type hook_version: str @@ -93,7 +93,7 @@ class PrivateHookVersionSummary: def hook_id(self): """Gets the hook_id of this PrivateHookVersionSummary. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this PrivateHookVersionSummary. :rtype: str @@ -104,7 +104,7 @@ class PrivateHookVersionSummary: def hook_id(self, hook_id): """Sets the hook_id of this PrivateHookVersionSummary. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this PrivateHookVersionSummary. :type hook_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py index b6278de6c..efdd3d9f1 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py @@ -29,7 +29,7 @@ class PrivatePolicyURIPrimitiveTypeHolder: The model defined in huaweicloud sdk - :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 请确保OBS地址所在局点与使用RFS服务局点一致。 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :type policy_uri: str """ @@ -45,7 +45,7 @@ class PrivatePolicyURIPrimitiveTypeHolder: def policy_uri(self): """Gets the policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 请确保OBS地址所在局点与使用RFS服务局点一致。 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :return: The policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. :rtype: str @@ -56,7 +56,7 @@ class PrivatePolicyURIPrimitiveTypeHolder: def policy_uri(self, policy_uri): """Sets the policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 请确保OBS地址所在局点与使用RFS服务局点一致。 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :param policy_uri: The policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. :type policy_uri: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_request.py index 8d10fb523..8e44c8ba7 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_request.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_request.py @@ -37,7 +37,7 @@ class ShowPrivateHookMetadataRequest: :type client_request_id: str :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 :type hook_name: str - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str """ @@ -101,7 +101,7 @@ class ShowPrivateHookMetadataRequest: def hook_id(self): """Gets the hook_id of this ShowPrivateHookMetadataRequest. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this ShowPrivateHookMetadataRequest. :rtype: str @@ -112,7 +112,7 @@ class ShowPrivateHookMetadataRequest: def hook_id(self, hook_id): """Sets the hook_id of this ShowPrivateHookMetadataRequest. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this ShowPrivateHookMetadataRequest. :type hook_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_response.py index 687475393..95308b835 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_response.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_response.py @@ -44,7 +44,7 @@ class ShowPrivateHookMetadataResponse(SdkResponse): :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 :type hook_name: str - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str :param hook_description: 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 :type hook_description: str @@ -109,7 +109,7 @@ class ShowPrivateHookMetadataResponse(SdkResponse): def hook_id(self): """Gets the hook_id of this ShowPrivateHookMetadataResponse. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this ShowPrivateHookMetadataResponse. :rtype: str @@ -120,7 +120,7 @@ class ShowPrivateHookMetadataResponse(SdkResponse): def hook_id(self, hook_id): """Sets the hook_id of this ShowPrivateHookMetadataResponse. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this ShowPrivateHookMetadataResponse. :type hook_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_request.py index 965f9c871..044d5ac6a 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_request.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_request.py @@ -41,7 +41,7 @@ class ShowPrivateHookVersionMetadataRequest: :type hook_name: str :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 :type hook_version: str - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str """ @@ -129,7 +129,7 @@ class ShowPrivateHookVersionMetadataRequest: def hook_id(self): """Gets the hook_id of this ShowPrivateHookVersionMetadataRequest. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this ShowPrivateHookVersionMetadataRequest. :rtype: str @@ -140,7 +140,7 @@ class ShowPrivateHookVersionMetadataRequest: def hook_id(self, hook_id): """Sets the hook_id of this ShowPrivateHookVersionMetadataRequest. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this ShowPrivateHookVersionMetadataRequest. :type hook_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_response.py index b76573dda..f03cb2b04 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_response.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_response.py @@ -40,7 +40,7 @@ class ShowPrivateHookVersionMetadataResponse(SdkResponse): :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 :type hook_name: str - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 :type hook_version: str @@ -94,7 +94,7 @@ class ShowPrivateHookVersionMetadataResponse(SdkResponse): def hook_id(self): """Gets the hook_id of this ShowPrivateHookVersionMetadataResponse. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this ShowPrivateHookVersionMetadataResponse. :rtype: str @@ -105,7 +105,7 @@ class ShowPrivateHookVersionMetadataResponse(SdkResponse): def hook_id(self, hook_id): """Sets the hook_id of this ShowPrivateHookVersionMetadataResponse. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this ShowPrivateHookVersionMetadataResponse. :type hook_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_policy_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_policy_request.py new file mode 100644 index 000000000..dc1a9e7f9 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_policy_request.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPrivateHookVersionPolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'client_request_id': 'str', + 'hook_name': 'str', + 'hook_version': 'str', + 'hook_id': 'str' + } + + attribute_map = { + 'client_request_id': 'Client-Request-Id', + 'hook_name': 'hook_name', + 'hook_version': 'hook_version', + 'hook_id': 'hook_id' + } + + def __init__(self, client_request_id=None, hook_name=None, hook_version=None, hook_id=None): + """ShowPrivateHookVersionPolicyRequest + + The model defined in huaweicloud sdk + + :param client_request_id: 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + :type client_request_id: str + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type hook_version: str + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + """ + + + + self._client_request_id = None + self._hook_name = None + self._hook_version = None + self._hook_id = None + self.discriminator = None + + self.client_request_id = client_request_id + self.hook_name = hook_name + self.hook_version = hook_version + if hook_id is not None: + self.hook_id = hook_id + + @property + def client_request_id(self): + """Gets the client_request_id of this ShowPrivateHookVersionPolicyRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :return: The client_request_id of this ShowPrivateHookVersionPolicyRequest. + :rtype: str + """ + return self._client_request_id + + @client_request_id.setter + def client_request_id(self, client_request_id): + """Sets the client_request_id of this ShowPrivateHookVersionPolicyRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :param client_request_id: The client_request_id of this ShowPrivateHookVersionPolicyRequest. + :type client_request_id: str + """ + self._client_request_id = client_request_id + + @property + def hook_name(self): + """Gets the hook_name of this ShowPrivateHookVersionPolicyRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this ShowPrivateHookVersionPolicyRequest. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this ShowPrivateHookVersionPolicyRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this ShowPrivateHookVersionPolicyRequest. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def hook_version(self): + """Gets the hook_version of this ShowPrivateHookVersionPolicyRequest. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The hook_version of this ShowPrivateHookVersionPolicyRequest. + :rtype: str + """ + return self._hook_version + + @hook_version.setter + def hook_version(self, hook_version): + """Sets the hook_version of this ShowPrivateHookVersionPolicyRequest. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param hook_version: The hook_version of this ShowPrivateHookVersionPolicyRequest. + :type hook_version: str + """ + self._hook_version = hook_version + + @property + def hook_id(self): + """Gets the hook_id of this ShowPrivateHookVersionPolicyRequest. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this ShowPrivateHookVersionPolicyRequest. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this ShowPrivateHookVersionPolicyRequest. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this ShowPrivateHookVersionPolicyRequest. + :type hook_id: str + """ + self._hook_id = hook_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPrivateHookVersionPolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_policy_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_policy_response.py new file mode 100644 index 000000000..4cdb796a3 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_policy_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPrivateHookVersionPolicyResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'location': 'str' + } + + attribute_map = { + 'location': 'Location' + } + + def __init__(self, location=None): + """ShowPrivateHookVersionPolicyResponse + + The model defined in huaweicloud sdk + + :param location: + :type location: str + """ + + super(ShowPrivateHookVersionPolicyResponse, self).__init__() + + self._location = None + self.discriminator = None + + if location is not None: + self.location = location + + @property + def location(self): + """Gets the location of this ShowPrivateHookVersionPolicyResponse. + + :return: The location of this ShowPrivateHookVersionPolicyResponse. + :rtype: str + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this ShowPrivateHookVersionPolicyResponse. + + :param location: The location of this ShowPrivateHookVersionPolicyResponse. + :type location: str + """ + self._location = location + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPrivateHookVersionPolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_instance_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_instance_response.py index 95b20bcb5..8a66f6405 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_instance_response.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_instance_response.py @@ -52,7 +52,7 @@ class ShowStackInstanceResponse(SdkResponse): The model defined in huaweicloud sdk - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str :param stack_set_name: 资源栈集(stack_set)的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 :type stack_set_name: str @@ -122,7 +122,7 @@ class ShowStackInstanceResponse(SdkResponse): def stack_set_id(self): """Gets the stack_set_id of this ShowStackInstanceResponse. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this ShowStackInstanceResponse. :rtype: str @@ -133,7 +133,7 @@ class ShowStackInstanceResponse(SdkResponse): def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this ShowStackInstanceResponse. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this ShowStackInstanceResponse. :type stack_set_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_set_metadata_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_set_metadata_response.py index 810e43b43..6e7ba4ab7 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_set_metadata_response.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_set_metadata_response.py @@ -58,7 +58,7 @@ class ShowStackSetMetadataResponse(SdkResponse): The model defined in huaweicloud sdk - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str :param stack_set_name: 资源栈集(stack_set)的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 :type stack_set_name: str @@ -76,7 +76,7 @@ class ShowStackSetMetadataResponse(SdkResponse): :type status: str :param vars_uri_content: vars_uri对应的文件内容 :type vars_uri_content: str - :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :type vars_body: str :param create_time: 资源栈集的创建时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 :type create_time: str @@ -143,7 +143,7 @@ class ShowStackSetMetadataResponse(SdkResponse): def stack_set_id(self): """Gets the stack_set_id of this ShowStackSetMetadataResponse. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this ShowStackSetMetadataResponse. :rtype: str @@ -154,7 +154,7 @@ class ShowStackSetMetadataResponse(SdkResponse): def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this ShowStackSetMetadataResponse. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this ShowStackSetMetadataResponse. :type stack_set_id: str @@ -341,7 +341,7 @@ class ShowStackSetMetadataResponse(SdkResponse): def vars_body(self): """Gets the vars_body of this ShowStackSetMetadataResponse. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :return: The vars_body of this ShowStackSetMetadataResponse. :rtype: str @@ -352,7 +352,7 @@ class ShowStackSetMetadataResponse(SdkResponse): def vars_body(self, vars_body): """Sets the vars_body of this ShowStackSetMetadataResponse. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :param vars_body: The vars_body of this ShowStackSetMetadataResponse. :type vars_body: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_set_operation_metadata_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_set_operation_metadata_response.py index 9b92b8220..9b7632c60 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_set_operation_metadata_response.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_stack_set_operation_metadata_response.py @@ -56,7 +56,7 @@ class ShowStackSetOperationMetadataResponse(SdkResponse): :param stack_set_operation_id: 资源栈集操作(stack_set_operation)的唯一Id。 此ID由资源编排服务在生成资源栈集操作的时候生成,为UUID。 :type stack_set_operation_id: str - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str :param stack_set_name: 资源栈集(stack_set)的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 :type stack_set_name: str @@ -150,7 +150,7 @@ class ShowStackSetOperationMetadataResponse(SdkResponse): def stack_set_id(self): """Gets the stack_set_id of this ShowStackSetOperationMetadataResponse. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this ShowStackSetOperationMetadataResponse. :rtype: str @@ -161,7 +161,7 @@ class ShowStackSetOperationMetadataResponse(SdkResponse): def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this ShowStackSetOperationMetadataResponse. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this ShowStackSetOperationMetadataResponse. :type stack_set_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_instance.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_instance.py index 3945f6b4b..4365a8d99 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_instance.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_instance.py @@ -49,7 +49,7 @@ class StackInstance: The model defined in huaweicloud sdk - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str :param stack_set_name: 资源栈集(stack_set)的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 :type stack_set_name: str @@ -114,7 +114,7 @@ class StackInstance: def stack_set_id(self): """Gets the stack_set_id of this StackInstance. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this StackInstance. :rtype: str @@ -125,7 +125,7 @@ class StackInstance: def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this StackInstance. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this StackInstance. :type stack_set_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set.py index 60207d70b..f7e999477 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set.py @@ -41,7 +41,7 @@ class StackSet: The model defined in huaweicloud sdk - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str :param stack_set_name: 资源栈集(stack_set)的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 :type stack_set_name: str @@ -86,7 +86,7 @@ class StackSet: def stack_set_id(self): """Gets the stack_set_id of this StackSet. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this StackSet. :rtype: str @@ -97,7 +97,7 @@ class StackSet: def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this StackSet. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this StackSet. :type stack_set_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set_id_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set_id_primitive_type_holder.py index cd5c5a2b7..bc49b39a9 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set_id_primitive_type_holder.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set_id_primitive_type_holder.py @@ -29,7 +29,7 @@ class StackSetIdPrimitiveTypeHolder: The model defined in huaweicloud sdk - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str """ @@ -45,7 +45,7 @@ class StackSetIdPrimitiveTypeHolder: def stack_set_id(self): """Gets the stack_set_id of this StackSetIdPrimitiveTypeHolder. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this StackSetIdPrimitiveTypeHolder. :rtype: str @@ -56,7 +56,7 @@ class StackSetIdPrimitiveTypeHolder: def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this StackSetIdPrimitiveTypeHolder. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this StackSetIdPrimitiveTypeHolder. :type stack_set_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set_operation.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set_operation.py index 7d0c6392d..be71660e8 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set_operation.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/stack_set_operation.py @@ -45,7 +45,7 @@ class StackSetOperation: :param operation_id: 资源栈集操作Id。 此ID由资源编排服务在生成资源栈集操作的时候生成,为UUID。 :type operation_id: str - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str :param stack_set_name: 资源栈集(stack_set)的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 :type stack_set_name: str @@ -115,7 +115,7 @@ class StackSetOperation: def stack_set_id(self): """Gets the stack_set_id of this StackSetOperation. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this StackSetOperation. :rtype: str @@ -126,7 +126,7 @@ class StackSetOperation: def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this StackSetOperation. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this StackSetOperation. :type stack_set_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request_body.py index 184d7c9b3..b9038bc40 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request_body.py @@ -37,7 +37,7 @@ class UpdatePrivateHookMetadataRequestBody: :param hook_description: 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 :type hook_description: str - :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :type hook_id: str :param default_version: 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 :type default_version: str @@ -88,7 +88,7 @@ class UpdatePrivateHookMetadataRequestBody: def hook_id(self): """Gets the hook_id of this UpdatePrivateHookMetadataRequestBody. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :return: The hook_id of this UpdatePrivateHookMetadataRequestBody. :rtype: str @@ -99,7 +99,7 @@ class UpdatePrivateHookMetadataRequestBody: def hook_id(self, hook_id): """Sets the hook_id of this UpdatePrivateHookMetadataRequestBody. - 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给予的hook_id和当前hook的Id不一致,则返回400。 :param hook_id: The hook_id of this UpdatePrivateHookMetadataRequestBody. :type hook_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_stack_instances_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_stack_instances_request_body.py index 4313e8ded..309c04dd1 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_stack_instances_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_stack_instances_request_body.py @@ -37,7 +37,7 @@ class UpdateStackInstancesRequestBody: The model defined in huaweicloud sdk - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str :param deployment_targets: :type deployment_targets: :class:`huaweicloudsdkaos.v1.DeploymentTargets` @@ -72,7 +72,7 @@ class UpdateStackInstancesRequestBody: def stack_set_id(self): """Gets the stack_set_id of this UpdateStackInstancesRequestBody. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this UpdateStackInstancesRequestBody. :rtype: str @@ -83,7 +83,7 @@ class UpdateStackInstancesRequestBody: def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this UpdateStackInstancesRequestBody. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this UpdateStackInstancesRequestBody. :type stack_set_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_stack_set_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_stack_set_request_body.py index 8ae246035..979bbfcf5 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_stack_set_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_stack_set_request_body.py @@ -43,7 +43,7 @@ class UpdateStackSetRequestBody: The model defined in huaweicloud sdk - :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + :param stack_set_id: 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :type stack_set_id: str :param stack_set_description: 资源栈集的描述。可用于客户识别自己的资源栈集。 :type stack_set_description: str @@ -94,7 +94,7 @@ class UpdateStackSetRequestBody: def stack_set_id(self): """Gets the stack_set_id of this UpdateStackSetRequestBody. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :return: The stack_set_id of this UpdateStackSetRequestBody. :rtype: str @@ -105,7 +105,7 @@ class UpdateStackSetRequestBody: def stack_set_id(self, stack_set_id): """Sets the stack_set_id of this UpdateStackSetRequestBody. - 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,在重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是又其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 + 资源栈集(stack_set)的唯一ID。 此ID由资源编排服务在生成资源栈集的时候生成,为UUID。 由于资源栈集名仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的资源栈集,删除,再重新创建一个同名资源栈集。 对于团队并行开发,用户可能希望确保,当前我操作的资源栈集就是我以为的那个,而不是被其他队友删除后创建的同名资源栈集。因此,使用ID就可以做到强匹配。 资源编排服务保证每次创建的资源栈集所对应的ID都不相同,更新不会影响ID。如果给予的stack_set_id和当前资源栈集的ID不一致,则返回400 :param stack_set_id: The stack_set_id of this UpdateStackSetRequestBody. :type stack_set_id: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/var_overrides_primitive_type_holder_var_overrides.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/var_overrides_primitive_type_holder_var_overrides.py index 2fcb01bf7..556c8fdbe 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/var_overrides_primitive_type_holder_var_overrides.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/var_overrides_primitive_type_holder_var_overrides.py @@ -33,9 +33,9 @@ class VarOverridesPrimitiveTypeHolderVarOverrides: The model defined in huaweicloud sdk - :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :type vars_uri: str - :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :type vars_body: str :param use_stack_set_vars: 用户期望使用资源栈集中记录的参数值进行部署的参数名称列表。 用户只能选择已经在资源栈集中被记录的参数,如果指定了未被记录的参数会报错400。 如果use_stack_set_vars中包含资源栈实例中已经被覆盖的参数名称,则会将该参数回退至资源栈集中记录的参数值。 :type use_stack_set_vars: list[str] @@ -59,7 +59,7 @@ class VarOverridesPrimitiveTypeHolderVarOverrides: def vars_uri(self): """Gets the vars_uri of this VarOverridesPrimitiveTypeHolderVarOverrides. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :return: The vars_uri of this VarOverridesPrimitiveTypeHolderVarOverrides. :rtype: str @@ -70,7 +70,7 @@ class VarOverridesPrimitiveTypeHolderVarOverrides: def vars_uri(self, vars_uri): """Sets the vars_uri of this VarOverridesPrimitiveTypeHolderVarOverrides. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :param vars_uri: The vars_uri of this VarOverridesPrimitiveTypeHolderVarOverrides. :type vars_uri: str @@ -81,7 +81,7 @@ class VarOverridesPrimitiveTypeHolderVarOverrides: def vars_body(self): """Gets the vars_body of this VarOverridesPrimitiveTypeHolderVarOverrides. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :return: The vars_body of this VarOverridesPrimitiveTypeHolderVarOverrides. :rtype: str @@ -92,7 +92,7 @@ class VarOverridesPrimitiveTypeHolderVarOverrides: def vars_body(self, vars_body): """Sets the vars_body of this VarOverridesPrimitiveTypeHolderVarOverrides. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :param vars_body: The vars_body of this VarOverridesPrimitiveTypeHolderVarOverrides. :type vars_body: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_body_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_body_primitive_type_holder.py index 7f9393b5d..dc738b89d 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_body_primitive_type_holder.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_body_primitive_type_holder.py @@ -29,7 +29,7 @@ class VarsBodyPrimitiveTypeHolder: The model defined in huaweicloud sdk - :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + :param vars_body: HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :type vars_body: str """ @@ -45,7 +45,7 @@ class VarsBodyPrimitiveTypeHolder: def vars_body(self): """Gets the vars_body of this VarsBodyPrimitiveTypeHolder. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :return: The vars_body of this VarsBodyPrimitiveTypeHolder. :rtype: str @@ -56,7 +56,7 @@ class VarsBodyPrimitiveTypeHolder: def vars_body(self, vars_body): """Sets the vars_body of this VarsBodyPrimitiveTypeHolder. - HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 + HCL参数文件的内容。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * vars_body使用HCL的tfvars格式,用户可以将“.tfvars”中的内容提交到vars_body中 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * 如果vars_body过大,可以使用vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储对应的vars_body。 :param vars_body: The vars_body of this VarsBodyPrimitiveTypeHolder. :type vars_body: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_structure_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_structure_primitive_type_holder.py index 322f329b0..03458295c 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_structure_primitive_type_holder.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_structure_primitive_type_holder.py @@ -29,7 +29,7 @@ class VarsStructurePrimitiveTypeHolder: The model defined in huaweicloud sdk - :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + :param vars_structure: HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] """ @@ -45,7 +45,7 @@ class VarsStructurePrimitiveTypeHolder: def vars_structure(self): """Gets the vars_structure of this VarsStructurePrimitiveTypeHolder. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :return: The vars_structure of this VarsStructurePrimitiveTypeHolder. :rtype: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] @@ -56,7 +56,7 @@ class VarsStructurePrimitiveTypeHolder: def vars_structure(self, vars_structure): """Sets the vars_structure of this VarsStructurePrimitiveTypeHolder. - HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声名了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 + HCL参数结构。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 * var_structure可以允许客户提交最简单的字符串类型的参数 * 资源编排服务支持vars_structure,vars_body和vars_uri,如果以上三种方式中声明了同一个变量,将报错400 * vars_structure中的值只支持简单的字符串类型,如果需要使用其他类型,需要用户自己在HCL引用时转换, 或者用户可以使用vars_uri、vars_body,vars_uri和vars_body中支持HCL支持的各种类型以及复杂结构 * 如果vars_structure过大,可以使用vars_uri * 注意:vars_structure中默认不应该含有任何敏感信息,资源编排服务会直接明文使用、log、展示、存储对应的vars。如为敏感信息,建议设置encryption字段开启加密 :param vars_structure: The vars_structure of this VarsStructurePrimitiveTypeHolder. :type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`] diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_uri_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_uri_primitive_type_holder.py index 38a875a8c..2b30b800b 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_uri_primitive_type_holder.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/vars_uri_primitive_type_holder.py @@ -29,7 +29,7 @@ class VarsURIPrimitiveTypeHolder: The model defined in huaweicloud sdk - :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + :param vars_uri: HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :type vars_uri: str """ @@ -45,7 +45,7 @@ class VarsURIPrimitiveTypeHolder: def vars_uri(self): """Gets the vars_uri of this VarsURIPrimitiveTypeHolder. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :return: The vars_uri of this VarsURIPrimitiveTypeHolder. :rtype: str @@ -56,7 +56,7 @@ class VarsURIPrimitiveTypeHolder: def vars_uri(self, vars_uri): """Sets the vars_uri of this VarsURIPrimitiveTypeHolder. - HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声名了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 + HCL参数文件的OBS地址。HCL模板支持参数传入,即,同一个模板可以给予不同的参数而达到不同的效果。 请确保OBS地址所在局点与使用RFS服务局点一致。 * vars_uri需要指向一个OBS的pre-signed URL地址,其他地址暂不支持 * 资源编排服务支持vars_body和vars_uri,如果以上两种方式中声明了同一个变量,将报错400 * vars_uri中的内容使用HCL的tfvars格式,用户可以将“.tfvars”中的内容保存到文件并上传到OBS中,并将OBS pre-signed URL传递给vars_uri * 资源栈集不支持敏感数据加密,资源编排服务会直接明文使用、log、展示、存储vars_uri对应的参数文件内容 :param vars_uri: The vars_uri of this VarsURIPrimitiveTypeHolder. :type vars_uri: str diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index 2f5fd628d..36931ff76 100644 --- a/huaweicloud-sdk-aos/setup.py +++ b/huaweicloud-sdk-aos/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkaos" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index 902673605..a720e6e91 100644 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index d42dda22f..5ece0b700 100644 --- a/huaweicloud-sdk-apm/setup.py +++ b/huaweicloud-sdk-apm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkapm" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 09100202f..82069cf1c 100644 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-asm/requirements.txt b/huaweicloud-sdk-asm/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-asm/requirements.txt +++ b/huaweicloud-sdk-asm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-asm/setup.py b/huaweicloud-sdk-asm/setup.py index a75e4364e..ce0025e06 100644 --- a/huaweicloud-sdk-asm/setup.py +++ b/huaweicloud-sdk-asm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkasm" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index 695eacc49..bae56f550 100644 --- a/huaweicloud-sdk-bcs/setup.py +++ b/huaweicloud-sdk-bcs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbcs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index d3c53da35..4456b8f7c 100644 --- a/huaweicloud-sdk-bms/setup.py +++ b/huaweicloud-sdk-bms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbms" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index 8953b444c..e141379e4 100644 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index 884eb1d5a..e63afb6fe 100644 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index 6e72effbc..3f17a4e90 100644 --- a/huaweicloud-sdk-cae/setup.py +++ b/huaweicloud-sdk-cae/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcae" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index 383893685..0078809ef 100644 --- a/huaweicloud-sdk-campusgo/setup.py +++ b/huaweicloud-sdk-campusgo/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcampusgo" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 404c3adcc..2d9876504 100644 --- a/huaweicloud-sdk-cbh/setup.py +++ b/huaweicloud-sdk-cbh/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbh" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py index 14bbf5acb..756ee46e2 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py @@ -31,7 +31,7 @@ class BackupRestoreServerMapping: The model defined in huaweicloud sdk - :param backup_id: 卷备份ID,可以通过控制台或者“查询指定备份”接口获取。 + :param backup_id: 卷备份ID,可以通过控制台查看云服务器备份详情中磁盘级备份的ID;或“查询指定备份”接口,获取备份中children内的磁盘级备份的ID。 :type backup_id: str :param volume_id: 待恢复目标卷ID :type volume_id: str @@ -50,7 +50,7 @@ class BackupRestoreServerMapping: def backup_id(self): """Gets the backup_id of this BackupRestoreServerMapping. - 卷备份ID,可以通过控制台或者“查询指定备份”接口获取。 + 卷备份ID,可以通过控制台查看云服务器备份详情中磁盘级备份的ID;或“查询指定备份”接口,获取备份中children内的磁盘级备份的ID。 :return: The backup_id of this BackupRestoreServerMapping. :rtype: str @@ -61,7 +61,7 @@ class BackupRestoreServerMapping: def backup_id(self, backup_id): """Sets the backup_id of this BackupRestoreServerMapping. - 卷备份ID,可以通过控制台或者“查询指定备份”接口获取。 + 卷备份ID,可以通过控制台查看云服务器备份详情中磁盘级备份的ID;或“查询指定备份”接口,获取备份中children内的磁盘级备份的ID。 :param backup_id: The backup_id of this BackupRestoreServerMapping. :type backup_id: str diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/list_vault_request.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/list_vault_request.py index 182ab0c19..c6c126458 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/list_vault_request.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/list_vault_request.py @@ -69,7 +69,7 @@ class ListVaultRequest: :type policy_id: str :param status: 状态 :type status: str - :param resource_ids: 资源id,支持多资源,以英文逗号分割 + :param resource_ids: 资源id,支持多资源,以英文逗号分隔 :type resource_ids: str """ @@ -335,7 +335,7 @@ class ListVaultRequest: def resource_ids(self): """Gets the resource_ids of this ListVaultRequest. - 资源id,支持多资源,以英文逗号分割 + 资源id,支持多资源,以英文逗号分隔 :return: The resource_ids of this ListVaultRequest. :rtype: str @@ -346,7 +346,7 @@ class ListVaultRequest: def resource_ids(self, resource_ids): """Sets the resource_ids of this ListVaultRequest. - 资源id,支持多资源,以英文逗号分割 + 资源id,支持多资源,以英文逗号分隔 :param resource_ids: The resource_ids of this ListVaultRequest. :type resource_ids: str diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault.py index 760e39174..54af4ef69 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault.py @@ -33,7 +33,8 @@ class Vault: 'auto_expand': 'bool', 'smn_notify': 'bool', 'threshold': 'int', - 'sys_lock_source_service': 'str' + 'sys_lock_source_service': 'str', + 'locked': 'bool' } attribute_map = { @@ -53,10 +54,11 @@ class Vault: 'auto_expand': 'auto_expand', 'smn_notify': 'smn_notify', 'threshold': 'threshold', - 'sys_lock_source_service': 'sys_lock_source_service' + 'sys_lock_source_service': 'sys_lock_source_service', + 'locked': 'locked' } - def __init__(self, billing=None, description=None, id=None, name=None, project_id=None, provider_id=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, user_id=None, created_at=None, auto_expand=None, smn_notify=None, threshold=None, sys_lock_source_service=None): + def __init__(self, billing=None, description=None, id=None, name=None, project_id=None, provider_id=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, user_id=None, created_at=None, auto_expand=None, smn_notify=None, threshold=None, sys_lock_source_service=None, locked=None): """Vault The model defined in huaweicloud sdk @@ -95,6 +97,8 @@ class Vault: :type threshold: int :param sys_lock_source_service: 用于标识SMB服务 :type sys_lock_source_service: str + :param locked: 用于标识该存储库是否已锁定 + :type locked: bool """ @@ -116,6 +120,7 @@ class Vault: self._smn_notify = None self._threshold = None self._sys_lock_source_service = None + self._locked = None self.discriminator = None self.billing = billing @@ -146,6 +151,8 @@ class Vault: self.threshold = threshold if sys_lock_source_service is not None: self.sys_lock_source_service = sys_lock_source_service + if locked is not None: + self.locked = locked @property def billing(self): @@ -513,6 +520,28 @@ class Vault: """ self._sys_lock_source_service = sys_lock_source_service + @property + def locked(self): + """Gets the locked of this Vault. + + 用于标识该存储库是否已锁定 + + :return: The locked of this Vault. + :rtype: bool + """ + return self._locked + + @locked.setter + def locked(self, locked): + """Sets the locked of this Vault. + + 用于标识该存储库是否已锁定 + + :param locked: The locked of this Vault. + :type locked: bool + """ + self._locked = locked + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create.py index 6519fbee3..3208b567a 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create.py @@ -31,7 +31,8 @@ class VaultCreate: 'smn_notify': 'bool', 'backup_name_prefix': 'str', 'demand_billing': 'bool', - 'sys_lock_source_service': 'str' + 'sys_lock_source_service': 'str', + 'locked': 'bool' } attribute_map = { @@ -49,10 +50,11 @@ class VaultCreate: 'smn_notify': 'smn_notify', 'backup_name_prefix': 'backup_name_prefix', 'demand_billing': 'demand_billing', - 'sys_lock_source_service': 'sys_lock_source_service' + 'sys_lock_source_service': 'sys_lock_source_service', + 'locked': 'locked' } - def __init__(self, backup_policy_id=None, billing=None, description=None, name=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, auto_expand=None, threshold=None, smn_notify=None, backup_name_prefix=None, demand_billing=None, sys_lock_source_service=None): + def __init__(self, backup_policy_id=None, billing=None, description=None, name=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, auto_expand=None, threshold=None, smn_notify=None, backup_name_prefix=None, demand_billing=None, sys_lock_source_service=None, locked=None): """VaultCreate The model defined in huaweicloud sdk @@ -87,6 +89,8 @@ class VaultCreate: :type demand_billing: bool :param sys_lock_source_service: 用于标识SMB服务,您可以设置为SMB或者空 :type sys_lock_source_service: str + :param locked: 用于标识该存储库是否已锁定 + :type locked: bool """ @@ -106,6 +110,7 @@ class VaultCreate: self._backup_name_prefix = None self._demand_billing = None self._sys_lock_source_service = None + self._locked = None self.discriminator = None if backup_policy_id is not None: @@ -135,6 +140,8 @@ class VaultCreate: self.demand_billing = demand_billing if sys_lock_source_service is not None: self.sys_lock_source_service = sys_lock_source_service + if locked is not None: + self.locked = locked @property def backup_policy_id(self): @@ -458,6 +465,28 @@ class VaultCreate: """ self._sys_lock_source_service = sys_lock_source_service + @property + def locked(self): + """Gets the locked of this VaultCreate. + + 用于标识该存储库是否已锁定 + + :return: The locked of this VaultCreate. + :rtype: bool + """ + return self._locked + + @locked.setter + def locked(self, locked): + """Sets the locked of this VaultCreate. + + 用于标识该存储库是否已锁定 + + :param locked: The locked of this VaultCreate. + :type locked: bool + """ + self._locked = locked + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create_resource.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create_resource.py index df7b7a270..da1f677e9 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create_resource.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create_resource.py @@ -40,7 +40,8 @@ class VaultCreateResource: 'demand_billing': 'bool', 'cbc_delete_count': 'int', 'frozen': 'bool', - 'sys_lock_source_service': 'str' + 'sys_lock_source_service': 'str', + 'locked': 'bool' } attribute_map = { @@ -67,10 +68,11 @@ class VaultCreateResource: 'demand_billing': 'demand_billing', 'cbc_delete_count': 'cbc_delete_count', 'frozen': 'frozen', - 'sys_lock_source_service': 'sys_lock_source_service' + 'sys_lock_source_service': 'sys_lock_source_service', + 'locked': 'locked' } - def __init__(self, billing=None, description=None, id=None, name=None, project_id=None, provider_id=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, user_id=None, created_at=None, auto_expand=None, smn_notify=None, threshold=None, err_text=None, ret_code=None, orders=None, backup_name_prefix=None, demand_billing=None, cbc_delete_count=None, frozen=None, sys_lock_source_service=None): + def __init__(self, billing=None, description=None, id=None, name=None, project_id=None, provider_id=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, user_id=None, created_at=None, auto_expand=None, smn_notify=None, threshold=None, err_text=None, ret_code=None, orders=None, backup_name_prefix=None, demand_billing=None, cbc_delete_count=None, frozen=None, sys_lock_source_service=None, locked=None): """VaultCreateResource The model defined in huaweicloud sdk @@ -123,6 +125,8 @@ class VaultCreateResource: :type frozen: bool :param sys_lock_source_service: 用于标识SMB服务 :type sys_lock_source_service: str + :param locked: 用于标识该存储库是否已锁定 + :type locked: bool """ @@ -151,6 +155,7 @@ class VaultCreateResource: self._cbc_delete_count = None self._frozen = None self._sys_lock_source_service = None + self._locked = None self.discriminator = None self.billing = billing @@ -195,6 +200,8 @@ class VaultCreateResource: self.frozen = frozen if sys_lock_source_service is not None: self.sys_lock_source_service = sys_lock_source_service + if locked is not None: + self.locked = locked @property def billing(self): @@ -716,6 +723,28 @@ class VaultCreateResource: """ self._sys_lock_source_service = sys_lock_source_service + @property + def locked(self): + """Gets the locked of this VaultCreateResource. + + 用于标识该存储库是否已锁定 + + :return: The locked of this VaultCreateResource. + :rtype: bool + """ + return self._locked + + @locked.setter + def locked(self, locked): + """Sets the locked of this VaultCreateResource. + + 用于标识该存储库是否已锁定 + + :param locked: The locked of this VaultCreateResource. + :type locked: bool + """ + self._locked = locked + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_get.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_get.py index 8fcc9528c..e6c4fdd3a 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_get.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_get.py @@ -34,6 +34,7 @@ class VaultGet: 'smn_notify': 'bool', 'threshold': 'int', 'sys_lock_source_service': 'str', + 'locked': 'bool', 'updated_at': 'str', 'version': 'str' } @@ -56,11 +57,12 @@ class VaultGet: 'smn_notify': 'smn_notify', 'threshold': 'threshold', 'sys_lock_source_service': 'sys_lock_source_service', + 'locked': 'locked', 'updated_at': 'updated_at', 'version': 'version' } - def __init__(self, billing=None, description=None, id=None, name=None, project_id=None, provider_id=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, user_id=None, created_at=None, auto_expand=None, smn_notify=None, threshold=None, sys_lock_source_service=None, updated_at=None, version=None): + def __init__(self, billing=None, description=None, id=None, name=None, project_id=None, provider_id=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, user_id=None, created_at=None, auto_expand=None, smn_notify=None, threshold=None, sys_lock_source_service=None, locked=None, updated_at=None, version=None): """VaultGet The model defined in huaweicloud sdk @@ -99,6 +101,8 @@ class VaultGet: :type threshold: int :param sys_lock_source_service: 用于标识SMB服务 :type sys_lock_source_service: str + :param locked: 用于标识该存储库是否已锁定 + :type locked: bool :param updated_at: 更新时间,例如:\"2020-02-05T10:38:34.209782\" :type updated_at: str :param version: 版本 @@ -124,6 +128,7 @@ class VaultGet: self._smn_notify = None self._threshold = None self._sys_lock_source_service = None + self._locked = None self._updated_at = None self._version = None self.discriminator = None @@ -156,6 +161,8 @@ class VaultGet: self.threshold = threshold if sys_lock_source_service is not None: self.sys_lock_source_service = sys_lock_source_service + if locked is not None: + self.locked = locked self.updated_at = updated_at if version is not None: self.version = version @@ -526,6 +533,28 @@ class VaultGet: """ self._sys_lock_source_service = sys_lock_source_service + @property + def locked(self): + """Gets the locked of this VaultGet. + + 用于标识该存储库是否已锁定 + + :return: The locked of this VaultGet. + :rtype: bool + """ + return self._locked + + @locked.setter + def locked(self, locked): + """Sets the locked of this VaultGet. + + 用于标识该存储库是否已锁定 + + :param locked: The locked of this VaultGet. + :type locked: bool + """ + self._locked = locked + @property def updated_at(self): """Gets the updated_at of this VaultGet. diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_order.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_order.py index 8db73c0d9..2a83eae04 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_order.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_order.py @@ -29,7 +29,8 @@ class VaultOrder: 'threshold': 'int', 'smn_notify': 'bool', 'parameters': 'VaultCreateParameters', - 'auto_expand': 'bool' + 'auto_expand': 'bool', + 'locked': 'bool' } attribute_map = { @@ -45,10 +46,11 @@ class VaultOrder: 'threshold': 'threshold', 'smn_notify': 'smn_notify', 'parameters': 'parameters', - 'auto_expand': 'auto_expand' + 'auto_expand': 'auto_expand', + 'locked': 'locked' } - def __init__(self, name=None, billing=None, resources=None, description=None, backup_policy_id=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, threshold=None, smn_notify=None, parameters=None, auto_expand=None): + def __init__(self, name=None, billing=None, resources=None, description=None, backup_policy_id=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, threshold=None, smn_notify=None, parameters=None, auto_expand=None, locked=None): """VaultOrder The model defined in huaweicloud sdk @@ -79,6 +81,8 @@ class VaultOrder: :type parameters: :class:`huaweicloudsdkcbr.v1.VaultCreateParameters` :param auto_expand: 是否开启存储库自动扩容能力(只支持按需存储库)。 :type auto_expand: bool + :param locked: 用于标识当前存储库是否已锁定 + :type locked: bool """ @@ -96,6 +100,7 @@ class VaultOrder: self._smn_notify = None self._parameters = None self._auto_expand = None + self._locked = None self.discriminator = None if name is not None: @@ -122,6 +127,8 @@ class VaultOrder: self.parameters = parameters if auto_expand is not None: self.auto_expand = auto_expand + if locked is not None: + self.locked = locked @property def name(self): @@ -397,6 +404,28 @@ class VaultOrder: """ self._auto_expand = auto_expand + @property + def locked(self): + """Gets the locked of this VaultOrder. + + 用于标识当前存储库是否已锁定 + + :return: The locked of this VaultOrder. + :rtype: bool + """ + return self._locked + + @locked.setter + def locked(self, locked): + """Sets the locked of this VaultOrder. + + 用于标识当前存储库是否已锁定 + + :param locked: The locked of this VaultOrder. + :type locked: bool + """ + self._locked = locked + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_update.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_update.py index 696103570..f96073b22 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_update.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_update.py @@ -23,7 +23,8 @@ class VaultUpdate: 'bind_rules': 'VaultBindRules', 'auto_expand': 'bool', 'smn_notify': 'bool', - 'threshold': 'int' + 'threshold': 'int', + 'locked': 'bool' } attribute_map = { @@ -33,10 +34,11 @@ class VaultUpdate: 'bind_rules': 'bind_rules', 'auto_expand': 'auto_expand', 'smn_notify': 'smn_notify', - 'threshold': 'threshold' + 'threshold': 'threshold', + 'locked': 'locked' } - def __init__(self, billing=None, name=None, auto_bind=None, bind_rules=None, auto_expand=None, smn_notify=None, threshold=None): + def __init__(self, billing=None, name=None, auto_bind=None, bind_rules=None, auto_expand=None, smn_notify=None, threshold=None, locked=None): """VaultUpdate The model defined in huaweicloud sdk @@ -55,6 +57,8 @@ class VaultUpdate: :type smn_notify: bool :param threshold: 存储库容量阈值,存储库已用容量和总容量的百分比超过该值,若smn_notify为开,将发送相关通知。 :type threshold: int + :param locked: 用于标识当前存储库是否已锁定 + :type locked: bool """ @@ -66,6 +70,7 @@ class VaultUpdate: self._auto_expand = None self._smn_notify = None self._threshold = None + self._locked = None self.discriminator = None if billing is not None: @@ -82,6 +87,8 @@ class VaultUpdate: self.smn_notify = smn_notify if threshold is not None: self.threshold = threshold + if locked is not None: + self.locked = locked @property def billing(self): @@ -229,6 +236,28 @@ class VaultUpdate: """ self._threshold = threshold + @property + def locked(self): + """Gets the locked of this VaultUpdate. + + 用于标识当前存储库是否已锁定 + + :return: The locked of this VaultUpdate. + :rtype: bool + """ + return self._locked + + @locked.setter + def locked(self, locked): + """Sets the locked of this VaultUpdate. + + 用于标识当前存储库是否已锁定 + + :param locked: The locked of this VaultUpdate. + :type locked: bool + """ + self._locked = locked + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 1620d30ab..e5638954d 100644 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index 00041fa5a..7bdc986e7 100644 --- a/huaweicloud-sdk-cbs/setup.py +++ b/huaweicloud-sdk-cbs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index 29e3a6cc5..ff628719f 100644 --- a/huaweicloud-sdk-cc/setup.py +++ b/huaweicloud-sdk-cc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcc" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_information_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_information_spec.py index 90a35cfa1..f92b992c7 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_information_spec.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_information_spec.py @@ -21,7 +21,8 @@ class ClusterInformationSpec: 'custom_san': 'list[str]', 'container_network': 'ContainerNetworkUpdate', 'eni_network': 'EniNetworkUpdate', - 'host_network': 'ClusterInformationSpecHostNetwork' + 'host_network': 'ClusterInformationSpecHostNetwork', + 'deletion_protection': 'bool' } attribute_map = { @@ -29,10 +30,11 @@ class ClusterInformationSpec: 'custom_san': 'customSan', 'container_network': 'containerNetwork', 'eni_network': 'eniNetwork', - 'host_network': 'hostNetwork' + 'host_network': 'hostNetwork', + 'deletion_protection': 'deletionProtection' } - def __init__(self, description=None, custom_san=None, container_network=None, eni_network=None, host_network=None): + def __init__(self, description=None, custom_san=None, container_network=None, eni_network=None, host_network=None, deletion_protection=None): """ClusterInformationSpec The model defined in huaweicloud sdk @@ -47,6 +49,8 @@ class ClusterInformationSpec: :type eni_network: :class:`huaweicloudsdkcce.v3.EniNetworkUpdate` :param host_network: :type host_network: :class:`huaweicloudsdkcce.v3.ClusterInformationSpecHostNetwork` + :param deletion_protection: 集群删除保护,默认为false关闭,如果开启后用户将无法删除该集群。 + :type deletion_protection: bool """ @@ -56,6 +60,7 @@ class ClusterInformationSpec: self._container_network = None self._eni_network = None self._host_network = None + self._deletion_protection = None self.discriminator = None if description is not None: @@ -68,6 +73,8 @@ class ClusterInformationSpec: self.eni_network = eni_network if host_network is not None: self.host_network = host_network + if deletion_protection is not None: + self.deletion_protection = deletion_protection @property def description(self): @@ -167,6 +174,28 @@ class ClusterInformationSpec: """ self._host_network = host_network + @property + def deletion_protection(self): + """Gets the deletion_protection of this ClusterInformationSpec. + + 集群删除保护,默认为false关闭,如果开启后用户将无法删除该集群。 + + :return: The deletion_protection of this ClusterInformationSpec. + :rtype: bool + """ + return self._deletion_protection + + @deletion_protection.setter + def deletion_protection(self, deletion_protection): + """Sets the deletion_protection of this ClusterInformationSpec. + + 集群删除保护,默认为false关闭,如果开启后用户将无法删除该集群。 + + :param deletion_protection: The deletion_protection of this ClusterInformationSpec. + :type deletion_protection: bool + """ + self._deletion_protection = deletion_protection + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_spec.py index 846dc37d0..afdf4d5aa 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_spec.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_spec.py @@ -40,6 +40,7 @@ class ClusterSpec: 'support_istio': 'bool', 'enable_master_volume_encryption': 'bool', 'enable_dist_mgt': 'bool', + 'deletion_protection': 'bool', 'configurations_override': 'list[PackageConfiguration]' } @@ -67,10 +68,11 @@ class ClusterSpec: 'support_istio': 'supportIstio', 'enable_master_volume_encryption': 'enableMasterVolumeEncryption', 'enable_dist_mgt': 'enableDistMgt', + 'deletion_protection': 'deletionProtection', 'configurations_override': 'configurationsOverride' } - def __init__(self, category=None, type=None, flavor=None, version=None, platform_version=None, description=None, custom_san=None, ipv6enable=None, host_network=None, container_network=None, eni_network=None, service_network=None, authentication=None, billing_mode=None, masters=None, kubernetes_svc_ip_range=None, cluster_tags=None, kube_proxy_mode=None, az=None, extend_param=None, support_istio=None, enable_master_volume_encryption=None, enable_dist_mgt=None, configurations_override=None): + def __init__(self, category=None, type=None, flavor=None, version=None, platform_version=None, description=None, custom_san=None, ipv6enable=None, host_network=None, container_network=None, eni_network=None, service_network=None, authentication=None, billing_mode=None, masters=None, kubernetes_svc_ip_range=None, cluster_tags=None, kube_proxy_mode=None, az=None, extend_param=None, support_istio=None, enable_master_volume_encryption=None, enable_dist_mgt=None, deletion_protection=None, configurations_override=None): """ClusterSpec The model defined in huaweicloud sdk @@ -121,6 +123,8 @@ class ClusterSpec: :type enable_master_volume_encryption: bool :param enable_dist_mgt: 集群开启对分布式云支持。创建CCE Turbo集群时,可在创建集群过程中,开启对分布式云(cloudpond)支持。 :type enable_dist_mgt: bool + :param deletion_protection: 集群删除保护,默认为false关闭,如果开启后用户将无法删除该集群。 + :type deletion_protection: bool :param configurations_override: 覆盖集群默认组件配置 若指定了不支持的组件或组件不支持的参数,该配置项将被忽略。 当前支持的可配置组件及其参数详见 [[配置管理](https://support.huaweicloud.com/usermanual-cce/cce_10_0213.html)](tag:hws) [[配置管理](https://support.huaweicloud.com/intl/zh-cn/usermanual-cce/cce_10_0213.html)](tag:hws_hk) :type configurations_override: list[:class:`huaweicloudsdkcce.v3.PackageConfiguration`] """ @@ -150,6 +154,7 @@ class ClusterSpec: self._support_istio = None self._enable_master_volume_encryption = None self._enable_dist_mgt = None + self._deletion_protection = None self._configurations_override = None self.discriminator = None @@ -196,6 +201,8 @@ class ClusterSpec: self.enable_master_volume_encryption = enable_master_volume_encryption if enable_dist_mgt is not None: self.enable_dist_mgt = enable_dist_mgt + if deletion_protection is not None: + self.deletion_protection = deletion_protection if configurations_override is not None: self.configurations_override = configurations_override @@ -681,6 +688,28 @@ class ClusterSpec: """ self._enable_dist_mgt = enable_dist_mgt + @property + def deletion_protection(self): + """Gets the deletion_protection of this ClusterSpec. + + 集群删除保护,默认为false关闭,如果开启后用户将无法删除该集群。 + + :return: The deletion_protection of this ClusterSpec. + :rtype: bool + """ + return self._deletion_protection + + @deletion_protection.setter + def deletion_protection(self, deletion_protection): + """Sets the deletion_protection of this ClusterSpec. + + 集群删除保护,默认为false关闭,如果开启后用户将无法删除该集群。 + + :param deletion_protection: The deletion_protection of this ClusterSpec. + :type deletion_protection: bool + """ + self._deletion_protection = deletion_protection + @property def configurations_override(self): """Gets the configurations_override of this ClusterSpec. diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index bea3e6ee3..8333c6fa4 100644 --- a/huaweicloud-sdk-cce/setup.py +++ b/huaweicloud-sdk-cce/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index 769335e1b..34d220322 100644 --- a/huaweicloud-sdk-ccm/setup.py +++ b/huaweicloud-sdk-ccm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkccm" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index abd7fd58e..eeab3a2c4 100644 --- a/huaweicloud-sdk-cdm/setup.py +++ b/huaweicloud-sdk-cdm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcdm" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index d4e91ca1e..01270597a 100644 --- a/huaweicloud-sdk-cdn/setup.py +++ b/huaweicloud-sdk-cdn/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcdn" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/ces_async_client.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/ces_async_client.py index 50d0deb4b..01fc6f3b4 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/ces_async_client.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/ces_async_client.py @@ -1672,6 +1672,8 @@ class CesAsyncClient(Client): query_params.append(('offset', local_var_params['offset'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) + if 'order_by' in local_var_params: + query_params.append(('order_by', local_var_params['order_by'])) header_params = {} diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/ces_client.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/ces_client.py index c8e602e06..e9ea4ffba 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/ces_client.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/ces_client.py @@ -1672,6 +1672,8 @@ class CesClient(Client): query_params.append(('offset', local_var_params['offset'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) + if 'order_by' in local_var_params: + query_params.append(('order_by', local_var_params['order_by'])) header_params = {} diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/alarm_history_item_v2.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/alarm_history_item_v2.py index 0627f0ad3..4ae34cf4e 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/alarm_history_item_v2.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/alarm_history_item_v2.py @@ -26,6 +26,9 @@ class AlarmHistoryItemV2: 'action_enabled': 'bool', 'begin_time': 'datetime', 'end_time': 'datetime', + 'first_alarm_time': 'datetime', + 'last_alarm_time': 'datetime', + 'alarm_recovery_time': 'datetime', 'metric': 'Metric', 'condition': 'AlarmCondition', 'additional_info': 'AdditionalInfo', @@ -44,6 +47,9 @@ class AlarmHistoryItemV2: 'action_enabled': 'action_enabled', 'begin_time': 'begin_time', 'end_time': 'end_time', + 'first_alarm_time': 'first_alarm_time', + 'last_alarm_time': 'last_alarm_time', + 'alarm_recovery_time': 'alarm_recovery_time', 'metric': 'metric', 'condition': 'condition', 'additional_info': 'additional_info', @@ -52,7 +58,7 @@ class AlarmHistoryItemV2: 'data_points': 'data_points' } - def __init__(self, record_id=None, alarm_id=None, name=None, status=None, level=None, type=None, action_enabled=None, begin_time=None, end_time=None, metric=None, condition=None, additional_info=None, alarm_actions=None, ok_actions=None, data_points=None): + def __init__(self, record_id=None, alarm_id=None, name=None, status=None, level=None, type=None, action_enabled=None, begin_time=None, end_time=None, first_alarm_time=None, last_alarm_time=None, alarm_recovery_time=None, metric=None, condition=None, additional_info=None, alarm_actions=None, ok_actions=None, data_points=None): """AlarmHistoryItemV2 The model defined in huaweicloud sdk @@ -75,6 +81,12 @@ class AlarmHistoryItemV2: :type begin_time: datetime :param end_time: 结束时间,UTC时间 :type end_time: datetime + :param first_alarm_time: 第一次告警时间戳,UTC时间 + :type first_alarm_time: datetime + :param last_alarm_time: 最后一次告警时间,UTC时间 + :type last_alarm_time: datetime + :param alarm_recovery_time: 告警恢复时间,UTC时间 + :type alarm_recovery_time: datetime :param metric: :type metric: :class:`huaweicloudsdkces.v2.Metric` :param condition: @@ -100,6 +112,9 @@ class AlarmHistoryItemV2: self._action_enabled = None self._begin_time = None self._end_time = None + self._first_alarm_time = None + self._last_alarm_time = None + self._alarm_recovery_time = None self._metric = None self._condition = None self._additional_info = None @@ -126,6 +141,12 @@ class AlarmHistoryItemV2: self.begin_time = begin_time if end_time is not None: self.end_time = end_time + if first_alarm_time is not None: + self.first_alarm_time = first_alarm_time + if last_alarm_time is not None: + self.last_alarm_time = last_alarm_time + if alarm_recovery_time is not None: + self.alarm_recovery_time = alarm_recovery_time if metric is not None: self.metric = metric if condition is not None: @@ -333,6 +354,72 @@ class AlarmHistoryItemV2: """ self._end_time = end_time + @property + def first_alarm_time(self): + """Gets the first_alarm_time of this AlarmHistoryItemV2. + + 第一次告警时间戳,UTC时间 + + :return: The first_alarm_time of this AlarmHistoryItemV2. + :rtype: datetime + """ + return self._first_alarm_time + + @first_alarm_time.setter + def first_alarm_time(self, first_alarm_time): + """Sets the first_alarm_time of this AlarmHistoryItemV2. + + 第一次告警时间戳,UTC时间 + + :param first_alarm_time: The first_alarm_time of this AlarmHistoryItemV2. + :type first_alarm_time: datetime + """ + self._first_alarm_time = first_alarm_time + + @property + def last_alarm_time(self): + """Gets the last_alarm_time of this AlarmHistoryItemV2. + + 最后一次告警时间,UTC时间 + + :return: The last_alarm_time of this AlarmHistoryItemV2. + :rtype: datetime + """ + return self._last_alarm_time + + @last_alarm_time.setter + def last_alarm_time(self, last_alarm_time): + """Sets the last_alarm_time of this AlarmHistoryItemV2. + + 最后一次告警时间,UTC时间 + + :param last_alarm_time: The last_alarm_time of this AlarmHistoryItemV2. + :type last_alarm_time: datetime + """ + self._last_alarm_time = last_alarm_time + + @property + def alarm_recovery_time(self): + """Gets the alarm_recovery_time of this AlarmHistoryItemV2. + + 告警恢复时间,UTC时间 + + :return: The alarm_recovery_time of this AlarmHistoryItemV2. + :rtype: datetime + """ + return self._alarm_recovery_time + + @alarm_recovery_time.setter + def alarm_recovery_time(self, alarm_recovery_time): + """Sets the alarm_recovery_time of this AlarmHistoryItemV2. + + 告警恢复时间,UTC时间 + + :param alarm_recovery_time: The alarm_recovery_time of this AlarmHistoryItemV2. + :type alarm_recovery_time: datetime + """ + self._alarm_recovery_time = alarm_recovery_time + @property def metric(self): """Gets the metric of this AlarmHistoryItemV2. diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_histories_request.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_histories_request.py index 272355f95..51b2d0485 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_histories_request.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_histories_request.py @@ -26,7 +26,8 @@ class ListAlarmHistoriesRequest: '_from': 'str', 'to': 'str', 'offset': 'int', - 'limit': 'int' + 'limit': 'int', + 'order_by': 'str' } attribute_map = { @@ -39,10 +40,11 @@ class ListAlarmHistoriesRequest: '_from': 'from', 'to': 'to', 'offset': 'offset', - 'limit': 'limit' + 'limit': 'limit', + 'order_by': 'order_by' } - def __init__(self, alarm_id=None, name=None, status=None, level=None, namespace=None, resource_id=None, _from=None, to=None, offset=None, limit=None): + def __init__(self, alarm_id=None, name=None, status=None, level=None, namespace=None, resource_id=None, _from=None, to=None, offset=None, limit=None, order_by=None): """ListAlarmHistoriesRequest The model defined in huaweicloud sdk @@ -67,6 +69,8 @@ class ListAlarmHistoriesRequest: :type offset: int :param limit: 分页大小 :type limit: int + :param order_by: 按关键字排序, 默认为update_time, {first_alarm_time: 告警产生时间, update_time: 更新时间, alarm_level: 告警级别, record_id:表记录主键} + :type order_by: str """ @@ -81,6 +85,7 @@ class ListAlarmHistoriesRequest: self._to = None self._offset = None self._limit = None + self._order_by = None self.discriminator = None if alarm_id is not None: @@ -103,6 +108,8 @@ class ListAlarmHistoriesRequest: self.offset = offset if limit is not None: self.limit = limit + if order_by is not None: + self.order_by = order_by @property def alarm_id(self): @@ -324,6 +331,28 @@ class ListAlarmHistoriesRequest: """ self._limit = limit + @property + def order_by(self): + """Gets the order_by of this ListAlarmHistoriesRequest. + + 按关键字排序, 默认为update_time, {first_alarm_time: 告警产生时间, update_time: 更新时间, alarm_level: 告警级别, record_id:表记录主键} + + :return: The order_by of this ListAlarmHistoriesRequest. + :rtype: str + """ + return self._order_by + + @order_by.setter + def order_by(self, order_by): + """Sets the order_by of this ListAlarmHistoriesRequest. + + 按关键字排序, 默认为update_time, {first_alarm_time: 告警产生时间, update_time: 更新时间, alarm_level: 告警级别, record_id:表记录主键} + + :param order_by: The order_by of this ListAlarmHistoriesRequest. + :type order_by: str + """ + self._order_by = order_by + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 2b85528d0..ee82325b9 100644 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index 690c00900..3a4a9f771 100644 --- a/huaweicloud-sdk-cfw/setup.py +++ b/huaweicloud-sdk-cfw/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcfw" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index 3859a95f0..79c4b9084 100644 --- a/huaweicloud-sdk-cgs/setup.py +++ b/huaweicloud-sdk-cgs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcgs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index 85a561144..5d02f6575 100644 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index 712928d86..a1ec239ee 100644 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpond/requirements.txt b/huaweicloud-sdk-cloudpond/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cloudpond/requirements.txt +++ b/huaweicloud-sdk-cloudpond/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpond/setup.py b/huaweicloud-sdk-cloudpond/setup.py index f261890ea..3b5f45f53 100644 --- a/huaweicloud-sdk-cloudpond/setup.py +++ b/huaweicloud-sdk-cloudpond/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpond" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index 3aa437a22..0fc863325 100644 --- a/huaweicloud-sdk-cloudrtc/setup.py +++ b/huaweicloud-sdk-cloudrtc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudrtc" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index 60d201d28..55cab743c 100644 --- a/huaweicloud-sdk-cloudtable/setup.py +++ b/huaweicloud-sdk-cloudtable/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtable" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index 09b8c01c6..7144bace2 100644 --- a/huaweicloud-sdk-cloudtest/setup.py +++ b/huaweicloud-sdk-cloudtest/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtest" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-coc/requirements.txt b/huaweicloud-sdk-coc/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-coc/requirements.txt +++ b/huaweicloud-sdk-coc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-coc/setup.py b/huaweicloud-sdk-coc/setup.py index 6219800d2..f9179fb6e 100644 --- a/huaweicloud-sdk-coc/setup.py +++ b/huaweicloud-sdk-coc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcoc" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsartifact/requirements.txt b/huaweicloud-sdk-codeartsartifact/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-codeartsartifact/requirements.txt +++ b/huaweicloud-sdk-codeartsartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsartifact/setup.py b/huaweicloud-sdk-codeartsartifact/setup.py index eb3f36133..843a84693 100644 --- a/huaweicloud-sdk-codeartsartifact/setup.py +++ b/huaweicloud-sdk-codeartsartifact/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsartifact" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsbuild/requirements.txt b/huaweicloud-sdk-codeartsbuild/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-codeartsbuild/requirements.txt +++ b/huaweicloud-sdk-codeartsbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsbuild/setup.py b/huaweicloud-sdk-codeartsbuild/setup.py index 2b9fcb575..93b6b6a96 100644 --- a/huaweicloud-sdk-codeartsbuild/setup.py +++ b/huaweicloud-sdk-codeartsbuild/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsbuild" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartscheck/requirements.txt b/huaweicloud-sdk-codeartscheck/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-codeartscheck/requirements.txt +++ b/huaweicloud-sdk-codeartscheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartscheck/setup.py b/huaweicloud-sdk-codeartscheck/setup.py index 61026a878..6775bef1c 100644 --- a/huaweicloud-sdk-codeartscheck/setup.py +++ b/huaweicloud-sdk-codeartscheck/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartscheck" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsdeploy/requirements.txt b/huaweicloud-sdk-codeartsdeploy/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-codeartsdeploy/requirements.txt +++ b/huaweicloud-sdk-codeartsdeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsdeploy/setup.py b/huaweicloud-sdk-codeartsdeploy/setup.py index fa7ea135c..5f8f9bb9d 100644 --- a/huaweicloud-sdk-codeartsdeploy/setup.py +++ b/huaweicloud-sdk-codeartsdeploy/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsdeploy" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsgovernance/requirements.txt b/huaweicloud-sdk-codeartsgovernance/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-codeartsgovernance/requirements.txt +++ b/huaweicloud-sdk-codeartsgovernance/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsgovernance/setup.py b/huaweicloud-sdk-codeartsgovernance/setup.py index 43f638939..5484c546d 100644 --- a/huaweicloud-sdk-codeartsgovernance/setup.py +++ b/huaweicloud-sdk-codeartsgovernance/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsgovernance" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsinspector/requirements.txt b/huaweicloud-sdk-codeartsinspector/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-codeartsinspector/requirements.txt +++ b/huaweicloud-sdk-codeartsinspector/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsinspector/setup.py b/huaweicloud-sdk-codeartsinspector/setup.py index 64b344fb6..edba04a8f 100644 --- a/huaweicloud-sdk-codeartsinspector/setup.py +++ b/huaweicloud-sdk-codeartsinspector/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsinspector" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartspipeline/requirements.txt b/huaweicloud-sdk-codeartspipeline/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-codeartspipeline/requirements.txt +++ b/huaweicloud-sdk-codeartspipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartspipeline/setup.py b/huaweicloud-sdk-codeartspipeline/setup.py index e2afa43b4..5ffb4756d 100644 --- a/huaweicloud-sdk-codeartspipeline/setup.py +++ b/huaweicloud-sdk-codeartspipeline/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartspipeline" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index bf687b2ef..0407b4ad9 100644 --- a/huaweicloud-sdk-codecraft/setup.py +++ b/huaweicloud-sdk-codecraft/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecraft" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index c6914b449..640df4de4 100644 --- a/huaweicloud-sdk-codehub/setup.py +++ b/huaweicloud-sdk-codehub/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodehub" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-config/requirements.txt b/huaweicloud-sdk-config/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-config/requirements.txt +++ b/huaweicloud-sdk-config/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-config/setup.py b/huaweicloud-sdk-config/setup.py index 1a4f4562f..38f798402 100644 --- a/huaweicloud-sdk-config/setup.py +++ b/huaweicloud-sdk-config/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkconfig" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index 2f2b4d71b..94be5e3f6 100644 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cph/requirements.txt b/huaweicloud-sdk-cph/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index 6072bd2bf..220ad0e55 100644 --- a/huaweicloud-sdk-cph/setup.py +++ b/huaweicloud-sdk-cph/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcph" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index 1b0ebf445..a4ccc31aa 100644 --- a/huaweicloud-sdk-cpts/setup.py +++ b/huaweicloud-sdk-cpts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcpts" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index bdb7a1393..2d9e5e1ee 100644 --- a/huaweicloud-sdk-cse/setup.py +++ b/huaweicloud-sdk-cse/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcse" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index ef0ec43da..41cce74f6 100644 --- a/huaweicloud-sdk-csms/setup.py +++ b/huaweicloud-sdk-csms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcsms" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py index 0bfea2b75..443e07bec 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py @@ -58,6 +58,8 @@ class CssRegion: "https://css.af-north-1.myhuaweicloud.com") RU_MOSCOW_1 = Region("ru-moscow-1", "https://css.ru-moscow-1.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://css.me-east-1.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, @@ -86,6 +88,7 @@ class CssRegion: "eu-west-101": EU_WEST_101, "af-north-1": AF_NORTH_1, "ru-moscow-1": RU_MOSCOW_1, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py index 0bfea2b75..443e07bec 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py @@ -58,6 +58,8 @@ class CssRegion: "https://css.af-north-1.myhuaweicloud.com") RU_MOSCOW_1 = Region("ru-moscow-1", "https://css.ru-moscow-1.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://css.me-east-1.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, @@ -86,6 +88,7 @@ class CssRegion: "eu-west-101": EU_WEST_101, "af-north-1": AF_NORTH_1, "ru-moscow-1": RU_MOSCOW_1, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index 0843c5efa..a9ab08a92 100644 --- a/huaweicloud-sdk-css/setup.py +++ b/huaweicloud-sdk-css/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcss" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index c8756780f..3c1f3be66 100644 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index babe56c0e..ac7a99d37 100644 --- a/huaweicloud-sdk-das/setup.py +++ b/huaweicloud-sdk-das/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdas" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsfabric/requirements.txt b/huaweicloud-sdk-dataartsfabric/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dataartsfabric/requirements.txt +++ b/huaweicloud-sdk-dataartsfabric/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsfabric/setup.py b/huaweicloud-sdk-dataartsfabric/setup.py index e6c7965b2..56eac54c4 100644 --- a/huaweicloud-sdk-dataartsfabric/setup.py +++ b/huaweicloud-sdk-dataartsfabric/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdataartsfabric" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsfabricep/requirements.txt b/huaweicloud-sdk-dataartsfabricep/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dataartsfabricep/requirements.txt +++ b/huaweicloud-sdk-dataartsfabricep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsfabricep/setup.py b/huaweicloud-sdk-dataartsfabricep/setup.py index a5c46ce32..7440ab06d 100644 --- a/huaweicloud-sdk-dataartsfabricep/setup.py +++ b/huaweicloud-sdk-dataartsfabricep/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdataartsfabricep" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py index 8d03e026e..54979147e 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py @@ -115,8 +115,11 @@ from huaweicloudsdkdataartsstudio.v1.model.batch_operation_vo import BatchOperat from huaweicloudsdkdataartsstudio.v1.model.batch_publish_request import BatchPublishRequest from huaweicloudsdkdataartsstudio.v1.model.batch_publish_response import BatchPublishResponse from huaweicloudsdkdataartsstudio.v1.model.batch_publish_result_data import BatchPublishResultData +from huaweicloudsdkdataartsstudio.v1.model.batch_recommendation_request import BatchRecommendationRequest from huaweicloudsdkdataartsstudio.v1.model.batch_sync_metadata_request import BatchSyncMetadataRequest from huaweicloudsdkdataartsstudio.v1.model.batch_sync_metadata_response import BatchSyncMetadataResponse +from huaweicloudsdkdataartsstudio.v1.model.batch_tag_request import BatchTagRequest +from huaweicloudsdkdataartsstudio.v1.model.batch_tag_response import BatchTagResponse from huaweicloudsdkdataartsstudio.v1.model.batch_update_security_dlf_data_ware_houses_request import BatchUpdateSecurityDlfDataWareHousesRequest from huaweicloudsdkdataartsstudio.v1.model.batch_update_security_dlf_data_ware_houses_response import BatchUpdateSecurityDlfDataWareHousesResponse from huaweicloudsdkdataartsstudio.v1.model.behavior_rest_body import BehaviorRestBody @@ -716,6 +719,7 @@ from huaweicloudsdkdataartsstudio.v1.model.query_task_request import QueryTaskRe from huaweicloudsdkdataartsstudio.v1.model.queue_src_assign_create_dto import QueueSrcAssignCreateDTO from huaweicloudsdkdataartsstudio.v1.model.queue_src_assign_entity import QueueSrcAssignEntity from huaweicloudsdkdataartsstudio.v1.model.queue_src_assign_update_dto import QueueSrcAssignUpdateDTO +from huaweicloudsdkdataartsstudio.v1.model.recommendation import Recommendation from huaweicloudsdkdataartsstudio.v1.model.record_for_apply_detail import RecordForApplyDetail from huaweicloudsdkdataartsstudio.v1.model.record_for_get_all_catalog import RecordForGetAllCatalog from huaweicloudsdkdataartsstudio.v1.model.record_for_get_auth_app import RecordForGetAuthApp diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py index 863ff69c1..e77f2f35e 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py @@ -1192,6 +1192,73 @@ class DataArtsStudioAsyncClient(Client): return http_info + def batch_tag_async(self, request): + """批量打标签(邀测) + + 批量给资产打标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchTag + :type request: :class:`huaweicloudsdkdataartsstudio.v1.BatchTagRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.BatchTagResponse` + """ + http_info = self._batch_tag_http_info(request) + return self._call_api(**http_info) + + def batch_tag_async_invoker(self, request): + http_info = self._batch_tag_http_info(request) + return AsyncInvoker(self, http_info) + + def _batch_tag_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/datamap/entities/guids/tags", + "request_type": request.__class__.__name__, + "response_type": "BatchTagResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def batch_update_security_dlf_data_ware_houses_async(self, request): """批量更新数据开发连接细粒度认证状态 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py index 89f086449..b24fc4cd8 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py @@ -1192,6 +1192,73 @@ class DataArtsStudioClient(Client): return http_info + def batch_tag(self, request): + """批量打标签(邀测) + + 批量给资产打标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchTag + :type request: :class:`huaweicloudsdkdataartsstudio.v1.BatchTagRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.BatchTagResponse` + """ + http_info = self._batch_tag_http_info(request) + return self._call_api(**http_info) + + def batch_tag_invoker(self, request): + http_info = self._batch_tag_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _batch_tag_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/datamap/entities/guids/tags", + "request_type": request.__class__.__name__, + "response_type": "BatchTagResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def batch_update_security_dlf_data_ware_houses(self, request): """批量更新数据开发连接细粒度认证状态 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py index 5b4b753de..86c95f37d 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py @@ -113,8 +113,11 @@ from huaweicloudsdkdataartsstudio.v1.model.batch_operation_vo import BatchOperat from huaweicloudsdkdataartsstudio.v1.model.batch_publish_request import BatchPublishRequest from huaweicloudsdkdataartsstudio.v1.model.batch_publish_response import BatchPublishResponse from huaweicloudsdkdataartsstudio.v1.model.batch_publish_result_data import BatchPublishResultData +from huaweicloudsdkdataartsstudio.v1.model.batch_recommendation_request import BatchRecommendationRequest from huaweicloudsdkdataartsstudio.v1.model.batch_sync_metadata_request import BatchSyncMetadataRequest from huaweicloudsdkdataartsstudio.v1.model.batch_sync_metadata_response import BatchSyncMetadataResponse +from huaweicloudsdkdataartsstudio.v1.model.batch_tag_request import BatchTagRequest +from huaweicloudsdkdataartsstudio.v1.model.batch_tag_response import BatchTagResponse from huaweicloudsdkdataartsstudio.v1.model.batch_update_security_dlf_data_ware_houses_request import BatchUpdateSecurityDlfDataWareHousesRequest from huaweicloudsdkdataartsstudio.v1.model.batch_update_security_dlf_data_ware_houses_response import BatchUpdateSecurityDlfDataWareHousesResponse from huaweicloudsdkdataartsstudio.v1.model.behavior_rest_body import BehaviorRestBody @@ -714,6 +717,7 @@ from huaweicloudsdkdataartsstudio.v1.model.query_task_request import QueryTaskRe from huaweicloudsdkdataartsstudio.v1.model.queue_src_assign_create_dto import QueueSrcAssignCreateDTO from huaweicloudsdkdataartsstudio.v1.model.queue_src_assign_entity import QueueSrcAssignEntity from huaweicloudsdkdataartsstudio.v1.model.queue_src_assign_update_dto import QueueSrcAssignUpdateDTO +from huaweicloudsdkdataartsstudio.v1.model.recommendation import Recommendation from huaweicloudsdkdataartsstudio.v1.model.record_for_apply_detail import RecordForApplyDetail from huaweicloudsdkdataartsstudio.v1.model.record_for_get_all_catalog import RecordForGetAllCatalog from huaweicloudsdkdataartsstudio.v1.model.record_for_get_auth_app import RecordForGetAuthApp diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/batch_recommendation_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/batch_recommendation_request.py new file mode 100644 index 000000000..220a3ce3a --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/batch_recommendation_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchRecommendationRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'recommendations': 'list[Recommendation]', + 'guids': 'list[str]', + 'add_type': 'str' + } + + attribute_map = { + 'recommendations': 'recommendations', + 'guids': 'guids', + 'add_type': 'add_type' + } + + def __init__(self, recommendations=None, guids=None, add_type=None): + """BatchRecommendationRequest + + The model defined in huaweicloud sdk + + :param recommendations: 标签信息。 + :type recommendations: list[:class:`huaweicloudsdkdataartsstudio.v1.Recommendation`] + :param guids: 资产guid。 + :type guids: list[str] + :param add_type: 添加资产类型。cover:覆盖 追加:append。默认追加。 + :type add_type: str + """ + + + + self._recommendations = None + self._guids = None + self._add_type = None + self.discriminator = None + + if recommendations is not None: + self.recommendations = recommendations + if guids is not None: + self.guids = guids + if add_type is not None: + self.add_type = add_type + + @property + def recommendations(self): + """Gets the recommendations of this BatchRecommendationRequest. + + 标签信息。 + + :return: The recommendations of this BatchRecommendationRequest. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.Recommendation`] + """ + return self._recommendations + + @recommendations.setter + def recommendations(self, recommendations): + """Sets the recommendations of this BatchRecommendationRequest. + + 标签信息。 + + :param recommendations: The recommendations of this BatchRecommendationRequest. + :type recommendations: list[:class:`huaweicloudsdkdataartsstudio.v1.Recommendation`] + """ + self._recommendations = recommendations + + @property + def guids(self): + """Gets the guids of this BatchRecommendationRequest. + + 资产guid。 + + :return: The guids of this BatchRecommendationRequest. + :rtype: list[str] + """ + return self._guids + + @guids.setter + def guids(self, guids): + """Sets the guids of this BatchRecommendationRequest. + + 资产guid。 + + :param guids: The guids of this BatchRecommendationRequest. + :type guids: list[str] + """ + self._guids = guids + + @property + def add_type(self): + """Gets the add_type of this BatchRecommendationRequest. + + 添加资产类型。cover:覆盖 追加:append。默认追加。 + + :return: The add_type of this BatchRecommendationRequest. + :rtype: str + """ + return self._add_type + + @add_type.setter + def add_type(self, add_type): + """Sets the add_type of this BatchRecommendationRequest. + + 添加资产类型。cover:覆盖 追加:append。默认追加。 + + :param add_type: The add_type of this BatchRecommendationRequest. + :type add_type: str + """ + self._add_type = add_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchRecommendationRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/batch_tag_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/batch_tag_request.py new file mode 100644 index 000000000..d9586104f --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/batch_tag_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchTagRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance': 'str', + 'body': 'BatchRecommendationRequest' + } + + attribute_map = { + 'instance': 'instance', + 'body': 'body' + } + + def __init__(self, instance=None, body=None): + """BatchTagRequest + + The model defined in huaweicloud sdk + + :param instance: 实例ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。 + :type instance: str + :param body: Body of the BatchTagRequest + :type body: :class:`huaweicloudsdkdataartsstudio.v1.BatchRecommendationRequest` + """ + + + + self._instance = None + self._body = None + self.discriminator = None + + self.instance = instance + if body is not None: + self.body = body + + @property + def instance(self): + """Gets the instance of this BatchTagRequest. + + 实例ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。 + + :return: The instance of this BatchTagRequest. + :rtype: str + """ + return self._instance + + @instance.setter + def instance(self, instance): + """Sets the instance of this BatchTagRequest. + + 实例ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。 + + :param instance: The instance of this BatchTagRequest. + :type instance: str + """ + self._instance = instance + + @property + def body(self): + """Gets the body of this BatchTagRequest. + + :return: The body of this BatchTagRequest. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.BatchRecommendationRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchTagRequest. + + :param body: The body of this BatchTagRequest. + :type body: :class:`huaweicloudsdkdataartsstudio.v1.BatchRecommendationRequest` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchTagRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/batch_tag_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/batch_tag_response.py new file mode 100644 index 000000000..f60cda80b --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/batch_tag_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchTagResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """BatchTagResponse + + The model defined in huaweicloud sdk + + """ + + super(BatchTagResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchTagResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/recommendation.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/recommendation.py new file mode 100644 index 000000000..4e3cb344a --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/recommendation.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Recommendation: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): + """Recommendation + + The model defined in huaweicloud sdk + + :param name: 标签名称。 + :type name: str + """ + + + + self._name = None + self.discriminator = None + + if name is not None: + self.name = name + + @property + def name(self): + """Gets the name of this Recommendation. + + 标签名称。 + + :return: The name of this Recommendation. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Recommendation. + + 标签名称。 + + :param name: The name of this Recommendation. + :type name: str + """ + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Recommendation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/region/dataartsstudio_region.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/region/dataartsstudio_region.py index 41b5c4a0b..ee2851700 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/region/dataartsstudio_region.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/region/dataartsstudio_region.py @@ -50,6 +50,8 @@ class DataArtsStudioRegion: "https://dayu.eu-west-101.myhuaweicloud.com") AE_AD_1 = Region("ae-ad-1", "https://dayu.ae-ad-1.myhuaweicloud.com") + CN_NORTH_11 = Region("cn-north-11", + "https://dayu.cn-north-11.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, @@ -74,6 +76,7 @@ class DataArtsStudioRegion: "me-east-1": ME_EAST_1, "eu-west-101": EU_WEST_101, "ae-ad-1": AE_AD_1, + "cn-north-11": CN_NORTH_11, } @classmethod diff --git a/huaweicloud-sdk-dataartsstudio/requirements.txt b/huaweicloud-sdk-dataartsstudio/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dataartsstudio/requirements.txt +++ b/huaweicloud-sdk-dataartsstudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsstudio/setup.py b/huaweicloud-sdk-dataartsstudio/setup.py index 5b45782f5..b80baf9de 100644 --- a/huaweicloud-sdk-dataartsstudio/setup.py +++ b/huaweicloud-sdk-dataartsstudio/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdataartsstudio" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index 4f6a07ec8..8ca1b2436 100644 --- a/huaweicloud-sdk-dbss/setup.py +++ b/huaweicloud-sdk-dbss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdbss" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index 71cba122f..80d4537a4 100644 --- a/huaweicloud-sdk-dc/setup.py +++ b/huaweicloud-sdk-dc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdc" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index 024b1fe41..446d9766e 100644 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index 11ee0675d..978628d02 100644 --- a/huaweicloud-sdk-ddm/setup.py +++ b/huaweicloud-sdk-ddm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkddm" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dds/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 64f8bd630..0a1dc7764 100644 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index 314d3a8ed..9f5b95346 100644 --- a/huaweicloud-sdk-deh/setup.py +++ b/huaweicloud-sdk-deh/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdeh" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index 979f321f7..fa4e7951d 100644 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py index ef2103614..2a46c2d71 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py @@ -22,6 +22,8 @@ class DgcRegion: "https://dayu-dlf.ap-southeast-3.myhuaweicloud.com") RU_NORTHWEST_2 = Region("ru-northwest-2", "https://dayu-dlf.ru-northwest-2.myhuaweicloud.com") + CN_NORTH_11 = Region("cn-north-11", + "https://dayu-dlf.cn-north-11.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, @@ -32,6 +34,7 @@ class DgcRegion: "ap-southeast-3": AP_SOUTHEAST_3, "ap-southeast-1": AP_SOUTHEAST_1, "ru-northwest-2": RU_NORTHWEST_2, + "cn-north-11": CN_NORTH_11, } @classmethod diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index 7d94015bc..110687f28 100644 --- a/huaweicloud-sdk-dgc/setup.py +++ b/huaweicloud-sdk-dgc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdgc" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dis/requirements.txt b/huaweicloud-sdk-dis/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dis/requirements.txt +++ b/huaweicloud-sdk-dis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dis/setup.py b/huaweicloud-sdk-dis/setup.py index aaa228859..0f57c560f 100644 --- a/huaweicloud-sdk-dis/setup.py +++ b/huaweicloud-sdk-dis/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdis" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dlf/huaweicloudsdkdlf/v1/region/dlf_region.py b/huaweicloud-sdk-dlf/huaweicloudsdkdlf/v1/region/dlf_region.py index b6780c46f..ac0cfb168 100644 --- a/huaweicloud-sdk-dlf/huaweicloudsdkdlf/v1/region/dlf_region.py +++ b/huaweicloud-sdk-dlf/huaweicloudsdkdlf/v1/region/dlf_region.py @@ -22,6 +22,8 @@ class DlfRegion: "https://dayu-dlf.ap-southeast-3.myhuaweicloud.com") RU_NORTHWEST_2 = Region("ru-northwest-2", "https://dayu-dlf.ru-northwest-2.myhuaweicloud.com") + CN_NORTH_11 = Region("cn-north-11", + "https://dayu-dlf.cn-north-11.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, @@ -32,6 +34,7 @@ class DlfRegion: "ap-southeast-3": AP_SOUTHEAST_3, "ap-southeast-1": AP_SOUTHEAST_1, "ru-northwest-2": RU_NORTHWEST_2, + "cn-north-11": CN_NORTH_11, } @classmethod diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index 1eeb65b09..23ad5a776 100644 --- a/huaweicloud-sdk-dlf/setup.py +++ b/huaweicloud-sdk-dlf/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdlf" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index 7a8fda9a7..3746592e6 100644 --- a/huaweicloud-sdk-dli/setup.py +++ b/huaweicloud-sdk-dli/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdli" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index 9a27c2d40..3420c1247 100644 --- a/huaweicloud-sdk-dns/setup.py +++ b/huaweicloud-sdk-dns/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdns" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dris/requirements.txt +++ b/huaweicloud-sdk-dris/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py index c0c20e350..46ec39b43 100644 --- a/huaweicloud-sdk-dris/setup.py +++ b/huaweicloud-sdk-dris/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdris" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index 88976141d..9c88e566c 100644 --- a/huaweicloud-sdk-drs/setup.py +++ b/huaweicloud-sdk-drs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdrs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index cc976e1ee..814aa51b5 100644 --- a/huaweicloud-sdk-dsc/setup.py +++ b/huaweicloud-sdk-dsc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdsc" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index e8206ad36..545ca7476 100644 --- a/huaweicloud-sdk-dwr/setup.py +++ b/huaweicloud-sdk-dwr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdwr" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index fea7d6cca..6b0117650 100644 --- a/huaweicloud-sdk-dws/setup.py +++ b/huaweicloud-sdk-dws/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdws" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ec/requirements.txt b/huaweicloud-sdk-ec/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ec/requirements.txt +++ b/huaweicloud-sdk-ec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ec/setup.py b/huaweicloud-sdk-ec/setup.py index 6201830e8..7080c8bab 100644 --- a/huaweicloud-sdk-ec/setup.py +++ b/huaweicloud-sdk-ec/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkec" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index 8676e95cc..1372fb16e 100644 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/create_http_geo_ip_rule_request_body.py b/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/create_http_geo_ip_rule_request_body.py index a1de56625..336d08fac 100644 --- a/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/create_http_geo_ip_rule_request_body.py +++ b/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/create_http_geo_ip_rule_request_body.py @@ -39,7 +39,7 @@ class CreateHttpGeoIpRuleRequestBody: :type name: str :param description: 规则描述,最长512字符 :type description: str - :param geo_ip: 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古) + :param geo_ip: 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (北京:CN_BJ,上海:CN_SH,天津:CN_TJ,重庆:CN_CQ,广东:CN_GD,浙江:CN_ZJ,江苏:CN_JS,福建:CN_FJ,吉林:CN_JL,辽宁:CN_LN,台湾:CN_TW,贵州:CN_GZ,安徽:CN_AH,黑龙江:CN_HL,河南:CN_HA,四川:CN_SC,河北:CN_HE,云南:CN_YN,湖北:CN_HB,海南:CN_HI,青海:CN_QH,湖南:CN_HN,江西:CN_JX,山西:CN_SX,陕西:CN_SN,甘肃:CN_GS,山东:CN_SD,澳门:CN_MO,香港:CN_HK,宁夏:CN_NX,广西:CN_GX,新疆:CN_XJ,西藏:CN_XZ,内蒙古:CN_NM,印度:IN,美国:US,印度尼西亚:ID,巴基斯坦:PK,巴西:BR,尼日利亚:NG,孟加拉国:BD,俄罗斯联邦:RU,日本:JP,墨西哥:MX,埃塞俄比亚:ET,菲律宾:PH,埃及:EG,越南:VN,德国:DE,土耳其:TR,泰国:TH,法国:FR,英国:GB,意大利:IT,南非:ZA,缅甸:MM,肯尼亚:KE,坦桑尼亚:TZ,哥伦比亚:CO,西班牙:ES,乌克兰:UA,伊拉克:IQ,波兰:PL,沙特阿拉伯:SA,秘鲁:PE,乌干达:UG,马来西亚:MY,苏丹:SD,罗马尼亚:RO,阿富汗:AF,加拿大:CA,摩洛哥:MA,智利:CL,刚果(金):CD,伊朗:IR,韩国:KR,安哥拉:AO,加纳:GH,莫桑比克:MZ,阿根廷:AR,阿尔及利亚:DZ,尼泊尔:NP,马达加斯加:MG,朝鲜:KP,喀麦隆:CM,科特迪瓦:CI,澳大利亚:AU,荷兰:NL,尼日尔:NE,斯里兰卡:LK,布基纳法索:BF,乌兹别克斯坦:UZ,马里:ML,委内瑞拉:VE,哈萨克斯坦:KZ,马拉维:MW,赞比亚:ZM,也门:YE,比利时:BE,危地马拉:GT,叙利亚:SY,厄瓜多尔:EC,塞内加尔:SN,乍得:TD,索马里:SO,津巴布韦:ZW,几内亚:GN,卢旺达:RW,突尼斯:TN,贝宁:BJ,捷克:CZ,玻利维亚:BO,古巴:CU,布隆迪:BI,海地:HT,柬埔寨:KH,希腊:GR,多米尼加:DO,瑞典:SE,葡萄牙:PT,约旦:JO,南苏丹:SS,阿塞拜疆:AZ,匈牙利:HU,阿联酋:AE,洪都拉斯:HN,白俄罗斯:BY,塔吉克斯坦:TJ,以色列:IL,奥地利:AT,巴布亚新几内亚:PG,瑞士:CH,多哥:TG,塞拉利昂:SL,老挝:LA,保加利亚:BG,塞尔维亚:RS,巴拉圭:PY,黎巴嫩:LB,利比亚:LY,尼加拉瓜:NI,萨尔瓦多:SV,吉尔吉斯斯坦:KG,土库曼斯坦:TM,丹麦:DK,新加坡:SG,芬兰:FI,斯洛伐克:SK,挪威:NO,刚果(布):CG,哥斯达黎加:CR,新西兰:NZ,爱尔兰:IE,阿曼:OM,利比里亚:LR,中非:CF,巴勒斯坦:PS,毛利塔尼亚:MR,巴拿马:PA,科威特:KW,克罗地亚:HR,格鲁吉亚:GE,摩尔多瓦:MD,乌拉圭:UY,波黑:BA,波多黎各:PR,蒙古:MN,亚美尼亚:AM,牙买加:JM,阿尔巴尼亚:AL,立陶宛:LT,卡塔尔:QA,纳米比亚:NA,冈比亚:GM,博茨瓦纳:BW,加蓬:GA,莱索托:LS,前南马其顿:MK,斯洛文尼亚:SI,拉脱维亚:LV,几内亚比绍:GW,科索沃:XK,巴林:BH,特立尼达和多巴哥:TT,爱沙尼亚:EE,赤道几内亚:GQ,东帝汶:TL,毛里求斯:MU,塞浦路斯:CY,斯威士兰:SZ,吉布提:DJ,斐济:FJ,留尼汪:RE,科摩罗:KM,圭亚那:GY,不丹:BT,所罗门群岛:SB,黑山:ME,卢森堡:LU,苏里南:SR,佛得角:CV,马尔代夫:MV,西撒哈拉:EH,马耳他:MT,文莱:BN,瓜德罗普:GP,巴哈马:BS,伯利兹:BZ,马提尼克:MQ,冰岛:IS,法属圭亚那:GF,瓦努阿图:VU,巴巴多斯:BB,新喀里多尼亚:NC,法属波利尼西亚:PF,马约特:YT,荷属安的列斯:AN,圣多美和普林西比:ST,萨摩亚:WS,圣卢西亚:LC,关岛:GU,库拉索:CW,基里巴斯:KI,密克罗尼西亚联邦:FM,格林纳达:GD,圣文森特和格林纳丁斯:VC,美属维尔京群岛:VI,泽西岛:JE,阿鲁巴:AW,汤加:TO,塞舌尔:SC,安提瓜和巴布达:AG,英国属地曼岛:IM,安道尔:AD,多米尼克:DM,开曼群岛:KY,百慕大:BM,格恩西岛:GG,马绍尔群岛:MH,北马里亚纳:MP,格陵兰:GL,美属萨摩亚:AS,圣基茨和尼维斯:KN,法罗群岛:FO,荷属圣马丁:SX,摩纳哥:MC,列支敦士登:LI,特克斯和凯科斯群岛:TC,法属圣马丁:MF,圣马力诺:SM,直布罗陀:GI,英属维尔京群岛:VG,奥兰群岛:AX,博奈尔:BQ,帕劳:PW,库克群岛:CK,安圭拉:AI,瑙鲁:NR,瓦利斯和富图纳:WF,图瓦卢:TV,圣巴泰勒米:BL,圣皮埃尔和密克隆:PM,蒙特塞拉特:MS,圣赫勒拿:SH,福克兰群岛(马尔维纳斯):FK,诺福克岛:NF,纽埃:NU,托克劳:TK,圣诞岛:CX,梵蒂冈:VA,科科斯(基林)群岛:CC,美国本土外小岛屿:UM,皮特凯恩:PN,南乔治亚岛和南桑德韦奇岛:GS,南极洲:AQ,布维岛:BV,厄立特里亚:ER,赫德岛和麦克唐纳岛:HM,英属印度洋领地:IO,法属南部领地:TF,斯瓦尔巴岛和扬马延岛:SJ) :type geo_ip: str :param white: 防护动作: - 0 拦截 - 1 放行 - 2 仅记录 :type white: int @@ -107,7 +107,7 @@ class CreateHttpGeoIpRuleRequestBody: def geo_ip(self): """Gets the geo_ip of this CreateHttpGeoIpRuleRequestBody. - 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古) + 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (北京:CN_BJ,上海:CN_SH,天津:CN_TJ,重庆:CN_CQ,广东:CN_GD,浙江:CN_ZJ,江苏:CN_JS,福建:CN_FJ,吉林:CN_JL,辽宁:CN_LN,台湾:CN_TW,贵州:CN_GZ,安徽:CN_AH,黑龙江:CN_HL,河南:CN_HA,四川:CN_SC,河北:CN_HE,云南:CN_YN,湖北:CN_HB,海南:CN_HI,青海:CN_QH,湖南:CN_HN,江西:CN_JX,山西:CN_SX,陕西:CN_SN,甘肃:CN_GS,山东:CN_SD,澳门:CN_MO,香港:CN_HK,宁夏:CN_NX,广西:CN_GX,新疆:CN_XJ,西藏:CN_XZ,内蒙古:CN_NM,印度:IN,美国:US,印度尼西亚:ID,巴基斯坦:PK,巴西:BR,尼日利亚:NG,孟加拉国:BD,俄罗斯联邦:RU,日本:JP,墨西哥:MX,埃塞俄比亚:ET,菲律宾:PH,埃及:EG,越南:VN,德国:DE,土耳其:TR,泰国:TH,法国:FR,英国:GB,意大利:IT,南非:ZA,缅甸:MM,肯尼亚:KE,坦桑尼亚:TZ,哥伦比亚:CO,西班牙:ES,乌克兰:UA,伊拉克:IQ,波兰:PL,沙特阿拉伯:SA,秘鲁:PE,乌干达:UG,马来西亚:MY,苏丹:SD,罗马尼亚:RO,阿富汗:AF,加拿大:CA,摩洛哥:MA,智利:CL,刚果(金):CD,伊朗:IR,韩国:KR,安哥拉:AO,加纳:GH,莫桑比克:MZ,阿根廷:AR,阿尔及利亚:DZ,尼泊尔:NP,马达加斯加:MG,朝鲜:KP,喀麦隆:CM,科特迪瓦:CI,澳大利亚:AU,荷兰:NL,尼日尔:NE,斯里兰卡:LK,布基纳法索:BF,乌兹别克斯坦:UZ,马里:ML,委内瑞拉:VE,哈萨克斯坦:KZ,马拉维:MW,赞比亚:ZM,也门:YE,比利时:BE,危地马拉:GT,叙利亚:SY,厄瓜多尔:EC,塞内加尔:SN,乍得:TD,索马里:SO,津巴布韦:ZW,几内亚:GN,卢旺达:RW,突尼斯:TN,贝宁:BJ,捷克:CZ,玻利维亚:BO,古巴:CU,布隆迪:BI,海地:HT,柬埔寨:KH,希腊:GR,多米尼加:DO,瑞典:SE,葡萄牙:PT,约旦:JO,南苏丹:SS,阿塞拜疆:AZ,匈牙利:HU,阿联酋:AE,洪都拉斯:HN,白俄罗斯:BY,塔吉克斯坦:TJ,以色列:IL,奥地利:AT,巴布亚新几内亚:PG,瑞士:CH,多哥:TG,塞拉利昂:SL,老挝:LA,保加利亚:BG,塞尔维亚:RS,巴拉圭:PY,黎巴嫩:LB,利比亚:LY,尼加拉瓜:NI,萨尔瓦多:SV,吉尔吉斯斯坦:KG,土库曼斯坦:TM,丹麦:DK,新加坡:SG,芬兰:FI,斯洛伐克:SK,挪威:NO,刚果(布):CG,哥斯达黎加:CR,新西兰:NZ,爱尔兰:IE,阿曼:OM,利比里亚:LR,中非:CF,巴勒斯坦:PS,毛利塔尼亚:MR,巴拿马:PA,科威特:KW,克罗地亚:HR,格鲁吉亚:GE,摩尔多瓦:MD,乌拉圭:UY,波黑:BA,波多黎各:PR,蒙古:MN,亚美尼亚:AM,牙买加:JM,阿尔巴尼亚:AL,立陶宛:LT,卡塔尔:QA,纳米比亚:NA,冈比亚:GM,博茨瓦纳:BW,加蓬:GA,莱索托:LS,前南马其顿:MK,斯洛文尼亚:SI,拉脱维亚:LV,几内亚比绍:GW,科索沃:XK,巴林:BH,特立尼达和多巴哥:TT,爱沙尼亚:EE,赤道几内亚:GQ,东帝汶:TL,毛里求斯:MU,塞浦路斯:CY,斯威士兰:SZ,吉布提:DJ,斐济:FJ,留尼汪:RE,科摩罗:KM,圭亚那:GY,不丹:BT,所罗门群岛:SB,黑山:ME,卢森堡:LU,苏里南:SR,佛得角:CV,马尔代夫:MV,西撒哈拉:EH,马耳他:MT,文莱:BN,瓜德罗普:GP,巴哈马:BS,伯利兹:BZ,马提尼克:MQ,冰岛:IS,法属圭亚那:GF,瓦努阿图:VU,巴巴多斯:BB,新喀里多尼亚:NC,法属波利尼西亚:PF,马约特:YT,荷属安的列斯:AN,圣多美和普林西比:ST,萨摩亚:WS,圣卢西亚:LC,关岛:GU,库拉索:CW,基里巴斯:KI,密克罗尼西亚联邦:FM,格林纳达:GD,圣文森特和格林纳丁斯:VC,美属维尔京群岛:VI,泽西岛:JE,阿鲁巴:AW,汤加:TO,塞舌尔:SC,安提瓜和巴布达:AG,英国属地曼岛:IM,安道尔:AD,多米尼克:DM,开曼群岛:KY,百慕大:BM,格恩西岛:GG,马绍尔群岛:MH,北马里亚纳:MP,格陵兰:GL,美属萨摩亚:AS,圣基茨和尼维斯:KN,法罗群岛:FO,荷属圣马丁:SX,摩纳哥:MC,列支敦士登:LI,特克斯和凯科斯群岛:TC,法属圣马丁:MF,圣马力诺:SM,直布罗陀:GI,英属维尔京群岛:VG,奥兰群岛:AX,博奈尔:BQ,帕劳:PW,库克群岛:CK,安圭拉:AI,瑙鲁:NR,瓦利斯和富图纳:WF,图瓦卢:TV,圣巴泰勒米:BL,圣皮埃尔和密克隆:PM,蒙特塞拉特:MS,圣赫勒拿:SH,福克兰群岛(马尔维纳斯):FK,诺福克岛:NF,纽埃:NU,托克劳:TK,圣诞岛:CX,梵蒂冈:VA,科科斯(基林)群岛:CC,美国本土外小岛屿:UM,皮特凯恩:PN,南乔治亚岛和南桑德韦奇岛:GS,南极洲:AQ,布维岛:BV,厄立特里亚:ER,赫德岛和麦克唐纳岛:HM,英属印度洋领地:IO,法属南部领地:TF,斯瓦尔巴岛和扬马延岛:SJ) :return: The geo_ip of this CreateHttpGeoIpRuleRequestBody. :rtype: str @@ -118,7 +118,7 @@ class CreateHttpGeoIpRuleRequestBody: def geo_ip(self, geo_ip): """Sets the geo_ip of this CreateHttpGeoIpRuleRequestBody. - 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古) + 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (北京:CN_BJ,上海:CN_SH,天津:CN_TJ,重庆:CN_CQ,广东:CN_GD,浙江:CN_ZJ,江苏:CN_JS,福建:CN_FJ,吉林:CN_JL,辽宁:CN_LN,台湾:CN_TW,贵州:CN_GZ,安徽:CN_AH,黑龙江:CN_HL,河南:CN_HA,四川:CN_SC,河北:CN_HE,云南:CN_YN,湖北:CN_HB,海南:CN_HI,青海:CN_QH,湖南:CN_HN,江西:CN_JX,山西:CN_SX,陕西:CN_SN,甘肃:CN_GS,山东:CN_SD,澳门:CN_MO,香港:CN_HK,宁夏:CN_NX,广西:CN_GX,新疆:CN_XJ,西藏:CN_XZ,内蒙古:CN_NM,印度:IN,美国:US,印度尼西亚:ID,巴基斯坦:PK,巴西:BR,尼日利亚:NG,孟加拉国:BD,俄罗斯联邦:RU,日本:JP,墨西哥:MX,埃塞俄比亚:ET,菲律宾:PH,埃及:EG,越南:VN,德国:DE,土耳其:TR,泰国:TH,法国:FR,英国:GB,意大利:IT,南非:ZA,缅甸:MM,肯尼亚:KE,坦桑尼亚:TZ,哥伦比亚:CO,西班牙:ES,乌克兰:UA,伊拉克:IQ,波兰:PL,沙特阿拉伯:SA,秘鲁:PE,乌干达:UG,马来西亚:MY,苏丹:SD,罗马尼亚:RO,阿富汗:AF,加拿大:CA,摩洛哥:MA,智利:CL,刚果(金):CD,伊朗:IR,韩国:KR,安哥拉:AO,加纳:GH,莫桑比克:MZ,阿根廷:AR,阿尔及利亚:DZ,尼泊尔:NP,马达加斯加:MG,朝鲜:KP,喀麦隆:CM,科特迪瓦:CI,澳大利亚:AU,荷兰:NL,尼日尔:NE,斯里兰卡:LK,布基纳法索:BF,乌兹别克斯坦:UZ,马里:ML,委内瑞拉:VE,哈萨克斯坦:KZ,马拉维:MW,赞比亚:ZM,也门:YE,比利时:BE,危地马拉:GT,叙利亚:SY,厄瓜多尔:EC,塞内加尔:SN,乍得:TD,索马里:SO,津巴布韦:ZW,几内亚:GN,卢旺达:RW,突尼斯:TN,贝宁:BJ,捷克:CZ,玻利维亚:BO,古巴:CU,布隆迪:BI,海地:HT,柬埔寨:KH,希腊:GR,多米尼加:DO,瑞典:SE,葡萄牙:PT,约旦:JO,南苏丹:SS,阿塞拜疆:AZ,匈牙利:HU,阿联酋:AE,洪都拉斯:HN,白俄罗斯:BY,塔吉克斯坦:TJ,以色列:IL,奥地利:AT,巴布亚新几内亚:PG,瑞士:CH,多哥:TG,塞拉利昂:SL,老挝:LA,保加利亚:BG,塞尔维亚:RS,巴拉圭:PY,黎巴嫩:LB,利比亚:LY,尼加拉瓜:NI,萨尔瓦多:SV,吉尔吉斯斯坦:KG,土库曼斯坦:TM,丹麦:DK,新加坡:SG,芬兰:FI,斯洛伐克:SK,挪威:NO,刚果(布):CG,哥斯达黎加:CR,新西兰:NZ,爱尔兰:IE,阿曼:OM,利比里亚:LR,中非:CF,巴勒斯坦:PS,毛利塔尼亚:MR,巴拿马:PA,科威特:KW,克罗地亚:HR,格鲁吉亚:GE,摩尔多瓦:MD,乌拉圭:UY,波黑:BA,波多黎各:PR,蒙古:MN,亚美尼亚:AM,牙买加:JM,阿尔巴尼亚:AL,立陶宛:LT,卡塔尔:QA,纳米比亚:NA,冈比亚:GM,博茨瓦纳:BW,加蓬:GA,莱索托:LS,前南马其顿:MK,斯洛文尼亚:SI,拉脱维亚:LV,几内亚比绍:GW,科索沃:XK,巴林:BH,特立尼达和多巴哥:TT,爱沙尼亚:EE,赤道几内亚:GQ,东帝汶:TL,毛里求斯:MU,塞浦路斯:CY,斯威士兰:SZ,吉布提:DJ,斐济:FJ,留尼汪:RE,科摩罗:KM,圭亚那:GY,不丹:BT,所罗门群岛:SB,黑山:ME,卢森堡:LU,苏里南:SR,佛得角:CV,马尔代夫:MV,西撒哈拉:EH,马耳他:MT,文莱:BN,瓜德罗普:GP,巴哈马:BS,伯利兹:BZ,马提尼克:MQ,冰岛:IS,法属圭亚那:GF,瓦努阿图:VU,巴巴多斯:BB,新喀里多尼亚:NC,法属波利尼西亚:PF,马约特:YT,荷属安的列斯:AN,圣多美和普林西比:ST,萨摩亚:WS,圣卢西亚:LC,关岛:GU,库拉索:CW,基里巴斯:KI,密克罗尼西亚联邦:FM,格林纳达:GD,圣文森特和格林纳丁斯:VC,美属维尔京群岛:VI,泽西岛:JE,阿鲁巴:AW,汤加:TO,塞舌尔:SC,安提瓜和巴布达:AG,英国属地曼岛:IM,安道尔:AD,多米尼克:DM,开曼群岛:KY,百慕大:BM,格恩西岛:GG,马绍尔群岛:MH,北马里亚纳:MP,格陵兰:GL,美属萨摩亚:AS,圣基茨和尼维斯:KN,法罗群岛:FO,荷属圣马丁:SX,摩纳哥:MC,列支敦士登:LI,特克斯和凯科斯群岛:TC,法属圣马丁:MF,圣马力诺:SM,直布罗陀:GI,英属维尔京群岛:VG,奥兰群岛:AX,博奈尔:BQ,帕劳:PW,库克群岛:CK,安圭拉:AI,瑙鲁:NR,瓦利斯和富图纳:WF,图瓦卢:TV,圣巴泰勒米:BL,圣皮埃尔和密克隆:PM,蒙特塞拉特:MS,圣赫勒拿:SH,福克兰群岛(马尔维纳斯):FK,诺福克岛:NF,纽埃:NU,托克劳:TK,圣诞岛:CX,梵蒂冈:VA,科科斯(基林)群岛:CC,美国本土外小岛屿:UM,皮特凯恩:PN,南乔治亚岛和南桑德韦奇岛:GS,南极洲:AQ,布维岛:BV,厄立特里亚:ER,赫德岛和麦克唐纳岛:HM,英属印度洋领地:IO,法属南部领地:TF,斯瓦尔巴岛和扬马延岛:SJ) :param geo_ip: The geo_ip of this CreateHttpGeoIpRuleRequestBody. :type geo_ip: str diff --git a/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/show_http_attack_timeline_stats_request.py b/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/show_http_attack_timeline_stats_request.py index 253226845..fcf9a17b7 100644 --- a/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/show_http_attack_timeline_stats_request.py +++ b/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/show_http_attack_timeline_stats_request.py @@ -81,8 +81,7 @@ class ShowHttpAttackTimelineStatsRequest: self.group_by = group_by if group_by_value is not None: self.group_by_value = group_by_value - if interval is not None: - self.interval = interval + self.interval = interval self.start_time = start_time self.end_time = end_time diff --git a/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/update_http_geo_ip_rule_request_body.py b/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/update_http_geo_ip_rule_request_body.py index 40e1ac89c..64703242c 100644 --- a/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/update_http_geo_ip_rule_request_body.py +++ b/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v2/model/update_http_geo_ip_rule_request_body.py @@ -43,7 +43,7 @@ class UpdateHttpGeoIpRuleRequestBody: :type description: str :param status: 规则开关状态 :type status: int - :param geo_ip: 地理位置封禁区域,选择区域对应的字母代号: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古) + :param geo_ip: 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (北京:CN_BJ,上海:CN_SH,天津:CN_TJ,重庆:CN_CQ,广东:CN_GD,浙江:CN_ZJ,江苏:CN_JS,福建:CN_FJ,吉林:CN_JL,辽宁:CN_LN,台湾:CN_TW,贵州:CN_GZ,安徽:CN_AH,黑龙江:CN_HL,河南:CN_HA,四川:CN_SC,河北:CN_HE,云南:CN_YN,湖北:CN_HB,海南:CN_HI,青海:CN_QH,湖南:CN_HN,江西:CN_JX,山西:CN_SX,陕西:CN_SN,甘肃:CN_GS,山东:CN_SD,澳门:CN_MO,香港:CN_HK,宁夏:CN_NX,广西:CN_GX,新疆:CN_XJ,西藏:CN_XZ,内蒙古:CN_NM,印度:IN,美国:US,印度尼西亚:ID,巴基斯坦:PK,巴西:BR,尼日利亚:NG,孟加拉国:BD,俄罗斯联邦:RU,日本:JP,墨西哥:MX,埃塞俄比亚:ET,菲律宾:PH,埃及:EG,越南:VN,德国:DE,土耳其:TR,泰国:TH,法国:FR,英国:GB,意大利:IT,南非:ZA,缅甸:MM,肯尼亚:KE,坦桑尼亚:TZ,哥伦比亚:CO,西班牙:ES,乌克兰:UA,伊拉克:IQ,波兰:PL,沙特阿拉伯:SA,秘鲁:PE,乌干达:UG,马来西亚:MY,苏丹:SD,罗马尼亚:RO,阿富汗:AF,加拿大:CA,摩洛哥:MA,智利:CL,刚果(金):CD,伊朗:IR,韩国:KR,安哥拉:AO,加纳:GH,莫桑比克:MZ,阿根廷:AR,阿尔及利亚:DZ,尼泊尔:NP,马达加斯加:MG,朝鲜:KP,喀麦隆:CM,科特迪瓦:CI,澳大利亚:AU,荷兰:NL,尼日尔:NE,斯里兰卡:LK,布基纳法索:BF,乌兹别克斯坦:UZ,马里:ML,委内瑞拉:VE,哈萨克斯坦:KZ,马拉维:MW,赞比亚:ZM,也门:YE,比利时:BE,危地马拉:GT,叙利亚:SY,厄瓜多尔:EC,塞内加尔:SN,乍得:TD,索马里:SO,津巴布韦:ZW,几内亚:GN,卢旺达:RW,突尼斯:TN,贝宁:BJ,捷克:CZ,玻利维亚:BO,古巴:CU,布隆迪:BI,海地:HT,柬埔寨:KH,希腊:GR,多米尼加:DO,瑞典:SE,葡萄牙:PT,约旦:JO,南苏丹:SS,阿塞拜疆:AZ,匈牙利:HU,阿联酋:AE,洪都拉斯:HN,白俄罗斯:BY,塔吉克斯坦:TJ,以色列:IL,奥地利:AT,巴布亚新几内亚:PG,瑞士:CH,多哥:TG,塞拉利昂:SL,老挝:LA,保加利亚:BG,塞尔维亚:RS,巴拉圭:PY,黎巴嫩:LB,利比亚:LY,尼加拉瓜:NI,萨尔瓦多:SV,吉尔吉斯斯坦:KG,土库曼斯坦:TM,丹麦:DK,新加坡:SG,芬兰:FI,斯洛伐克:SK,挪威:NO,刚果(布):CG,哥斯达黎加:CR,新西兰:NZ,爱尔兰:IE,阿曼:OM,利比里亚:LR,中非:CF,巴勒斯坦:PS,毛利塔尼亚:MR,巴拿马:PA,科威特:KW,克罗地亚:HR,格鲁吉亚:GE,摩尔多瓦:MD,乌拉圭:UY,波黑:BA,波多黎各:PR,蒙古:MN,亚美尼亚:AM,牙买加:JM,阿尔巴尼亚:AL,立陶宛:LT,卡塔尔:QA,纳米比亚:NA,冈比亚:GM,博茨瓦纳:BW,加蓬:GA,莱索托:LS,前南马其顿:MK,斯洛文尼亚:SI,拉脱维亚:LV,几内亚比绍:GW,科索沃:XK,巴林:BH,特立尼达和多巴哥:TT,爱沙尼亚:EE,赤道几内亚:GQ,东帝汶:TL,毛里求斯:MU,塞浦路斯:CY,斯威士兰:SZ,吉布提:DJ,斐济:FJ,留尼汪:RE,科摩罗:KM,圭亚那:GY,不丹:BT,所罗门群岛:SB,黑山:ME,卢森堡:LU,苏里南:SR,佛得角:CV,马尔代夫:MV,西撒哈拉:EH,马耳他:MT,文莱:BN,瓜德罗普:GP,巴哈马:BS,伯利兹:BZ,马提尼克:MQ,冰岛:IS,法属圭亚那:GF,瓦努阿图:VU,巴巴多斯:BB,新喀里多尼亚:NC,法属波利尼西亚:PF,马约特:YT,荷属安的列斯:AN,圣多美和普林西比:ST,萨摩亚:WS,圣卢西亚:LC,关岛:GU,库拉索:CW,基里巴斯:KI,密克罗尼西亚联邦:FM,格林纳达:GD,圣文森特和格林纳丁斯:VC,美属维尔京群岛:VI,泽西岛:JE,阿鲁巴:AW,汤加:TO,塞舌尔:SC,安提瓜和巴布达:AG,英国属地曼岛:IM,安道尔:AD,多米尼克:DM,开曼群岛:KY,百慕大:BM,格恩西岛:GG,马绍尔群岛:MH,北马里亚纳:MP,格陵兰:GL,美属萨摩亚:AS,圣基茨和尼维斯:KN,法罗群岛:FO,荷属圣马丁:SX,摩纳哥:MC,列支敦士登:LI,特克斯和凯科斯群岛:TC,法属圣马丁:MF,圣马力诺:SM,直布罗陀:GI,英属维尔京群岛:VG,奥兰群岛:AX,博奈尔:BQ,帕劳:PW,库克群岛:CK,安圭拉:AI,瑙鲁:NR,瓦利斯和富图纳:WF,图瓦卢:TV,圣巴泰勒米:BL,圣皮埃尔和密克隆:PM,蒙特塞拉特:MS,圣赫勒拿:SH,福克兰群岛(马尔维纳斯):FK,诺福克岛:NF,纽埃:NU,托克劳:TK,圣诞岛:CX,梵蒂冈:VA,科科斯(基林)群岛:CC,美国本土外小岛屿:UM,皮特凯恩:PN,南乔治亚岛和南桑德韦奇岛:GS,南极洲:AQ,布维岛:BV,厄立特里亚:ER,赫德岛和麦克唐纳岛:HM,英属印度洋领地:IO,法属南部领地:TF,斯瓦尔巴岛和扬马延岛:SJ) :type geo_ip: str :param white: 防护动作: - 0 拦截 - 1 放行 - 2 仅记录 :type white: int @@ -136,7 +136,7 @@ class UpdateHttpGeoIpRuleRequestBody: def geo_ip(self): """Gets the geo_ip of this UpdateHttpGeoIpRuleRequestBody. - 地理位置封禁区域,选择区域对应的字母代号: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古) + 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (北京:CN_BJ,上海:CN_SH,天津:CN_TJ,重庆:CN_CQ,广东:CN_GD,浙江:CN_ZJ,江苏:CN_JS,福建:CN_FJ,吉林:CN_JL,辽宁:CN_LN,台湾:CN_TW,贵州:CN_GZ,安徽:CN_AH,黑龙江:CN_HL,河南:CN_HA,四川:CN_SC,河北:CN_HE,云南:CN_YN,湖北:CN_HB,海南:CN_HI,青海:CN_QH,湖南:CN_HN,江西:CN_JX,山西:CN_SX,陕西:CN_SN,甘肃:CN_GS,山东:CN_SD,澳门:CN_MO,香港:CN_HK,宁夏:CN_NX,广西:CN_GX,新疆:CN_XJ,西藏:CN_XZ,内蒙古:CN_NM,印度:IN,美国:US,印度尼西亚:ID,巴基斯坦:PK,巴西:BR,尼日利亚:NG,孟加拉国:BD,俄罗斯联邦:RU,日本:JP,墨西哥:MX,埃塞俄比亚:ET,菲律宾:PH,埃及:EG,越南:VN,德国:DE,土耳其:TR,泰国:TH,法国:FR,英国:GB,意大利:IT,南非:ZA,缅甸:MM,肯尼亚:KE,坦桑尼亚:TZ,哥伦比亚:CO,西班牙:ES,乌克兰:UA,伊拉克:IQ,波兰:PL,沙特阿拉伯:SA,秘鲁:PE,乌干达:UG,马来西亚:MY,苏丹:SD,罗马尼亚:RO,阿富汗:AF,加拿大:CA,摩洛哥:MA,智利:CL,刚果(金):CD,伊朗:IR,韩国:KR,安哥拉:AO,加纳:GH,莫桑比克:MZ,阿根廷:AR,阿尔及利亚:DZ,尼泊尔:NP,马达加斯加:MG,朝鲜:KP,喀麦隆:CM,科特迪瓦:CI,澳大利亚:AU,荷兰:NL,尼日尔:NE,斯里兰卡:LK,布基纳法索:BF,乌兹别克斯坦:UZ,马里:ML,委内瑞拉:VE,哈萨克斯坦:KZ,马拉维:MW,赞比亚:ZM,也门:YE,比利时:BE,危地马拉:GT,叙利亚:SY,厄瓜多尔:EC,塞内加尔:SN,乍得:TD,索马里:SO,津巴布韦:ZW,几内亚:GN,卢旺达:RW,突尼斯:TN,贝宁:BJ,捷克:CZ,玻利维亚:BO,古巴:CU,布隆迪:BI,海地:HT,柬埔寨:KH,希腊:GR,多米尼加:DO,瑞典:SE,葡萄牙:PT,约旦:JO,南苏丹:SS,阿塞拜疆:AZ,匈牙利:HU,阿联酋:AE,洪都拉斯:HN,白俄罗斯:BY,塔吉克斯坦:TJ,以色列:IL,奥地利:AT,巴布亚新几内亚:PG,瑞士:CH,多哥:TG,塞拉利昂:SL,老挝:LA,保加利亚:BG,塞尔维亚:RS,巴拉圭:PY,黎巴嫩:LB,利比亚:LY,尼加拉瓜:NI,萨尔瓦多:SV,吉尔吉斯斯坦:KG,土库曼斯坦:TM,丹麦:DK,新加坡:SG,芬兰:FI,斯洛伐克:SK,挪威:NO,刚果(布):CG,哥斯达黎加:CR,新西兰:NZ,爱尔兰:IE,阿曼:OM,利比里亚:LR,中非:CF,巴勒斯坦:PS,毛利塔尼亚:MR,巴拿马:PA,科威特:KW,克罗地亚:HR,格鲁吉亚:GE,摩尔多瓦:MD,乌拉圭:UY,波黑:BA,波多黎各:PR,蒙古:MN,亚美尼亚:AM,牙买加:JM,阿尔巴尼亚:AL,立陶宛:LT,卡塔尔:QA,纳米比亚:NA,冈比亚:GM,博茨瓦纳:BW,加蓬:GA,莱索托:LS,前南马其顿:MK,斯洛文尼亚:SI,拉脱维亚:LV,几内亚比绍:GW,科索沃:XK,巴林:BH,特立尼达和多巴哥:TT,爱沙尼亚:EE,赤道几内亚:GQ,东帝汶:TL,毛里求斯:MU,塞浦路斯:CY,斯威士兰:SZ,吉布提:DJ,斐济:FJ,留尼汪:RE,科摩罗:KM,圭亚那:GY,不丹:BT,所罗门群岛:SB,黑山:ME,卢森堡:LU,苏里南:SR,佛得角:CV,马尔代夫:MV,西撒哈拉:EH,马耳他:MT,文莱:BN,瓜德罗普:GP,巴哈马:BS,伯利兹:BZ,马提尼克:MQ,冰岛:IS,法属圭亚那:GF,瓦努阿图:VU,巴巴多斯:BB,新喀里多尼亚:NC,法属波利尼西亚:PF,马约特:YT,荷属安的列斯:AN,圣多美和普林西比:ST,萨摩亚:WS,圣卢西亚:LC,关岛:GU,库拉索:CW,基里巴斯:KI,密克罗尼西亚联邦:FM,格林纳达:GD,圣文森特和格林纳丁斯:VC,美属维尔京群岛:VI,泽西岛:JE,阿鲁巴:AW,汤加:TO,塞舌尔:SC,安提瓜和巴布达:AG,英国属地曼岛:IM,安道尔:AD,多米尼克:DM,开曼群岛:KY,百慕大:BM,格恩西岛:GG,马绍尔群岛:MH,北马里亚纳:MP,格陵兰:GL,美属萨摩亚:AS,圣基茨和尼维斯:KN,法罗群岛:FO,荷属圣马丁:SX,摩纳哥:MC,列支敦士登:LI,特克斯和凯科斯群岛:TC,法属圣马丁:MF,圣马力诺:SM,直布罗陀:GI,英属维尔京群岛:VG,奥兰群岛:AX,博奈尔:BQ,帕劳:PW,库克群岛:CK,安圭拉:AI,瑙鲁:NR,瓦利斯和富图纳:WF,图瓦卢:TV,圣巴泰勒米:BL,圣皮埃尔和密克隆:PM,蒙特塞拉特:MS,圣赫勒拿:SH,福克兰群岛(马尔维纳斯):FK,诺福克岛:NF,纽埃:NU,托克劳:TK,圣诞岛:CX,梵蒂冈:VA,科科斯(基林)群岛:CC,美国本土外小岛屿:UM,皮特凯恩:PN,南乔治亚岛和南桑德韦奇岛:GS,南极洲:AQ,布维岛:BV,厄立特里亚:ER,赫德岛和麦克唐纳岛:HM,英属印度洋领地:IO,法属南部领地:TF,斯瓦尔巴岛和扬马延岛:SJ) :return: The geo_ip of this UpdateHttpGeoIpRuleRequestBody. :rtype: str @@ -147,7 +147,7 @@ class UpdateHttpGeoIpRuleRequestBody: def geo_ip(self, geo_ip): """Sets the geo_ip of this UpdateHttpGeoIpRuleRequestBody. - 地理位置封禁区域,选择区域对应的字母代号: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古) + 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (北京:CN_BJ,上海:CN_SH,天津:CN_TJ,重庆:CN_CQ,广东:CN_GD,浙江:CN_ZJ,江苏:CN_JS,福建:CN_FJ,吉林:CN_JL,辽宁:CN_LN,台湾:CN_TW,贵州:CN_GZ,安徽:CN_AH,黑龙江:CN_HL,河南:CN_HA,四川:CN_SC,河北:CN_HE,云南:CN_YN,湖北:CN_HB,海南:CN_HI,青海:CN_QH,湖南:CN_HN,江西:CN_JX,山西:CN_SX,陕西:CN_SN,甘肃:CN_GS,山东:CN_SD,澳门:CN_MO,香港:CN_HK,宁夏:CN_NX,广西:CN_GX,新疆:CN_XJ,西藏:CN_XZ,内蒙古:CN_NM,印度:IN,美国:US,印度尼西亚:ID,巴基斯坦:PK,巴西:BR,尼日利亚:NG,孟加拉国:BD,俄罗斯联邦:RU,日本:JP,墨西哥:MX,埃塞俄比亚:ET,菲律宾:PH,埃及:EG,越南:VN,德国:DE,土耳其:TR,泰国:TH,法国:FR,英国:GB,意大利:IT,南非:ZA,缅甸:MM,肯尼亚:KE,坦桑尼亚:TZ,哥伦比亚:CO,西班牙:ES,乌克兰:UA,伊拉克:IQ,波兰:PL,沙特阿拉伯:SA,秘鲁:PE,乌干达:UG,马来西亚:MY,苏丹:SD,罗马尼亚:RO,阿富汗:AF,加拿大:CA,摩洛哥:MA,智利:CL,刚果(金):CD,伊朗:IR,韩国:KR,安哥拉:AO,加纳:GH,莫桑比克:MZ,阿根廷:AR,阿尔及利亚:DZ,尼泊尔:NP,马达加斯加:MG,朝鲜:KP,喀麦隆:CM,科特迪瓦:CI,澳大利亚:AU,荷兰:NL,尼日尔:NE,斯里兰卡:LK,布基纳法索:BF,乌兹别克斯坦:UZ,马里:ML,委内瑞拉:VE,哈萨克斯坦:KZ,马拉维:MW,赞比亚:ZM,也门:YE,比利时:BE,危地马拉:GT,叙利亚:SY,厄瓜多尔:EC,塞内加尔:SN,乍得:TD,索马里:SO,津巴布韦:ZW,几内亚:GN,卢旺达:RW,突尼斯:TN,贝宁:BJ,捷克:CZ,玻利维亚:BO,古巴:CU,布隆迪:BI,海地:HT,柬埔寨:KH,希腊:GR,多米尼加:DO,瑞典:SE,葡萄牙:PT,约旦:JO,南苏丹:SS,阿塞拜疆:AZ,匈牙利:HU,阿联酋:AE,洪都拉斯:HN,白俄罗斯:BY,塔吉克斯坦:TJ,以色列:IL,奥地利:AT,巴布亚新几内亚:PG,瑞士:CH,多哥:TG,塞拉利昂:SL,老挝:LA,保加利亚:BG,塞尔维亚:RS,巴拉圭:PY,黎巴嫩:LB,利比亚:LY,尼加拉瓜:NI,萨尔瓦多:SV,吉尔吉斯斯坦:KG,土库曼斯坦:TM,丹麦:DK,新加坡:SG,芬兰:FI,斯洛伐克:SK,挪威:NO,刚果(布):CG,哥斯达黎加:CR,新西兰:NZ,爱尔兰:IE,阿曼:OM,利比里亚:LR,中非:CF,巴勒斯坦:PS,毛利塔尼亚:MR,巴拿马:PA,科威特:KW,克罗地亚:HR,格鲁吉亚:GE,摩尔多瓦:MD,乌拉圭:UY,波黑:BA,波多黎各:PR,蒙古:MN,亚美尼亚:AM,牙买加:JM,阿尔巴尼亚:AL,立陶宛:LT,卡塔尔:QA,纳米比亚:NA,冈比亚:GM,博茨瓦纳:BW,加蓬:GA,莱索托:LS,前南马其顿:MK,斯洛文尼亚:SI,拉脱维亚:LV,几内亚比绍:GW,科索沃:XK,巴林:BH,特立尼达和多巴哥:TT,爱沙尼亚:EE,赤道几内亚:GQ,东帝汶:TL,毛里求斯:MU,塞浦路斯:CY,斯威士兰:SZ,吉布提:DJ,斐济:FJ,留尼汪:RE,科摩罗:KM,圭亚那:GY,不丹:BT,所罗门群岛:SB,黑山:ME,卢森堡:LU,苏里南:SR,佛得角:CV,马尔代夫:MV,西撒哈拉:EH,马耳他:MT,文莱:BN,瓜德罗普:GP,巴哈马:BS,伯利兹:BZ,马提尼克:MQ,冰岛:IS,法属圭亚那:GF,瓦努阿图:VU,巴巴多斯:BB,新喀里多尼亚:NC,法属波利尼西亚:PF,马约特:YT,荷属安的列斯:AN,圣多美和普林西比:ST,萨摩亚:WS,圣卢西亚:LC,关岛:GU,库拉索:CW,基里巴斯:KI,密克罗尼西亚联邦:FM,格林纳达:GD,圣文森特和格林纳丁斯:VC,美属维尔京群岛:VI,泽西岛:JE,阿鲁巴:AW,汤加:TO,塞舌尔:SC,安提瓜和巴布达:AG,英国属地曼岛:IM,安道尔:AD,多米尼克:DM,开曼群岛:KY,百慕大:BM,格恩西岛:GG,马绍尔群岛:MH,北马里亚纳:MP,格陵兰:GL,美属萨摩亚:AS,圣基茨和尼维斯:KN,法罗群岛:FO,荷属圣马丁:SX,摩纳哥:MC,列支敦士登:LI,特克斯和凯科斯群岛:TC,法属圣马丁:MF,圣马力诺:SM,直布罗陀:GI,英属维尔京群岛:VG,奥兰群岛:AX,博奈尔:BQ,帕劳:PW,库克群岛:CK,安圭拉:AI,瑙鲁:NR,瓦利斯和富图纳:WF,图瓦卢:TV,圣巴泰勒米:BL,圣皮埃尔和密克隆:PM,蒙特塞拉特:MS,圣赫勒拿:SH,福克兰群岛(马尔维纳斯):FK,诺福克岛:NF,纽埃:NU,托克劳:TK,圣诞岛:CX,梵蒂冈:VA,科科斯(基林)群岛:CC,美国本土外小岛屿:UM,皮特凯恩:PN,南乔治亚岛和南桑德韦奇岛:GS,南极洲:AQ,布维岛:BV,厄立特里亚:ER,赫德岛和麦克唐纳岛:HM,英属印度洋领地:IO,法属南部领地:TF,斯瓦尔巴岛和扬马延岛:SJ) :param geo_ip: The geo_ip of this UpdateHttpGeoIpRuleRequestBody. :type geo_ip: str diff --git a/huaweicloud-sdk-edgesec/requirements.txt b/huaweicloud-sdk-edgesec/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-edgesec/requirements.txt +++ b/huaweicloud-sdk-edgesec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-edgesec/setup.py b/huaweicloud-sdk-edgesec/setup.py index fa0663ea6..7a59eacf6 100644 --- a/huaweicloud-sdk-edgesec/setup.py +++ b/huaweicloud-sdk-edgesec/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkedgesec" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index 60ef2f2f7..b680e7d0f 100644 --- a/huaweicloud-sdk-eg/setup.py +++ b/huaweicloud-sdk-eg/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeg" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/__init__.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/__init__.py index 99adeb3e2..8010bcb2f 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/__init__.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/__init__.py @@ -64,6 +64,7 @@ from huaweicloudsdkeihealth.v1.model.batch_update_notice_response import BatchUp from huaweicloudsdkeihealth.v1.model.bind_site_dto import BindSiteDto from huaweicloudsdkeihealth.v1.model.bind_user_rsp import BindUserRsp from huaweicloudsdkeihealth.v1.model.binding_site import BindingSite +from huaweicloudsdkeihealth.v1.model.bound_box_dto import BoundBoxDto from huaweicloudsdkeihealth.v1.model.bounding_box import BoundingBox from huaweicloudsdkeihealth.v1.model.bounding_box_dto import BoundingBoxDto from huaweicloudsdkeihealth.v1.model.bucket_dto import BucketDto @@ -91,12 +92,15 @@ from huaweicloudsdkeihealth.v1.model.clean_nextflow_cache_request import CleanNe from huaweicloudsdkeihealth.v1.model.clean_nextflow_cache_response import CleanNextflowCacheResponse from huaweicloudsdkeihealth.v1.model.clone_data_req import CloneDataReq from huaweicloudsdkeihealth.v1.model.cluster_job_rsp import ClusterJobRsp +from huaweicloudsdkeihealth.v1.model.clustering_drug_file import ClusteringDrugFile +from huaweicloudsdkeihealth.v1.model.clustering_file_source import ClusteringFileSource from huaweicloudsdkeihealth.v1.model.code_verify_req import CodeVerifyReq from huaweicloudsdkeihealth.v1.model.column_type import ColumnType from huaweicloudsdkeihealth.v1.model.column_value_dto import ColumnValueDto from huaweicloudsdkeihealth.v1.model.computing_resource_flavors_rsp import ComputingResourceFlavorsRsp from huaweicloudsdkeihealth.v1.model.computing_resource_rsp import ComputingResourceRsp from huaweicloudsdkeihealth.v1.model.computing_spec_dto import ComputingSpecDto +from huaweicloudsdkeihealth.v1.model.convert_file import ConvertFile from huaweicloudsdkeihealth.v1.model.copy_data_request import CopyDataRequest from huaweicloudsdkeihealth.v1.model.copy_data_response import CopyDataResponse from huaweicloudsdkeihealth.v1.model.cpi_receptor import CpiReceptor @@ -117,6 +121,9 @@ from huaweicloudsdkeihealth.v1.model.create_backup_response import CreateBackupR from huaweicloudsdkeihealth.v1.model.create_cluster_job_req import CreateClusterJobReq from huaweicloudsdkeihealth.v1.model.create_cluster_job_request import CreateClusterJobRequest from huaweicloudsdkeihealth.v1.model.create_cluster_job_response import CreateClusterJobResponse +from huaweicloudsdkeihealth.v1.model.create_clustering_job_req import CreateClusteringJobReq +from huaweicloudsdkeihealth.v1.model.create_clustering_job_request import CreateClusteringJobRequest +from huaweicloudsdkeihealth.v1.model.create_clustering_job_response import CreateClusteringJobResponse from huaweicloudsdkeihealth.v1.model.create_code_request import CreateCodeRequest from huaweicloudsdkeihealth.v1.model.create_code_response import CreateCodeResponse from huaweicloudsdkeihealth.v1.model.create_computing_resource_req import CreateComputingResourceReq @@ -161,6 +168,9 @@ from huaweicloudsdkeihealth.v1.model.create_drug_ligand_svg_request import Creat from huaweicloudsdkeihealth.v1.model.create_drug_ligand_svg_response import CreateDrugLigandSvgResponse from huaweicloudsdkeihealth.v1.model.create_drug_model_request import CreateDrugModelRequest from huaweicloudsdkeihealth.v1.model.create_drug_model_response import CreateDrugModelResponse +from huaweicloudsdkeihealth.v1.model.create_favorite_req import CreateFavoriteReq +from huaweicloudsdkeihealth.v1.model.create_favorite_request import CreateFavoriteRequest +from huaweicloudsdkeihealth.v1.model.create_favorite_response import CreateFavoriteResponse from huaweicloudsdkeihealth.v1.model.create_fep_job_req import CreateFepJobReq from huaweicloudsdkeihealth.v1.model.create_fep_job_request import CreateFepJobRequest from huaweicloudsdkeihealth.v1.model.create_fep_job_response import CreateFepJobResponse @@ -189,6 +199,9 @@ from huaweicloudsdkeihealth.v1.model.create_model_req import CreateModelReq from huaweicloudsdkeihealth.v1.model.create_mol_batch_download_task_req import CreateMolBatchDownloadTaskReq from huaweicloudsdkeihealth.v1.model.create_mol_batch_download_task_request import CreateMolBatchDownloadTaskRequest from huaweicloudsdkeihealth.v1.model.create_mol_batch_download_task_response import CreateMolBatchDownloadTaskResponse +from huaweicloudsdkeihealth.v1.model.create_mol_docking_job_req import CreateMolDockingJobReq +from huaweicloudsdkeihealth.v1.model.create_mol_docking_job_request import CreateMolDockingJobRequest +from huaweicloudsdkeihealth.v1.model.create_mol_docking_job_response import CreateMolDockingJobResponse from huaweicloudsdkeihealth.v1.model.create_nextflow_job_request import CreateNextflowJobRequest from huaweicloudsdkeihealth.v1.model.create_nextflow_job_request_body import CreateNextflowJobRequestBody from huaweicloudsdkeihealth.v1.model.create_nextflow_job_response import CreateNextflowJobResponse @@ -294,6 +307,8 @@ from huaweicloudsdkeihealth.v1.model.delete_drug_ligand_similarity_graph_task_re from huaweicloudsdkeihealth.v1.model.delete_drug_ligand_similarity_graph_task_response import DeleteDrugLigandSimilarityGraphTaskResponse from huaweicloudsdkeihealth.v1.model.delete_drug_model_request import DeleteDrugModelRequest from huaweicloudsdkeihealth.v1.model.delete_drug_model_response import DeleteDrugModelResponse +from huaweicloudsdkeihealth.v1.model.delete_favorite_request import DeleteFavoriteRequest +from huaweicloudsdkeihealth.v1.model.delete_favorite_response import DeleteFavoriteResponse from huaweicloudsdkeihealth.v1.model.delete_image_request import DeleteImageRequest from huaweicloudsdkeihealth.v1.model.delete_image_response import DeleteImageResponse from huaweicloudsdkeihealth.v1.model.delete_instance_request import DeleteInstanceRequest @@ -360,6 +375,7 @@ from huaweicloudsdkeihealth.v1.model.execute_job_response import ExecuteJobRespo from huaweicloudsdkeihealth.v1.model.extremum_dto import ExtremumDto from huaweicloudsdkeihealth.v1.model.failed_reason_record import FailedReasonRecord from huaweicloudsdkeihealth.v1.model.fasta_receptor import FastaReceptor +from huaweicloudsdkeihealth.v1.model.favorite_dto import FavoriteDto from huaweicloudsdkeihealth.v1.model.feature_enum import FeatureEnum from huaweicloudsdkeihealth.v1.model.fep_graph_dto import FepGraphDto from huaweicloudsdkeihealth.v1.model.fep_param_dto import FepParamDto @@ -474,6 +490,8 @@ from huaweicloudsdkeihealth.v1.model.list_drug_job_request import ListDrugJobReq from huaweicloudsdkeihealth.v1.model.list_drug_job_response import ListDrugJobResponse from huaweicloudsdkeihealth.v1.model.list_drug_model_request import ListDrugModelRequest from huaweicloudsdkeihealth.v1.model.list_drug_model_response import ListDrugModelResponse +from huaweicloudsdkeihealth.v1.model.list_favorite_request import ListFavoriteRequest +from huaweicloudsdkeihealth.v1.model.list_favorite_response import ListFavoriteResponse from huaweicloudsdkeihealth.v1.model.list_global_workflow_statistic_request import ListGlobalWorkflowStatisticRequest from huaweicloudsdkeihealth.v1.model.list_global_workflow_statistic_response import ListGlobalWorkflowStatisticResponse from huaweicloudsdkeihealth.v1.model.list_iam_group_users_request import ListIamGroupUsersRequest @@ -649,6 +667,7 @@ from huaweicloudsdkeihealth.v1.model.reboot_node_request import RebootNodeReques from huaweicloudsdkeihealth.v1.model.reboot_node_response import RebootNodeResponse from huaweicloudsdkeihealth.v1.model.receptor_drug_file import ReceptorDrugFile from huaweicloudsdkeihealth.v1.model.receptor_drug_file_req import ReceptorDrugFileReq +from huaweicloudsdkeihealth.v1.model.receptor_dto import ReceptorDto from huaweicloudsdkeihealth.v1.model.receptor_ligand_info_dto import ReceptorLigandInfoDto from huaweicloudsdkeihealth.v1.model.recognize_drug_receptor_pocket_request import RecognizeDrugReceptorPocketRequest from huaweicloudsdkeihealth.v1.model.recognize_drug_receptor_pocket_response import RecognizeDrugReceptorPocketResponse @@ -677,6 +696,9 @@ from huaweicloudsdkeihealth.v1.model.run_drug_receptor_preprocess_response impor from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_req import RunFastaPreprocessReq from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_request import RunFastaPreprocessRequest from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_response import RunFastaPreprocessResponse +from huaweicloudsdkeihealth.v1.model.run_format_converter_req import RunFormatConverterReq +from huaweicloudsdkeihealth.v1.model.run_format_converter_request import RunFormatConverterRequest +from huaweicloudsdkeihealth.v1.model.run_format_converter_response import RunFormatConverterResponse from huaweicloudsdkeihealth.v1.model.run_pocket_req import RunPocketReq from huaweicloudsdkeihealth.v1.model.run_receptor_preprocess_req import RunReceptorPreprocessReq from huaweicloudsdkeihealth.v1.model.run_surface_points_req import RunSurfacePointsReq @@ -710,6 +732,8 @@ from huaweicloudsdkeihealth.v1.model.show_bms_devices_request import ShowBmsDevi from huaweicloudsdkeihealth.v1.model.show_bms_devices_response import ShowBmsDevicesResponse from huaweicloudsdkeihealth.v1.model.show_bucket_storage_request import ShowBucketStorageRequest from huaweicloudsdkeihealth.v1.model.show_bucket_storage_response import ShowBucketStorageResponse +from huaweicloudsdkeihealth.v1.model.show_clustering_job_request import ShowClusteringJobRequest +from huaweicloudsdkeihealth.v1.model.show_clustering_job_response import ShowClusteringJobResponse from huaweicloudsdkeihealth.v1.model.show_cpi_job_request import ShowCpiJobRequest from huaweicloudsdkeihealth.v1.model.show_cpi_job_response import ShowCpiJobResponse from huaweicloudsdkeihealth.v1.model.show_cpi_task_result_request import ShowCpiTaskResultRequest diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_async_client.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_async_client.py index 8718c4630..1d9ad5fa6 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_async_client.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_async_client.py @@ -1701,6 +1701,73 @@ class EiHealthAsyncClient(Client): return http_info + def create_clustering_job_async(self, request): + """创建聚类分析作业 + + 创建聚类分析作业。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateClusteringJob + :type request: :class:`huaweicloudsdkeihealth.v1.CreateClusteringJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateClusteringJobResponse` + """ + http_info = self._create_clustering_job_http_info(request) + return self._call_api(**http_info) + + def create_clustering_job_async_invoker(self, request): + http_info = self._create_clustering_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_clustering_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/clustering", + "request_type": request.__class__.__name__, + "response_type": "CreateClusteringJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_code_async(self, request): """发送验证码 @@ -2231,6 +2298,73 @@ class EiHealthAsyncClient(Client): return http_info + def create_favorite_async(self, request): + """添加收藏 + + 添加收藏。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateFavorite + :type request: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteResponse` + """ + http_info = self._create_favorite_http_info(request) + return self._call_api(**http_info) + + def create_favorite_async_invoker(self, request): + http_info = self._create_favorite_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_favorite_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/favorites", + "request_type": request.__class__.__name__, + "response_type": "CreateFavoriteResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_fep_job_async(self, request): """创建自由能微扰作业 @@ -2698,6 +2832,73 @@ class EiHealthAsyncClient(Client): return http_info + def create_mol_docking_job_async(self, request): + """单分子预对接 + + 单分子预对接。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateMolDockingJob + :type request: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobResponse` + """ + http_info = self._create_mol_docking_job_http_info(request) + return self._call_api(**http_info) + + def create_mol_docking_job_async_invoker(self, request): + http_info = self._create_mol_docking_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_mol_docking_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-common/mol-docking", + "request_type": request.__class__.__name__, + "response_type": "CreateMolDockingJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_optm_job_async(self, request): """创建分子优化作业 @@ -4361,6 +4562,73 @@ class EiHealthAsyncClient(Client): return http_info + def delete_favorite_async(self, request): + """取消收藏 + + 取消收藏。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteFavorite + :type request: :class:`huaweicloudsdkeihealth.v1.DeleteFavoriteRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.DeleteFavoriteResponse` + """ + http_info = self._delete_favorite_http_info(request) + return self._call_api(**http_info) + + def delete_favorite_async_invoker(self, request): + http_info = self._delete_favorite_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_favorite_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/favorites/{favorite_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteFavoriteResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + if 'favorite_id' in local_var_params: + path_params['favorite_id'] = local_var_params['favorite_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_image_async(self, request): """删除镜像仓库 @@ -7747,6 +8015,96 @@ class EiHealthAsyncClient(Client): return http_info + def list_favorite_async(self, request): + """获取收藏夹列表 + + 获取收藏夹列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListFavorite + :type request: :class:`huaweicloudsdkeihealth.v1.ListFavoriteRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ListFavoriteResponse` + """ + http_info = self._list_favorite_http_info(request) + return self._call_api(**http_info) + + def list_favorite_async_invoker(self, request): + http_info = self._list_favorite_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_favorite_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/favorites", + "request_type": request.__class__.__name__, + "response_type": "ListFavoriteResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + if 'resource_id' in local_var_params: + query_params.append(('resource_id', local_var_params['resource_id'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'user_name_list' in local_var_params: + query_params.append(('user_name_list', local_var_params['user_name_list'])) + collection_formats['user_name_list'] = 'csv' + if 'resource_type_list' in local_var_params: + query_params.append(('resource_type_list', local_var_params['resource_type_list'])) + collection_formats['resource_type_list'] = 'csv' + if 'type_list' in local_var_params: + query_params.append(('type_list', local_var_params['type_list'])) + collection_formats['type_list'] = 'csv' + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'key_word' in local_var_params: + query_params.append(('key_word', local_var_params['key_word'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_global_workflow_statistic_async(self, request): """统计全局流程、作业信息 @@ -10729,6 +11087,73 @@ class EiHealthAsyncClient(Client): return http_info + def run_format_converter_async(self, request): + """单分子文件格式转换 + + 单分子文件格式转换。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RunFormatConverter + :type request: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterResponse` + """ + http_info = self._run_format_converter_http_info(request) + return self._call_api(**http_info) + + def run_format_converter_async_invoker(self, request): + http_info = self._run_format_converter_http_info(request) + return AsyncInvoker(self, http_info) + + def _run_format_converter_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-common/toolkit/format-converter", + "request_type": request.__class__.__name__, + "response_type": "RunFormatConverterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show3d_structure_content_async(self, request): """获取生成study作业3D结构的内容 @@ -11332,6 +11757,73 @@ class EiHealthAsyncClient(Client): return http_info + def show_clustering_job_async(self, request): + """查询聚类分析作业详情 + + 查询聚类分析作业详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowClusteringJob + :type request: :class:`huaweicloudsdkeihealth.v1.ShowClusteringJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ShowClusteringJobResponse` + """ + http_info = self._show_clustering_job_http_info(request) + return self._call_api(**http_info) + + def show_clustering_job_async_invoker(self, request): + http_info = self._show_clustering_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_clustering_job_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/clustering/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowClusteringJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_data_async(self, request): """获取数据详情 diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_client.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_client.py index cf461a333..0639bbc81 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_client.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_client.py @@ -1701,6 +1701,73 @@ class EiHealthClient(Client): return http_info + def create_clustering_job(self, request): + """创建聚类分析作业 + + 创建聚类分析作业。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateClusteringJob + :type request: :class:`huaweicloudsdkeihealth.v1.CreateClusteringJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateClusteringJobResponse` + """ + http_info = self._create_clustering_job_http_info(request) + return self._call_api(**http_info) + + def create_clustering_job_invoker(self, request): + http_info = self._create_clustering_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_clustering_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/clustering", + "request_type": request.__class__.__name__, + "response_type": "CreateClusteringJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_code(self, request): """发送验证码 @@ -2231,6 +2298,73 @@ class EiHealthClient(Client): return http_info + def create_favorite(self, request): + """添加收藏 + + 添加收藏。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateFavorite + :type request: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteResponse` + """ + http_info = self._create_favorite_http_info(request) + return self._call_api(**http_info) + + def create_favorite_invoker(self, request): + http_info = self._create_favorite_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_favorite_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/favorites", + "request_type": request.__class__.__name__, + "response_type": "CreateFavoriteResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_fep_job(self, request): """创建自由能微扰作业 @@ -2698,6 +2832,73 @@ class EiHealthClient(Client): return http_info + def create_mol_docking_job(self, request): + """单分子预对接 + + 单分子预对接。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateMolDockingJob + :type request: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobResponse` + """ + http_info = self._create_mol_docking_job_http_info(request) + return self._call_api(**http_info) + + def create_mol_docking_job_invoker(self, request): + http_info = self._create_mol_docking_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_mol_docking_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-common/mol-docking", + "request_type": request.__class__.__name__, + "response_type": "CreateMolDockingJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_optm_job(self, request): """创建分子优化作业 @@ -4361,6 +4562,73 @@ class EiHealthClient(Client): return http_info + def delete_favorite(self, request): + """取消收藏 + + 取消收藏。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteFavorite + :type request: :class:`huaweicloudsdkeihealth.v1.DeleteFavoriteRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.DeleteFavoriteResponse` + """ + http_info = self._delete_favorite_http_info(request) + return self._call_api(**http_info) + + def delete_favorite_invoker(self, request): + http_info = self._delete_favorite_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_favorite_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/favorites/{favorite_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteFavoriteResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + if 'favorite_id' in local_var_params: + path_params['favorite_id'] = local_var_params['favorite_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_image(self, request): """删除镜像仓库 @@ -7747,6 +8015,96 @@ class EiHealthClient(Client): return http_info + def list_favorite(self, request): + """获取收藏夹列表 + + 获取收藏夹列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListFavorite + :type request: :class:`huaweicloudsdkeihealth.v1.ListFavoriteRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ListFavoriteResponse` + """ + http_info = self._list_favorite_http_info(request) + return self._call_api(**http_info) + + def list_favorite_invoker(self, request): + http_info = self._list_favorite_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_favorite_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/favorites", + "request_type": request.__class__.__name__, + "response_type": "ListFavoriteResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + if 'resource_id' in local_var_params: + query_params.append(('resource_id', local_var_params['resource_id'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'user_name_list' in local_var_params: + query_params.append(('user_name_list', local_var_params['user_name_list'])) + collection_formats['user_name_list'] = 'csv' + if 'resource_type_list' in local_var_params: + query_params.append(('resource_type_list', local_var_params['resource_type_list'])) + collection_formats['resource_type_list'] = 'csv' + if 'type_list' in local_var_params: + query_params.append(('type_list', local_var_params['type_list'])) + collection_formats['type_list'] = 'csv' + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'key_word' in local_var_params: + query_params.append(('key_word', local_var_params['key_word'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_global_workflow_statistic(self, request): """统计全局流程、作业信息 @@ -10729,6 +11087,73 @@ class EiHealthClient(Client): return http_info + def run_format_converter(self, request): + """单分子文件格式转换 + + 单分子文件格式转换。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RunFormatConverter + :type request: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterResponse` + """ + http_info = self._run_format_converter_http_info(request) + return self._call_api(**http_info) + + def run_format_converter_invoker(self, request): + http_info = self._run_format_converter_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _run_format_converter_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-common/toolkit/format-converter", + "request_type": request.__class__.__name__, + "response_type": "RunFormatConverterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show3d_structure_content(self, request): """获取生成study作业3D结构的内容 @@ -11332,6 +11757,73 @@ class EiHealthClient(Client): return http_info + def show_clustering_job(self, request): + """查询聚类分析作业详情 + + 查询聚类分析作业详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowClusteringJob + :type request: :class:`huaweicloudsdkeihealth.v1.ShowClusteringJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ShowClusteringJobResponse` + """ + http_info = self._show_clustering_job_http_info(request) + return self._call_api(**http_info) + + def show_clustering_job_invoker(self, request): + http_info = self._show_clustering_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_clustering_job_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/clustering/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowClusteringJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_data(self, request): """获取数据详情 diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/__init__.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/__init__.py index 2ef6b0643..db9331ba6 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/__init__.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/__init__.py @@ -62,6 +62,7 @@ from huaweicloudsdkeihealth.v1.model.batch_update_notice_response import BatchUp from huaweicloudsdkeihealth.v1.model.bind_site_dto import BindSiteDto from huaweicloudsdkeihealth.v1.model.bind_user_rsp import BindUserRsp from huaweicloudsdkeihealth.v1.model.binding_site import BindingSite +from huaweicloudsdkeihealth.v1.model.bound_box_dto import BoundBoxDto from huaweicloudsdkeihealth.v1.model.bounding_box import BoundingBox from huaweicloudsdkeihealth.v1.model.bounding_box_dto import BoundingBoxDto from huaweicloudsdkeihealth.v1.model.bucket_dto import BucketDto @@ -89,12 +90,15 @@ from huaweicloudsdkeihealth.v1.model.clean_nextflow_cache_request import CleanNe from huaweicloudsdkeihealth.v1.model.clean_nextflow_cache_response import CleanNextflowCacheResponse from huaweicloudsdkeihealth.v1.model.clone_data_req import CloneDataReq from huaweicloudsdkeihealth.v1.model.cluster_job_rsp import ClusterJobRsp +from huaweicloudsdkeihealth.v1.model.clustering_drug_file import ClusteringDrugFile +from huaweicloudsdkeihealth.v1.model.clustering_file_source import ClusteringFileSource from huaweicloudsdkeihealth.v1.model.code_verify_req import CodeVerifyReq from huaweicloudsdkeihealth.v1.model.column_type import ColumnType from huaweicloudsdkeihealth.v1.model.column_value_dto import ColumnValueDto from huaweicloudsdkeihealth.v1.model.computing_resource_flavors_rsp import ComputingResourceFlavorsRsp from huaweicloudsdkeihealth.v1.model.computing_resource_rsp import ComputingResourceRsp from huaweicloudsdkeihealth.v1.model.computing_spec_dto import ComputingSpecDto +from huaweicloudsdkeihealth.v1.model.convert_file import ConvertFile from huaweicloudsdkeihealth.v1.model.copy_data_request import CopyDataRequest from huaweicloudsdkeihealth.v1.model.copy_data_response import CopyDataResponse from huaweicloudsdkeihealth.v1.model.cpi_receptor import CpiReceptor @@ -115,6 +119,9 @@ from huaweicloudsdkeihealth.v1.model.create_backup_response import CreateBackupR from huaweicloudsdkeihealth.v1.model.create_cluster_job_req import CreateClusterJobReq from huaweicloudsdkeihealth.v1.model.create_cluster_job_request import CreateClusterJobRequest from huaweicloudsdkeihealth.v1.model.create_cluster_job_response import CreateClusterJobResponse +from huaweicloudsdkeihealth.v1.model.create_clustering_job_req import CreateClusteringJobReq +from huaweicloudsdkeihealth.v1.model.create_clustering_job_request import CreateClusteringJobRequest +from huaweicloudsdkeihealth.v1.model.create_clustering_job_response import CreateClusteringJobResponse from huaweicloudsdkeihealth.v1.model.create_code_request import CreateCodeRequest from huaweicloudsdkeihealth.v1.model.create_code_response import CreateCodeResponse from huaweicloudsdkeihealth.v1.model.create_computing_resource_req import CreateComputingResourceReq @@ -159,6 +166,9 @@ from huaweicloudsdkeihealth.v1.model.create_drug_ligand_svg_request import Creat from huaweicloudsdkeihealth.v1.model.create_drug_ligand_svg_response import CreateDrugLigandSvgResponse from huaweicloudsdkeihealth.v1.model.create_drug_model_request import CreateDrugModelRequest from huaweicloudsdkeihealth.v1.model.create_drug_model_response import CreateDrugModelResponse +from huaweicloudsdkeihealth.v1.model.create_favorite_req import CreateFavoriteReq +from huaweicloudsdkeihealth.v1.model.create_favorite_request import CreateFavoriteRequest +from huaweicloudsdkeihealth.v1.model.create_favorite_response import CreateFavoriteResponse from huaweicloudsdkeihealth.v1.model.create_fep_job_req import CreateFepJobReq from huaweicloudsdkeihealth.v1.model.create_fep_job_request import CreateFepJobRequest from huaweicloudsdkeihealth.v1.model.create_fep_job_response import CreateFepJobResponse @@ -187,6 +197,9 @@ from huaweicloudsdkeihealth.v1.model.create_model_req import CreateModelReq from huaweicloudsdkeihealth.v1.model.create_mol_batch_download_task_req import CreateMolBatchDownloadTaskReq from huaweicloudsdkeihealth.v1.model.create_mol_batch_download_task_request import CreateMolBatchDownloadTaskRequest from huaweicloudsdkeihealth.v1.model.create_mol_batch_download_task_response import CreateMolBatchDownloadTaskResponse +from huaweicloudsdkeihealth.v1.model.create_mol_docking_job_req import CreateMolDockingJobReq +from huaweicloudsdkeihealth.v1.model.create_mol_docking_job_request import CreateMolDockingJobRequest +from huaweicloudsdkeihealth.v1.model.create_mol_docking_job_response import CreateMolDockingJobResponse from huaweicloudsdkeihealth.v1.model.create_nextflow_job_request import CreateNextflowJobRequest from huaweicloudsdkeihealth.v1.model.create_nextflow_job_request_body import CreateNextflowJobRequestBody from huaweicloudsdkeihealth.v1.model.create_nextflow_job_response import CreateNextflowJobResponse @@ -292,6 +305,8 @@ from huaweicloudsdkeihealth.v1.model.delete_drug_ligand_similarity_graph_task_re from huaweicloudsdkeihealth.v1.model.delete_drug_ligand_similarity_graph_task_response import DeleteDrugLigandSimilarityGraphTaskResponse from huaweicloudsdkeihealth.v1.model.delete_drug_model_request import DeleteDrugModelRequest from huaweicloudsdkeihealth.v1.model.delete_drug_model_response import DeleteDrugModelResponse +from huaweicloudsdkeihealth.v1.model.delete_favorite_request import DeleteFavoriteRequest +from huaweicloudsdkeihealth.v1.model.delete_favorite_response import DeleteFavoriteResponse from huaweicloudsdkeihealth.v1.model.delete_image_request import DeleteImageRequest from huaweicloudsdkeihealth.v1.model.delete_image_response import DeleteImageResponse from huaweicloudsdkeihealth.v1.model.delete_instance_request import DeleteInstanceRequest @@ -358,6 +373,7 @@ from huaweicloudsdkeihealth.v1.model.execute_job_response import ExecuteJobRespo from huaweicloudsdkeihealth.v1.model.extremum_dto import ExtremumDto from huaweicloudsdkeihealth.v1.model.failed_reason_record import FailedReasonRecord from huaweicloudsdkeihealth.v1.model.fasta_receptor import FastaReceptor +from huaweicloudsdkeihealth.v1.model.favorite_dto import FavoriteDto from huaweicloudsdkeihealth.v1.model.feature_enum import FeatureEnum from huaweicloudsdkeihealth.v1.model.fep_graph_dto import FepGraphDto from huaweicloudsdkeihealth.v1.model.fep_param_dto import FepParamDto @@ -472,6 +488,8 @@ from huaweicloudsdkeihealth.v1.model.list_drug_job_request import ListDrugJobReq from huaweicloudsdkeihealth.v1.model.list_drug_job_response import ListDrugJobResponse from huaweicloudsdkeihealth.v1.model.list_drug_model_request import ListDrugModelRequest from huaweicloudsdkeihealth.v1.model.list_drug_model_response import ListDrugModelResponse +from huaweicloudsdkeihealth.v1.model.list_favorite_request import ListFavoriteRequest +from huaweicloudsdkeihealth.v1.model.list_favorite_response import ListFavoriteResponse from huaweicloudsdkeihealth.v1.model.list_global_workflow_statistic_request import ListGlobalWorkflowStatisticRequest from huaweicloudsdkeihealth.v1.model.list_global_workflow_statistic_response import ListGlobalWorkflowStatisticResponse from huaweicloudsdkeihealth.v1.model.list_iam_group_users_request import ListIamGroupUsersRequest @@ -647,6 +665,7 @@ from huaweicloudsdkeihealth.v1.model.reboot_node_request import RebootNodeReques from huaweicloudsdkeihealth.v1.model.reboot_node_response import RebootNodeResponse from huaweicloudsdkeihealth.v1.model.receptor_drug_file import ReceptorDrugFile from huaweicloudsdkeihealth.v1.model.receptor_drug_file_req import ReceptorDrugFileReq +from huaweicloudsdkeihealth.v1.model.receptor_dto import ReceptorDto from huaweicloudsdkeihealth.v1.model.receptor_ligand_info_dto import ReceptorLigandInfoDto from huaweicloudsdkeihealth.v1.model.recognize_drug_receptor_pocket_request import RecognizeDrugReceptorPocketRequest from huaweicloudsdkeihealth.v1.model.recognize_drug_receptor_pocket_response import RecognizeDrugReceptorPocketResponse @@ -675,6 +694,9 @@ from huaweicloudsdkeihealth.v1.model.run_drug_receptor_preprocess_response impor from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_req import RunFastaPreprocessReq from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_request import RunFastaPreprocessRequest from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_response import RunFastaPreprocessResponse +from huaweicloudsdkeihealth.v1.model.run_format_converter_req import RunFormatConverterReq +from huaweicloudsdkeihealth.v1.model.run_format_converter_request import RunFormatConverterRequest +from huaweicloudsdkeihealth.v1.model.run_format_converter_response import RunFormatConverterResponse from huaweicloudsdkeihealth.v1.model.run_pocket_req import RunPocketReq from huaweicloudsdkeihealth.v1.model.run_receptor_preprocess_req import RunReceptorPreprocessReq from huaweicloudsdkeihealth.v1.model.run_surface_points_req import RunSurfacePointsReq @@ -708,6 +730,8 @@ from huaweicloudsdkeihealth.v1.model.show_bms_devices_request import ShowBmsDevi from huaweicloudsdkeihealth.v1.model.show_bms_devices_response import ShowBmsDevicesResponse from huaweicloudsdkeihealth.v1.model.show_bucket_storage_request import ShowBucketStorageRequest from huaweicloudsdkeihealth.v1.model.show_bucket_storage_response import ShowBucketStorageResponse +from huaweicloudsdkeihealth.v1.model.show_clustering_job_request import ShowClusteringJobRequest +from huaweicloudsdkeihealth.v1.model.show_clustering_job_response import ShowClusteringJobResponse from huaweicloudsdkeihealth.v1.model.show_cpi_job_request import ShowCpiJobRequest from huaweicloudsdkeihealth.v1.model.show_cpi_job_response import ShowCpiJobResponse from huaweicloudsdkeihealth.v1.model.show_cpi_task_result_request import ShowCpiTaskResultRequest diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/bound_box_dto.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/bound_box_dto.py new file mode 100644 index 000000000..94f8c9406 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/bound_box_dto.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BoundBoxDto: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'center': 'list[float]', + 'size': 'list[float]', + 'padding': 'float' + } + + attribute_map = { + 'center': 'center', + 'size': 'size', + 'padding': 'padding' + } + + def __init__(self, center=None, size=None, padding=None): + """BoundBoxDto + + The model defined in huaweicloud sdk + + :param center: 口袋中心坐标,x、y、z轴的坐标。 + :type center: list[float] + :param size: 口袋尺寸大小,x、y、z轴的大小。 + :type size: list[float] + :param padding: 填充。 + :type padding: float + """ + + + + self._center = None + self._size = None + self._padding = None + self.discriminator = None + + self.center = center + self.size = size + if padding is not None: + self.padding = padding + + @property + def center(self): + """Gets the center of this BoundBoxDto. + + 口袋中心坐标,x、y、z轴的坐标。 + + :return: The center of this BoundBoxDto. + :rtype: list[float] + """ + return self._center + + @center.setter + def center(self, center): + """Sets the center of this BoundBoxDto. + + 口袋中心坐标,x、y、z轴的坐标。 + + :param center: The center of this BoundBoxDto. + :type center: list[float] + """ + self._center = center + + @property + def size(self): + """Gets the size of this BoundBoxDto. + + 口袋尺寸大小,x、y、z轴的大小。 + + :return: The size of this BoundBoxDto. + :rtype: list[float] + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this BoundBoxDto. + + 口袋尺寸大小,x、y、z轴的大小。 + + :param size: The size of this BoundBoxDto. + :type size: list[float] + """ + self._size = size + + @property + def padding(self): + """Gets the padding of this BoundBoxDto. + + 填充。 + + :return: The padding of this BoundBoxDto. + :rtype: float + """ + return self._padding + + @padding.setter + def padding(self, padding): + """Sets the padding of this BoundBoxDto. + + 填充。 + + :param padding: The padding of this BoundBoxDto. + :type padding: float + """ + self._padding = padding + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BoundBoxDto): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/clustering_drug_file.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/clustering_drug_file.py new file mode 100644 index 000000000..ffd148460 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/clustering_drug_file.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusteringDrugFile: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'source': 'ClusteringFileSource', + 'url': 'str', + 'format': 'str', + 'data': 'str' + } + + attribute_map = { + 'source': 'source', + 'url': 'url', + 'format': 'format', + 'data': 'data' + } + + def __init__(self, source=None, url=None, format=None, data=None): + """ClusteringDrugFile + + The model defined in huaweicloud sdk + + :param source: + :type source: :class:`huaweicloudsdkeihealth.v1.ClusteringFileSource` + :param url: 文件URL,当数据源为用户私有数据中心为项目路径,为公共数据场景时为obs地址。 + :type url: str + :param format: 文件格式,支持SMI,仅数据源为RAW时提供。 + :type format: str + :param data: 文件原始数据,仅数据源为RAW时提供。 + :type data: str + """ + + + + self._source = None + self._url = None + self._format = None + self._data = None + self.discriminator = None + + self.source = source + if url is not None: + self.url = url + if format is not None: + self.format = format + if data is not None: + self.data = data + + @property + def source(self): + """Gets the source of this ClusteringDrugFile. + + :return: The source of this ClusteringDrugFile. + :rtype: :class:`huaweicloudsdkeihealth.v1.ClusteringFileSource` + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this ClusteringDrugFile. + + :param source: The source of this ClusteringDrugFile. + :type source: :class:`huaweicloudsdkeihealth.v1.ClusteringFileSource` + """ + self._source = source + + @property + def url(self): + """Gets the url of this ClusteringDrugFile. + + 文件URL,当数据源为用户私有数据中心为项目路径,为公共数据场景时为obs地址。 + + :return: The url of this ClusteringDrugFile. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ClusteringDrugFile. + + 文件URL,当数据源为用户私有数据中心为项目路径,为公共数据场景时为obs地址。 + + :param url: The url of this ClusteringDrugFile. + :type url: str + """ + self._url = url + + @property + def format(self): + """Gets the format of this ClusteringDrugFile. + + 文件格式,支持SMI,仅数据源为RAW时提供。 + + :return: The format of this ClusteringDrugFile. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this ClusteringDrugFile. + + 文件格式,支持SMI,仅数据源为RAW时提供。 + + :param format: The format of this ClusteringDrugFile. + :type format: str + """ + self._format = format + + @property + def data(self): + """Gets the data of this ClusteringDrugFile. + + 文件原始数据,仅数据源为RAW时提供。 + + :return: The data of this ClusteringDrugFile. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ClusteringDrugFile. + + 文件原始数据,仅数据源为RAW时提供。 + + :param data: The data of this ClusteringDrugFile. + :type data: str + """ + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ClusteringDrugFile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/clustering_file_source.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/clustering_file_source.py new file mode 100644 index 000000000..7314e8c01 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/clustering_file_source.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusteringFileSource: + """ + allowed enum values + """ + PRIVATE = "PRIVATE" + PUBLIC = "PUBLIC" + RAW = "RAW" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """ClusteringFileSource + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ClusteringFileSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/convert_file.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/convert_file.py new file mode 100644 index 000000000..909f67e37 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/convert_file.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConvertFile: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'source': 'DrugFileSource', + 'url': 'str', + 'format': 'str', + 'data': 'str' + } + + attribute_map = { + 'source': 'source', + 'url': 'url', + 'format': 'format', + 'data': 'data' + } + + def __init__(self, source=None, url=None, format=None, data=None): + """ConvertFile + + The model defined in huaweicloud sdk + + :param source: + :type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource` + :param url: 文件URL,当数据源为外部网络数据时为https地址,为用户私有数据中心时为项目路径,为公共数据场景时为obs地址。 + :type url: str + :param format: 文件格式,仅支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供。 + :type format: str + :param data: 文件原始数据,仅数据源为RAW时提供。 + :type data: str + """ + + + + self._source = None + self._url = None + self._format = None + self._data = None + self.discriminator = None + + self.source = source + if url is not None: + self.url = url + if format is not None: + self.format = format + if data is not None: + self.data = data + + @property + def source(self): + """Gets the source of this ConvertFile. + + :return: The source of this ConvertFile. + :rtype: :class:`huaweicloudsdkeihealth.v1.DrugFileSource` + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this ConvertFile. + + :param source: The source of this ConvertFile. + :type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource` + """ + self._source = source + + @property + def url(self): + """Gets the url of this ConvertFile. + + 文件URL,当数据源为外部网络数据时为https地址,为用户私有数据中心时为项目路径,为公共数据场景时为obs地址。 + + :return: The url of this ConvertFile. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ConvertFile. + + 文件URL,当数据源为外部网络数据时为https地址,为用户私有数据中心时为项目路径,为公共数据场景时为obs地址。 + + :param url: The url of this ConvertFile. + :type url: str + """ + self._url = url + + @property + def format(self): + """Gets the format of this ConvertFile. + + 文件格式,仅支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供。 + + :return: The format of this ConvertFile. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this ConvertFile. + + 文件格式,仅支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供。 + + :param format: The format of this ConvertFile. + :type format: str + """ + self._format = format + + @property + def data(self): + """Gets the data of this ConvertFile. + + 文件原始数据,仅数据源为RAW时提供。 + + :return: The data of this ConvertFile. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ConvertFile. + + 文件原始数据,仅数据源为RAW时提供。 + + :param data: The data of this ConvertFile. + :type data: str + """ + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConvertFile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_clustering_job_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_clustering_job_req.py new file mode 100644 index 000000000..7efae3716 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_clustering_job_req.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusteringJobReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'basic_info': 'CreateDrugJobBasicInfo', + 'file': 'ClusteringDrugFile' + } + + attribute_map = { + 'basic_info': 'basic_info', + 'file': 'file' + } + + def __init__(self, basic_info=None, file=None): + """CreateClusteringJobReq + + The model defined in huaweicloud sdk + + :param basic_info: + :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + :param file: + :type file: :class:`huaweicloudsdkeihealth.v1.ClusteringDrugFile` + """ + + + + self._basic_info = None + self._file = None + self.discriminator = None + + self.basic_info = basic_info + self.file = file + + @property + def basic_info(self): + """Gets the basic_info of this CreateClusteringJobReq. + + :return: The basic_info of this CreateClusteringJobReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + """ + return self._basic_info + + @basic_info.setter + def basic_info(self, basic_info): + """Sets the basic_info of this CreateClusteringJobReq. + + :param basic_info: The basic_info of this CreateClusteringJobReq. + :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + """ + self._basic_info = basic_info + + @property + def file(self): + """Gets the file of this CreateClusteringJobReq. + + :return: The file of this CreateClusteringJobReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.ClusteringDrugFile` + """ + return self._file + + @file.setter + def file(self, file): + """Sets the file of this CreateClusteringJobReq. + + :param file: The file of this CreateClusteringJobReq. + :type file: :class:`huaweicloudsdkeihealth.v1.ClusteringDrugFile` + """ + self._file = file + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusteringJobReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_clustering_job_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_clustering_job_request.py new file mode 100644 index 000000000..3050e945b --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_clustering_job_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusteringJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'body': 'CreateClusteringJobReq' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'body': 'body' + } + + def __init__(self, eihealth_project_id=None, body=None): + """CreateClusteringJobRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID。 + :type eihealth_project_id: str + :param body: Body of the CreateClusteringJobRequest + :type body: :class:`huaweicloudsdkeihealth.v1.CreateClusteringJobReq` + """ + + + + self._eihealth_project_id = None + self._body = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + if body is not None: + self.body = body + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this CreateClusteringJobRequest. + + 平台项目ID。 + + :return: The eihealth_project_id of this CreateClusteringJobRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this CreateClusteringJobRequest. + + 平台项目ID。 + + :param eihealth_project_id: The eihealth_project_id of this CreateClusteringJobRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def body(self): + """Gets the body of this CreateClusteringJobRequest. + + :return: The body of this CreateClusteringJobRequest. + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateClusteringJobReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateClusteringJobRequest. + + :param body: The body of this CreateClusteringJobRequest. + :type body: :class:`huaweicloudsdkeihealth.v1.CreateClusteringJobReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusteringJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_clustering_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_clustering_job_response.py new file mode 100644 index 000000000..207062a6a --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_clustering_job_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusteringJobResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'limit_concurrency': 'int' + } + + attribute_map = { + 'id': 'id', + 'limit_concurrency': 'limit_concurrency' + } + + def __init__(self, id=None, limit_concurrency=None): + """CreateClusteringJobResponse + + The model defined in huaweicloud sdk + + :param id: 作业id + :type id: str + :param limit_concurrency: 限制的并发量 + :type limit_concurrency: int + """ + + super(CreateClusteringJobResponse, self).__init__() + + self._id = None + self._limit_concurrency = None + self.discriminator = None + + if id is not None: + self.id = id + if limit_concurrency is not None: + self.limit_concurrency = limit_concurrency + + @property + def id(self): + """Gets the id of this CreateClusteringJobResponse. + + 作业id + + :return: The id of this CreateClusteringJobResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateClusteringJobResponse. + + 作业id + + :param id: The id of this CreateClusteringJobResponse. + :type id: str + """ + self._id = id + + @property + def limit_concurrency(self): + """Gets the limit_concurrency of this CreateClusteringJobResponse. + + 限制的并发量 + + :return: The limit_concurrency of this CreateClusteringJobResponse. + :rtype: int + """ + return self._limit_concurrency + + @limit_concurrency.setter + def limit_concurrency(self, limit_concurrency): + """Sets the limit_concurrency of this CreateClusteringJobResponse. + + 限制的并发量 + + :param limit_concurrency: The limit_concurrency of this CreateClusteringJobResponse. + :type limit_concurrency: int + """ + self._limit_concurrency = limit_concurrency + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusteringJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_favorite_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_favorite_req.py new file mode 100644 index 000000000..84bd05533 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_favorite_req.py @@ -0,0 +1,254 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFavoriteReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'type': 'str', + 'resource_id': 'str', + 'resource_name': 'str', + 'resource_type': 'str', + 'display_info': 'str', + 'location_info': 'str' + } + + attribute_map = { + 'type': 'type', + 'resource_id': 'resource_id', + 'resource_name': 'resource_name', + 'resource_type': 'resource_type', + 'display_info': 'display_info', + 'location_info': 'location_info' + } + + def __init__(self, type=None, resource_id=None, resource_name=None, resource_type=None, display_info=None, location_info=None): + """CreateFavoriteReq + + The model defined in huaweicloud sdk + + :param type: 收藏类型。 + :type type: str + :param resource_id: 收藏的资源ID。 + :type resource_id: str + :param resource_name: 收藏的资源名称,正则匹配中文,英文字母和数字及下划线。 + :type resource_name: str + :param resource_type: 收藏的资源类型,正则匹配英文字母和数字及下划线。 + :type resource_type: str + :param display_info: 展示信息。 + :type display_info: str + :param location_info: 定位信息。 + :type location_info: str + """ + + + + self._type = None + self._resource_id = None + self._resource_name = None + self._resource_type = None + self._display_info = None + self._location_info = None + self.discriminator = None + + self.type = type + self.resource_id = resource_id + self.resource_name = resource_name + self.resource_type = resource_type + self.display_info = display_info + self.location_info = location_info + + @property + def type(self): + """Gets the type of this CreateFavoriteReq. + + 收藏类型。 + + :return: The type of this CreateFavoriteReq. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateFavoriteReq. + + 收藏类型。 + + :param type: The type of this CreateFavoriteReq. + :type type: str + """ + self._type = type + + @property + def resource_id(self): + """Gets the resource_id of this CreateFavoriteReq. + + 收藏的资源ID。 + + :return: The resource_id of this CreateFavoriteReq. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this CreateFavoriteReq. + + 收藏的资源ID。 + + :param resource_id: The resource_id of this CreateFavoriteReq. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def resource_name(self): + """Gets the resource_name of this CreateFavoriteReq. + + 收藏的资源名称,正则匹配中文,英文字母和数字及下划线。 + + :return: The resource_name of this CreateFavoriteReq. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Sets the resource_name of this CreateFavoriteReq. + + 收藏的资源名称,正则匹配中文,英文字母和数字及下划线。 + + :param resource_name: The resource_name of this CreateFavoriteReq. + :type resource_name: str + """ + self._resource_name = resource_name + + @property + def resource_type(self): + """Gets the resource_type of this CreateFavoriteReq. + + 收藏的资源类型,正则匹配英文字母和数字及下划线。 + + :return: The resource_type of this CreateFavoriteReq. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this CreateFavoriteReq. + + 收藏的资源类型,正则匹配英文字母和数字及下划线。 + + :param resource_type: The resource_type of this CreateFavoriteReq. + :type resource_type: str + """ + self._resource_type = resource_type + + @property + def display_info(self): + """Gets the display_info of this CreateFavoriteReq. + + 展示信息。 + + :return: The display_info of this CreateFavoriteReq. + :rtype: str + """ + return self._display_info + + @display_info.setter + def display_info(self, display_info): + """Sets the display_info of this CreateFavoriteReq. + + 展示信息。 + + :param display_info: The display_info of this CreateFavoriteReq. + :type display_info: str + """ + self._display_info = display_info + + @property + def location_info(self): + """Gets the location_info of this CreateFavoriteReq. + + 定位信息。 + + :return: The location_info of this CreateFavoriteReq. + :rtype: str + """ + return self._location_info + + @location_info.setter + def location_info(self, location_info): + """Sets the location_info of this CreateFavoriteReq. + + 定位信息。 + + :param location_info: The location_info of this CreateFavoriteReq. + :type location_info: str + """ + self._location_info = location_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateFavoriteReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_favorite_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_favorite_request.py new file mode 100644 index 000000000..58fa11c8e --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_favorite_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFavoriteRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'body': 'CreateFavoriteReq' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'body': 'body' + } + + def __init__(self, eihealth_project_id=None, body=None): + """CreateFavoriteRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。 + :type eihealth_project_id: str + :param body: Body of the CreateFavoriteRequest + :type body: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteReq` + """ + + + + self._eihealth_project_id = None + self._body = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + if body is not None: + self.body = body + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this CreateFavoriteRequest. + + 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。 + + :return: The eihealth_project_id of this CreateFavoriteRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this CreateFavoriteRequest. + + 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。 + + :param eihealth_project_id: The eihealth_project_id of this CreateFavoriteRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def body(self): + """Gets the body of this CreateFavoriteRequest. + + :return: The body of this CreateFavoriteRequest. + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateFavoriteRequest. + + :param body: The body of this CreateFavoriteRequest. + :type body: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateFavoriteRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_favorite_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_favorite_response.py new file mode 100644 index 000000000..d4c6dc72e --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_favorite_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFavoriteResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): + """CreateFavoriteResponse + + The model defined in huaweicloud sdk + + :param id: 收藏记录ID。 + :type id: str + """ + + super(CreateFavoriteResponse, self).__init__() + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this CreateFavoriteResponse. + + 收藏记录ID。 + + :return: The id of this CreateFavoriteResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateFavoriteResponse. + + 收藏记录ID。 + + :param id: The id of this CreateFavoriteResponse. + :type id: str + """ + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateFavoriteResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_mol_docking_job_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_mol_docking_job_req.py new file mode 100644 index 000000000..396a11009 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_mol_docking_job_req.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateMolDockingJobReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'receptor': 'ReceptorDto', + 'ligand': 'DrugFile', + 'engine': 'str' + } + + attribute_map = { + 'receptor': 'receptor', + 'ligand': 'ligand', + 'engine': 'engine' + } + + def __init__(self, receptor=None, ligand=None, engine=None): + """CreateMolDockingJobReq + + The model defined in huaweicloud sdk + + :param receptor: + :type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDto` + :param ligand: + :type ligand: :class:`huaweicloudsdkeihealth.v1.DrugFile` + :param engine: 引擎,默认为AUTODOCK_VINA。 + :type engine: str + """ + + + + self._receptor = None + self._ligand = None + self._engine = None + self.discriminator = None + + self.receptor = receptor + self.ligand = ligand + if engine is not None: + self.engine = engine + + @property + def receptor(self): + """Gets the receptor of this CreateMolDockingJobReq. + + :return: The receptor of this CreateMolDockingJobReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.ReceptorDto` + """ + return self._receptor + + @receptor.setter + def receptor(self, receptor): + """Sets the receptor of this CreateMolDockingJobReq. + + :param receptor: The receptor of this CreateMolDockingJobReq. + :type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDto` + """ + self._receptor = receptor + + @property + def ligand(self): + """Gets the ligand of this CreateMolDockingJobReq. + + :return: The ligand of this CreateMolDockingJobReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.DrugFile` + """ + return self._ligand + + @ligand.setter + def ligand(self, ligand): + """Sets the ligand of this CreateMolDockingJobReq. + + :param ligand: The ligand of this CreateMolDockingJobReq. + :type ligand: :class:`huaweicloudsdkeihealth.v1.DrugFile` + """ + self._ligand = ligand + + @property + def engine(self): + """Gets the engine of this CreateMolDockingJobReq. + + 引擎,默认为AUTODOCK_VINA。 + + :return: The engine of this CreateMolDockingJobReq. + :rtype: str + """ + return self._engine + + @engine.setter + def engine(self, engine): + """Sets the engine of this CreateMolDockingJobReq. + + 引擎,默认为AUTODOCK_VINA。 + + :param engine: The engine of this CreateMolDockingJobReq. + :type engine: str + """ + self._engine = engine + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateMolDockingJobReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_mol_docking_job_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_mol_docking_job_request.py new file mode 100644 index 000000000..12e537bd9 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_mol_docking_job_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateMolDockingJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'body': 'CreateMolDockingJobReq' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'body': 'body' + } + + def __init__(self, eihealth_project_id=None, body=None): + """CreateMolDockingJobRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID。 + :type eihealth_project_id: str + :param body: Body of the CreateMolDockingJobRequest + :type body: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobReq` + """ + + + + self._eihealth_project_id = None + self._body = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + if body is not None: + self.body = body + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this CreateMolDockingJobRequest. + + 平台项目ID。 + + :return: The eihealth_project_id of this CreateMolDockingJobRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this CreateMolDockingJobRequest. + + 平台项目ID。 + + :param eihealth_project_id: The eihealth_project_id of this CreateMolDockingJobRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def body(self): + """Gets the body of this CreateMolDockingJobRequest. + + :return: The body of this CreateMolDockingJobRequest. + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateMolDockingJobRequest. + + :param body: The body of this CreateMolDockingJobRequest. + :type body: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateMolDockingJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_mol_docking_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_mol_docking_job_response.py new file mode 100644 index 000000000..e52420a7b --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_mol_docking_job_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateMolDockingJobResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vina_score': 'float', + 'pose': 'str' + } + + attribute_map = { + 'vina_score': 'vina_score', + 'pose': 'pose' + } + + def __init__(self, vina_score=None, pose=None): + """CreateMolDockingJobResponse + + The model defined in huaweicloud sdk + + :param vina_score: 对接打分结果。 + :type vina_score: float + :param pose: 对接构象。 + :type pose: str + """ + + super(CreateMolDockingJobResponse, self).__init__() + + self._vina_score = None + self._pose = None + self.discriminator = None + + if vina_score is not None: + self.vina_score = vina_score + if pose is not None: + self.pose = pose + + @property + def vina_score(self): + """Gets the vina_score of this CreateMolDockingJobResponse. + + 对接打分结果。 + + :return: The vina_score of this CreateMolDockingJobResponse. + :rtype: float + """ + return self._vina_score + + @vina_score.setter + def vina_score(self, vina_score): + """Sets the vina_score of this CreateMolDockingJobResponse. + + 对接打分结果。 + + :param vina_score: The vina_score of this CreateMolDockingJobResponse. + :type vina_score: float + """ + self._vina_score = vina_score + + @property + def pose(self): + """Gets the pose of this CreateMolDockingJobResponse. + + 对接构象。 + + :return: The pose of this CreateMolDockingJobResponse. + :rtype: str + """ + return self._pose + + @pose.setter + def pose(self, pose): + """Sets the pose of this CreateMolDockingJobResponse. + + 对接构象。 + + :param pose: The pose of this CreateMolDockingJobResponse. + :type pose: str + """ + self._pose = pose + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateMolDockingJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/delete_favorite_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/delete_favorite_request.py new file mode 100644 index 000000000..0231161bc --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/delete_favorite_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteFavoriteRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'favorite_id': 'str' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'favorite_id': 'favorite_id' + } + + def __init__(self, eihealth_project_id=None, favorite_id=None): + """DeleteFavoriteRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。 + :type eihealth_project_id: str + :param favorite_id: 收藏ID。 + :type favorite_id: str + """ + + + + self._eihealth_project_id = None + self._favorite_id = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + self.favorite_id = favorite_id + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this DeleteFavoriteRequest. + + 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。 + + :return: The eihealth_project_id of this DeleteFavoriteRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this DeleteFavoriteRequest. + + 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。 + + :param eihealth_project_id: The eihealth_project_id of this DeleteFavoriteRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def favorite_id(self): + """Gets the favorite_id of this DeleteFavoriteRequest. + + 收藏ID。 + + :return: The favorite_id of this DeleteFavoriteRequest. + :rtype: str + """ + return self._favorite_id + + @favorite_id.setter + def favorite_id(self, favorite_id): + """Sets the favorite_id of this DeleteFavoriteRequest. + + 收藏ID。 + + :param favorite_id: The favorite_id of this DeleteFavoriteRequest. + :type favorite_id: str + """ + self._favorite_id = favorite_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteFavoriteRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/delete_favorite_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/delete_favorite_response.py new file mode 100644 index 000000000..53050b880 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/delete_favorite_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteFavoriteResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """DeleteFavoriteResponse + + The model defined in huaweicloud sdk + + """ + + super(DeleteFavoriteResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteFavoriteResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/favorite_dto.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/favorite_dto.py new file mode 100644 index 000000000..60be733f9 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/favorite_dto.py @@ -0,0 +1,376 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FavoriteDto: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'type': 'str', + 'user_id': 'str', + 'user_name': 'str', + 'create_time': 'str', + 'resource_id': 'str', + 'resource_name': 'str', + 'resource_type': 'str', + 'display_info': 'str', + 'location_info': 'str' + } + + attribute_map = { + 'id': 'id', + 'type': 'type', + 'user_id': 'user_id', + 'user_name': 'user_name', + 'create_time': 'create_time', + 'resource_id': 'resource_id', + 'resource_name': 'resource_name', + 'resource_type': 'resource_type', + 'display_info': 'display_info', + 'location_info': 'location_info' + } + + def __init__(self, id=None, type=None, user_id=None, user_name=None, create_time=None, resource_id=None, resource_name=None, resource_type=None, display_info=None, location_info=None): + """FavoriteDto + + The model defined in huaweicloud sdk + + :param id: 收藏ID。 + :type id: str + :param type: 收藏类型。 + :type type: str + :param user_id: 收藏者的用户ID。 + :type user_id: str + :param user_name: 收藏者的用户名称。 + :type user_name: str + :param create_time: 收藏时间。 + :type create_time: str + :param resource_id: 资源ID。 + :type resource_id: str + :param resource_name: 资源名称。 + :type resource_name: str + :param resource_type: 资源类型。 + :type resource_type: str + :param display_info: 展示信息。 + :type display_info: str + :param location_info: 定位信息。 + :type location_info: str + """ + + + + self._id = None + self._type = None + self._user_id = None + self._user_name = None + self._create_time = None + self._resource_id = None + self._resource_name = None + self._resource_type = None + self._display_info = None + self._location_info = None + self.discriminator = None + + if id is not None: + self.id = id + if type is not None: + self.type = type + if user_id is not None: + self.user_id = user_id + if user_name is not None: + self.user_name = user_name + if create_time is not None: + self.create_time = create_time + if resource_id is not None: + self.resource_id = resource_id + if resource_name is not None: + self.resource_name = resource_name + if resource_type is not None: + self.resource_type = resource_type + if display_info is not None: + self.display_info = display_info + if location_info is not None: + self.location_info = location_info + + @property + def id(self): + """Gets the id of this FavoriteDto. + + 收藏ID。 + + :return: The id of this FavoriteDto. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FavoriteDto. + + 收藏ID。 + + :param id: The id of this FavoriteDto. + :type id: str + """ + self._id = id + + @property + def type(self): + """Gets the type of this FavoriteDto. + + 收藏类型。 + + :return: The type of this FavoriteDto. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this FavoriteDto. + + 收藏类型。 + + :param type: The type of this FavoriteDto. + :type type: str + """ + self._type = type + + @property + def user_id(self): + """Gets the user_id of this FavoriteDto. + + 收藏者的用户ID。 + + :return: The user_id of this FavoriteDto. + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this FavoriteDto. + + 收藏者的用户ID。 + + :param user_id: The user_id of this FavoriteDto. + :type user_id: str + """ + self._user_id = user_id + + @property + def user_name(self): + """Gets the user_name of this FavoriteDto. + + 收藏者的用户名称。 + + :return: The user_name of this FavoriteDto. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """Sets the user_name of this FavoriteDto. + + 收藏者的用户名称。 + + :param user_name: The user_name of this FavoriteDto. + :type user_name: str + """ + self._user_name = user_name + + @property + def create_time(self): + """Gets the create_time of this FavoriteDto. + + 收藏时间。 + + :return: The create_time of this FavoriteDto. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this FavoriteDto. + + 收藏时间。 + + :param create_time: The create_time of this FavoriteDto. + :type create_time: str + """ + self._create_time = create_time + + @property + def resource_id(self): + """Gets the resource_id of this FavoriteDto. + + 资源ID。 + + :return: The resource_id of this FavoriteDto. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this FavoriteDto. + + 资源ID。 + + :param resource_id: The resource_id of this FavoriteDto. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def resource_name(self): + """Gets the resource_name of this FavoriteDto. + + 资源名称。 + + :return: The resource_name of this FavoriteDto. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Sets the resource_name of this FavoriteDto. + + 资源名称。 + + :param resource_name: The resource_name of this FavoriteDto. + :type resource_name: str + """ + self._resource_name = resource_name + + @property + def resource_type(self): + """Gets the resource_type of this FavoriteDto. + + 资源类型。 + + :return: The resource_type of this FavoriteDto. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this FavoriteDto. + + 资源类型。 + + :param resource_type: The resource_type of this FavoriteDto. + :type resource_type: str + """ + self._resource_type = resource_type + + @property + def display_info(self): + """Gets the display_info of this FavoriteDto. + + 展示信息。 + + :return: The display_info of this FavoriteDto. + :rtype: str + """ + return self._display_info + + @display_info.setter + def display_info(self, display_info): + """Sets the display_info of this FavoriteDto. + + 展示信息。 + + :param display_info: The display_info of this FavoriteDto. + :type display_info: str + """ + self._display_info = display_info + + @property + def location_info(self): + """Gets the location_info of this FavoriteDto. + + 定位信息。 + + :return: The location_info of this FavoriteDto. + :rtype: str + """ + return self._location_info + + @location_info.setter + def location_info(self, location_info): + """Sets the location_info of this FavoriteDto. + + 定位信息。 + + :param location_info: The location_info of this FavoriteDto. + :type location_info: str + """ + self._location_info = location_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FavoriteDto): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_favorite_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_favorite_request.py new file mode 100644 index 000000000..e8dbe834f --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_favorite_request.py @@ -0,0 +1,433 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFavoriteRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'resource_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'user_name_list': 'list[str]', + 'resource_type_list': 'list[str]', + 'type_list': 'list[str]', + 'start_time': 'int', + 'end_time': 'int', + 'key_word': 'str', + 'sort_dir': 'str', + 'sort_key': 'str' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'resource_id': 'resource_id', + 'offset': 'offset', + 'limit': 'limit', + 'user_name_list': 'user_name_list', + 'resource_type_list': 'resource_type_list', + 'type_list': 'type_list', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'key_word': 'key_word', + 'sort_dir': 'sort_dir', + 'sort_key': 'sort_key' + } + + def __init__(self, eihealth_project_id=None, resource_id=None, offset=None, limit=None, user_name_list=None, resource_type_list=None, type_list=None, start_time=None, end_time=None, key_word=None, sort_dir=None, sort_key=None): + """ListFavoriteRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。 + :type eihealth_project_id: str + :param resource_id: 资源ID。 + :type resource_id: str + :param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。 + :type offset: int + :param limit: 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。 + :type limit: int + :param user_name_list: 收藏人名称列表。 + :type user_name_list: list[str] + :param resource_type_list: 资源类型列表。 + :type resource_type_list: list[str] + :param type_list: 收藏类型列表,支持MICROMOLECULE|PROTEIN。 + :type type_list: list[str] + :param start_time: 查询收藏信息的起始时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。 + :type start_time: int + :param end_time: 查询收藏信息的结束时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。 + :type end_time: int + :param key_word: 关键字,支持在display_info字段中内容的模糊搜索。 + :type key_word: str + :param sort_dir: 排序规则,目前默认时间降序。 + :type sort_dir: str + :param sort_key: 排序规则,目前默认按收藏时间降序,支持根据create_time|user_name|resource_name|resource_type排序。 + :type sort_key: str + """ + + + + self._eihealth_project_id = None + self._resource_id = None + self._offset = None + self._limit = None + self._user_name_list = None + self._resource_type_list = None + self._type_list = None + self._start_time = None + self._end_time = None + self._key_word = None + self._sort_dir = None + self._sort_key = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + if resource_id is not None: + self.resource_id = resource_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if user_name_list is not None: + self.user_name_list = user_name_list + if resource_type_list is not None: + self.resource_type_list = resource_type_list + if type_list is not None: + self.type_list = type_list + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if key_word is not None: + self.key_word = key_word + if sort_dir is not None: + self.sort_dir = sort_dir + if sort_key is not None: + self.sort_key = sort_key + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this ListFavoriteRequest. + + 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。 + + :return: The eihealth_project_id of this ListFavoriteRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this ListFavoriteRequest. + + 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。 + + :param eihealth_project_id: The eihealth_project_id of this ListFavoriteRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def resource_id(self): + """Gets the resource_id of this ListFavoriteRequest. + + 资源ID。 + + :return: The resource_id of this ListFavoriteRequest. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this ListFavoriteRequest. + + 资源ID。 + + :param resource_id: The resource_id of this ListFavoriteRequest. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def offset(self): + """Gets the offset of this ListFavoriteRequest. + + 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。 + + :return: The offset of this ListFavoriteRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListFavoriteRequest. + + 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。 + + :param offset: The offset of this ListFavoriteRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListFavoriteRequest. + + 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。 + + :return: The limit of this ListFavoriteRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListFavoriteRequest. + + 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。 + + :param limit: The limit of this ListFavoriteRequest. + :type limit: int + """ + self._limit = limit + + @property + def user_name_list(self): + """Gets the user_name_list of this ListFavoriteRequest. + + 收藏人名称列表。 + + :return: The user_name_list of this ListFavoriteRequest. + :rtype: list[str] + """ + return self._user_name_list + + @user_name_list.setter + def user_name_list(self, user_name_list): + """Sets the user_name_list of this ListFavoriteRequest. + + 收藏人名称列表。 + + :param user_name_list: The user_name_list of this ListFavoriteRequest. + :type user_name_list: list[str] + """ + self._user_name_list = user_name_list + + @property + def resource_type_list(self): + """Gets the resource_type_list of this ListFavoriteRequest. + + 资源类型列表。 + + :return: The resource_type_list of this ListFavoriteRequest. + :rtype: list[str] + """ + return self._resource_type_list + + @resource_type_list.setter + def resource_type_list(self, resource_type_list): + """Sets the resource_type_list of this ListFavoriteRequest. + + 资源类型列表。 + + :param resource_type_list: The resource_type_list of this ListFavoriteRequest. + :type resource_type_list: list[str] + """ + self._resource_type_list = resource_type_list + + @property + def type_list(self): + """Gets the type_list of this ListFavoriteRequest. + + 收藏类型列表,支持MICROMOLECULE|PROTEIN。 + + :return: The type_list of this ListFavoriteRequest. + :rtype: list[str] + """ + return self._type_list + + @type_list.setter + def type_list(self, type_list): + """Sets the type_list of this ListFavoriteRequest. + + 收藏类型列表,支持MICROMOLECULE|PROTEIN。 + + :param type_list: The type_list of this ListFavoriteRequest. + :type type_list: list[str] + """ + self._type_list = type_list + + @property + def start_time(self): + """Gets the start_time of this ListFavoriteRequest. + + 查询收藏信息的起始时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。 + + :return: The start_time of this ListFavoriteRequest. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListFavoriteRequest. + + 查询收藏信息的起始时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。 + + :param start_time: The start_time of this ListFavoriteRequest. + :type start_time: int + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListFavoriteRequest. + + 查询收藏信息的结束时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。 + + :return: The end_time of this ListFavoriteRequest. + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListFavoriteRequest. + + 查询收藏信息的结束时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。 + + :param end_time: The end_time of this ListFavoriteRequest. + :type end_time: int + """ + self._end_time = end_time + + @property + def key_word(self): + """Gets the key_word of this ListFavoriteRequest. + + 关键字,支持在display_info字段中内容的模糊搜索。 + + :return: The key_word of this ListFavoriteRequest. + :rtype: str + """ + return self._key_word + + @key_word.setter + def key_word(self, key_word): + """Sets the key_word of this ListFavoriteRequest. + + 关键字,支持在display_info字段中内容的模糊搜索。 + + :param key_word: The key_word of this ListFavoriteRequest. + :type key_word: str + """ + self._key_word = key_word + + @property + def sort_dir(self): + """Gets the sort_dir of this ListFavoriteRequest. + + 排序规则,目前默认时间降序。 + + :return: The sort_dir of this ListFavoriteRequest. + :rtype: str + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ListFavoriteRequest. + + 排序规则,目前默认时间降序。 + + :param sort_dir: The sort_dir of this ListFavoriteRequest. + :type sort_dir: str + """ + self._sort_dir = sort_dir + + @property + def sort_key(self): + """Gets the sort_key of this ListFavoriteRequest. + + 排序规则,目前默认按收藏时间降序,支持根据create_time|user_name|resource_name|resource_type排序。 + + :return: The sort_key of this ListFavoriteRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ListFavoriteRequest. + + 排序规则,目前默认按收藏时间降序,支持根据create_time|user_name|resource_name|resource_type排序。 + + :param sort_key: The sort_key of this ListFavoriteRequest. + :type sort_key: str + """ + self._sort_key = sort_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFavoriteRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_favorite_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_favorite_response.py new file mode 100644 index 000000000..769608436 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_favorite_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFavoriteResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'favorites': 'list[FavoriteDto]', + 'count': 'int' + } + + attribute_map = { + 'favorites': 'favorites', + 'count': 'count' + } + + def __init__(self, favorites=None, count=None): + """ListFavoriteResponse + + The model defined in huaweicloud sdk + + :param favorites: 收藏列表。 + :type favorites: list[:class:`huaweicloudsdkeihealth.v1.FavoriteDto`] + :param count: 收藏总数。 + :type count: int + """ + + super(ListFavoriteResponse, self).__init__() + + self._favorites = None + self._count = None + self.discriminator = None + + if favorites is not None: + self.favorites = favorites + if count is not None: + self.count = count + + @property + def favorites(self): + """Gets the favorites of this ListFavoriteResponse. + + 收藏列表。 + + :return: The favorites of this ListFavoriteResponse. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.FavoriteDto`] + """ + return self._favorites + + @favorites.setter + def favorites(self, favorites): + """Sets the favorites of this ListFavoriteResponse. + + 收藏列表。 + + :param favorites: The favorites of this ListFavoriteResponse. + :type favorites: list[:class:`huaweicloudsdkeihealth.v1.FavoriteDto`] + """ + self._favorites = favorites + + @property + def count(self): + """Gets the count of this ListFavoriteResponse. + + 收藏总数。 + + :return: The count of this ListFavoriteResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListFavoriteResponse. + + 收藏总数。 + + :param count: The count of this ListFavoriteResponse. + :type count: int + """ + self._count = count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFavoriteResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/optimization_mode.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/optimization_mode.py index 5d79a18a7..3ad99158a 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/optimization_mode.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/optimization_mode.py @@ -12,6 +12,7 @@ class OptimizationMode: GENERATION = "generation" SIDE_CHAINS_DECORATION = "side_chains_decoration" SCAFFOLD_HOPPING = "scaffold_hopping" + FRAGMENT_GROWING = "fragment_growing" """ Attributes: openapi_types (dict): The key is attribute name diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/receptor_dto.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/receptor_dto.py new file mode 100644 index 000000000..b214b46b7 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/receptor_dto.py @@ -0,0 +1,280 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ReceptorDto: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'receptor': 'ReceptorDrugFile', + 'bounding_box': 'BoundBoxDto', + 'remove_ion': 'bool', + 'remove_water': 'bool', + 'remove_ligand': 'bool', + 'add_hydrogen': 'bool' + } + + attribute_map = { + 'name': 'name', + 'receptor': 'receptor', + 'bounding_box': 'bounding_box', + 'remove_ion': 'remove_ion', + 'remove_water': 'remove_water', + 'remove_ligand': 'remove_ligand', + 'add_hydrogen': 'add_hydrogen' + } + + def __init__(self, name=None, receptor=None, bounding_box=None, remove_ion=None, remove_water=None, remove_ligand=None, add_hydrogen=None): + """ReceptorDto + + The model defined in huaweicloud sdk + + :param name: 靶点名称。 + :type name: str + :param receptor: + :type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile` + :param bounding_box: + :type bounding_box: :class:`huaweicloudsdkeihealth.v1.BoundBoxDto` + :param remove_ion: 去除受体中的离子。 + :type remove_ion: bool + :param remove_water: 去除受体中的水分子。 + :type remove_water: bool + :param remove_ligand: 去除受体中的配体分子。 + :type remove_ligand: bool + :param add_hydrogen: 增加氢原子。 + :type add_hydrogen: bool + """ + + + + self._name = None + self._receptor = None + self._bounding_box = None + self._remove_ion = None + self._remove_water = None + self._remove_ligand = None + self._add_hydrogen = None + self.discriminator = None + + if name is not None: + self.name = name + self.receptor = receptor + if bounding_box is not None: + self.bounding_box = bounding_box + if remove_ion is not None: + self.remove_ion = remove_ion + if remove_water is not None: + self.remove_water = remove_water + if remove_ligand is not None: + self.remove_ligand = remove_ligand + if add_hydrogen is not None: + self.add_hydrogen = add_hydrogen + + @property + def name(self): + """Gets the name of this ReceptorDto. + + 靶点名称。 + + :return: The name of this ReceptorDto. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ReceptorDto. + + 靶点名称。 + + :param name: The name of this ReceptorDto. + :type name: str + """ + self._name = name + + @property + def receptor(self): + """Gets the receptor of this ReceptorDto. + + :return: The receptor of this ReceptorDto. + :rtype: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile` + """ + return self._receptor + + @receptor.setter + def receptor(self, receptor): + """Sets the receptor of this ReceptorDto. + + :param receptor: The receptor of this ReceptorDto. + :type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile` + """ + self._receptor = receptor + + @property + def bounding_box(self): + """Gets the bounding_box of this ReceptorDto. + + :return: The bounding_box of this ReceptorDto. + :rtype: :class:`huaweicloudsdkeihealth.v1.BoundBoxDto` + """ + return self._bounding_box + + @bounding_box.setter + def bounding_box(self, bounding_box): + """Sets the bounding_box of this ReceptorDto. + + :param bounding_box: The bounding_box of this ReceptorDto. + :type bounding_box: :class:`huaweicloudsdkeihealth.v1.BoundBoxDto` + """ + self._bounding_box = bounding_box + + @property + def remove_ion(self): + """Gets the remove_ion of this ReceptorDto. + + 去除受体中的离子。 + + :return: The remove_ion of this ReceptorDto. + :rtype: bool + """ + return self._remove_ion + + @remove_ion.setter + def remove_ion(self, remove_ion): + """Sets the remove_ion of this ReceptorDto. + + 去除受体中的离子。 + + :param remove_ion: The remove_ion of this ReceptorDto. + :type remove_ion: bool + """ + self._remove_ion = remove_ion + + @property + def remove_water(self): + """Gets the remove_water of this ReceptorDto. + + 去除受体中的水分子。 + + :return: The remove_water of this ReceptorDto. + :rtype: bool + """ + return self._remove_water + + @remove_water.setter + def remove_water(self, remove_water): + """Sets the remove_water of this ReceptorDto. + + 去除受体中的水分子。 + + :param remove_water: The remove_water of this ReceptorDto. + :type remove_water: bool + """ + self._remove_water = remove_water + + @property + def remove_ligand(self): + """Gets the remove_ligand of this ReceptorDto. + + 去除受体中的配体分子。 + + :return: The remove_ligand of this ReceptorDto. + :rtype: bool + """ + return self._remove_ligand + + @remove_ligand.setter + def remove_ligand(self, remove_ligand): + """Sets the remove_ligand of this ReceptorDto. + + 去除受体中的配体分子。 + + :param remove_ligand: The remove_ligand of this ReceptorDto. + :type remove_ligand: bool + """ + self._remove_ligand = remove_ligand + + @property + def add_hydrogen(self): + """Gets the add_hydrogen of this ReceptorDto. + + 增加氢原子。 + + :return: The add_hydrogen of this ReceptorDto. + :rtype: bool + """ + return self._add_hydrogen + + @add_hydrogen.setter + def add_hydrogen(self, add_hydrogen): + """Sets the add_hydrogen of this ReceptorDto. + + 增加氢原子。 + + :param add_hydrogen: The add_hydrogen of this ReceptorDto. + :type add_hydrogen: bool + """ + self._add_hydrogen = add_hydrogen + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReceptorDto): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_format_converter_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_format_converter_req.py new file mode 100644 index 000000000..0cca72e11 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_format_converter_req.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunFormatConverterReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'file': 'ConvertFile', + 'in_format': 'str', + 'out_format': 'str' + } + + attribute_map = { + 'file': 'file', + 'in_format': 'in_format', + 'out_format': 'out_format' + } + + def __init__(self, file=None, in_format=None, out_format=None): + """RunFormatConverterReq + + The model defined in huaweicloud sdk + + :param file: + :type file: :class:`huaweicloudsdkeihealth.v1.ConvertFile` + :param in_format: 待转换文件格式,支持PDB、SDF、MOL2、SMI。 + :type in_format: str + :param out_format: 转换后文件格式,支持PDB、SDF、MOL2、SMI。 + :type out_format: str + """ + + + + self._file = None + self._in_format = None + self._out_format = None + self.discriminator = None + + self.file = file + self.in_format = in_format + self.out_format = out_format + + @property + def file(self): + """Gets the file of this RunFormatConverterReq. + + :return: The file of this RunFormatConverterReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.ConvertFile` + """ + return self._file + + @file.setter + def file(self, file): + """Sets the file of this RunFormatConverterReq. + + :param file: The file of this RunFormatConverterReq. + :type file: :class:`huaweicloudsdkeihealth.v1.ConvertFile` + """ + self._file = file + + @property + def in_format(self): + """Gets the in_format of this RunFormatConverterReq. + + 待转换文件格式,支持PDB、SDF、MOL2、SMI。 + + :return: The in_format of this RunFormatConverterReq. + :rtype: str + """ + return self._in_format + + @in_format.setter + def in_format(self, in_format): + """Sets the in_format of this RunFormatConverterReq. + + 待转换文件格式,支持PDB、SDF、MOL2、SMI。 + + :param in_format: The in_format of this RunFormatConverterReq. + :type in_format: str + """ + self._in_format = in_format + + @property + def out_format(self): + """Gets the out_format of this RunFormatConverterReq. + + 转换后文件格式,支持PDB、SDF、MOL2、SMI。 + + :return: The out_format of this RunFormatConverterReq. + :rtype: str + """ + return self._out_format + + @out_format.setter + def out_format(self, out_format): + """Sets the out_format of this RunFormatConverterReq. + + 转换后文件格式,支持PDB、SDF、MOL2、SMI。 + + :param out_format: The out_format of this RunFormatConverterReq. + :type out_format: str + """ + self._out_format = out_format + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RunFormatConverterReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_format_converter_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_format_converter_request.py new file mode 100644 index 000000000..067358719 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_format_converter_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunFormatConverterRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'body': 'RunFormatConverterReq' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'body': 'body' + } + + def __init__(self, eihealth_project_id=None, body=None): + """RunFormatConverterRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID。 + :type eihealth_project_id: str + :param body: Body of the RunFormatConverterRequest + :type body: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterReq` + """ + + + + self._eihealth_project_id = None + self._body = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + if body is not None: + self.body = body + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this RunFormatConverterRequest. + + 平台项目ID。 + + :return: The eihealth_project_id of this RunFormatConverterRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this RunFormatConverterRequest. + + 平台项目ID。 + + :param eihealth_project_id: The eihealth_project_id of this RunFormatConverterRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def body(self): + """Gets the body of this RunFormatConverterRequest. + + :return: The body of this RunFormatConverterRequest. + :rtype: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RunFormatConverterRequest. + + :param body: The body of this RunFormatConverterRequest. + :type body: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RunFormatConverterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_format_converter_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_format_converter_response.py new file mode 100644 index 000000000..4745a5885 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_format_converter_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunFormatConverterResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """RunFormatConverterResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(RunFormatConverterResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this RunFormatConverterResponse. + + :return: The body of this RunFormatConverterResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RunFormatConverterResponse. + + :param body: The body of this RunFormatConverterResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RunFormatConverterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_clustering_job_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_clustering_job_request.py new file mode 100644 index 000000000..5d096baa9 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_clustering_job_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowClusteringJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'job_id': 'str' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'job_id': 'job_id' + } + + def __init__(self, eihealth_project_id=None, job_id=None): + """ShowClusteringJobRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID。 + :type eihealth_project_id: str + :param job_id: 作业id + :type job_id: str + """ + + + + self._eihealth_project_id = None + self._job_id = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + self.job_id = job_id + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this ShowClusteringJobRequest. + + 平台项目ID。 + + :return: The eihealth_project_id of this ShowClusteringJobRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this ShowClusteringJobRequest. + + 平台项目ID。 + + :param eihealth_project_id: The eihealth_project_id of this ShowClusteringJobRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def job_id(self): + """Gets the job_id of this ShowClusteringJobRequest. + + 作业id + + :return: The job_id of this ShowClusteringJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ShowClusteringJobRequest. + + 作业id + + :param job_id: The job_id of this ShowClusteringJobRequest. + :type job_id: str + """ + self._job_id = job_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowClusteringJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py new file mode 100644 index 000000000..b5cbcd6ac --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowClusteringJobResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'basic_info': 'DrugJobDto', + 'file': 'DrugFile', + 'failed_reasons': 'list[FailedReasonRecord]', + 'job_result': 'JobResult' + } + + attribute_map = { + 'basic_info': 'basic_info', + 'file': 'file', + 'failed_reasons': 'failed_reasons', + 'job_result': 'job_result' + } + + def __init__(self, basic_info=None, file=None, failed_reasons=None, job_result=None): + """ShowClusteringJobResponse + + The model defined in huaweicloud sdk + + :param basic_info: + :type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + :param file: + :type file: :class:`huaweicloudsdkeihealth.v1.DrugFile` + :param failed_reasons: 部分失败原因和数量。 + :type failed_reasons: list[:class:`huaweicloudsdkeihealth.v1.FailedReasonRecord`] + :param job_result: + :type job_result: :class:`huaweicloudsdkeihealth.v1.JobResult` + """ + + super(ShowClusteringJobResponse, self).__init__() + + self._basic_info = None + self._file = None + self._failed_reasons = None + self._job_result = None + self.discriminator = None + + if basic_info is not None: + self.basic_info = basic_info + if file is not None: + self.file = file + if failed_reasons is not None: + self.failed_reasons = failed_reasons + if job_result is not None: + self.job_result = job_result + + @property + def basic_info(self): + """Gets the basic_info of this ShowClusteringJobResponse. + + :return: The basic_info of this ShowClusteringJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + """ + return self._basic_info + + @basic_info.setter + def basic_info(self, basic_info): + """Sets the basic_info of this ShowClusteringJobResponse. + + :param basic_info: The basic_info of this ShowClusteringJobResponse. + :type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + """ + self._basic_info = basic_info + + @property + def file(self): + """Gets the file of this ShowClusteringJobResponse. + + :return: The file of this ShowClusteringJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.DrugFile` + """ + return self._file + + @file.setter + def file(self, file): + """Sets the file of this ShowClusteringJobResponse. + + :param file: The file of this ShowClusteringJobResponse. + :type file: :class:`huaweicloudsdkeihealth.v1.DrugFile` + """ + self._file = file + + @property + def failed_reasons(self): + """Gets the failed_reasons of this ShowClusteringJobResponse. + + 部分失败原因和数量。 + + :return: The failed_reasons of this ShowClusteringJobResponse. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.FailedReasonRecord`] + """ + return self._failed_reasons + + @failed_reasons.setter + def failed_reasons(self, failed_reasons): + """Sets the failed_reasons of this ShowClusteringJobResponse. + + 部分失败原因和数量。 + + :param failed_reasons: The failed_reasons of this ShowClusteringJobResponse. + :type failed_reasons: list[:class:`huaweicloudsdkeihealth.v1.FailedReasonRecord`] + """ + self._failed_reasons = failed_reasons + + @property + def job_result(self): + """Gets the job_result of this ShowClusteringJobResponse. + + :return: The job_result of this ShowClusteringJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.JobResult` + """ + return self._job_result + + @job_result.setter + def job_result(self, job_result): + """Sets the job_result of this ShowClusteringJobResponse. + + :param job_result: The job_result of this ShowClusteringJobResponse. + :type job_result: :class:`huaweicloudsdkeihealth.v1.JobResult` + """ + self._job_result = job_result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowClusteringJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index b073aecef..e3d8a2721 100644 --- a/huaweicloud-sdk-eihealth/setup.py +++ b/huaweicloud-sdk-eihealth/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeihealth" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index 3a70b19dd..c2ade32f9 100644 --- a/huaweicloud-sdk-eip/setup.py +++ b/huaweicloud-sdk-eip/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeip" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index 571bcb0fb..f7756921f 100644 --- a/huaweicloud-sdk-elb/setup.py +++ b/huaweicloud-sdk-elb/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkelb" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index 3e6d7eba7..681739725 100644 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index b1b5dd76f..3636a40c8 100644 --- a/huaweicloud-sdk-er/setup.py +++ b/huaweicloud-sdk-er/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdker" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py index c8a421acd..1f3c2dd49 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_async_client.py @@ -800,6 +800,8 @@ class EvsAsyncClient(Client): query_params = [] header_params = {} + if 'x_client_token' in local_var_params: + header_params['X-Client-Token'] = local_var_params['x_client_token'] form_params = {} diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py index 857b3c352..d1157ccfa 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/evs_client.py @@ -800,6 +800,8 @@ class EvsClient(Client): query_params = [] header_params = {} + if 'x_client_token' in local_var_params: + header_params['X-Client-Token'] = local_var_params['x_client_token'] form_params = {} diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_request.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_request.py index 669764d10..cc449c26d 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_request.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/create_volume_request.py @@ -15,32 +15,62 @@ class CreateVolumeRequest: and the value is json key in definition. """ sensitive_list = [] + sensitive_list.append('x_client_token') openapi_types = { + 'x_client_token': 'str', 'body': 'CreateVolumeRequestBody' } attribute_map = { + 'x_client_token': 'X-Client-Token', 'body': 'body' } - def __init__(self, body=None): + def __init__(self, x_client_token=None, body=None): """CreateVolumeRequest The model defined in huaweicloud sdk + :param x_client_token: 请求的幂等标识。 + :type x_client_token: str :param body: Body of the CreateVolumeRequest :type body: :class:`huaweicloudsdkevs.v2.CreateVolumeRequestBody` """ + self._x_client_token = None self._body = None self.discriminator = None + if x_client_token is not None: + self.x_client_token = x_client_token if body is not None: self.body = body + @property + def x_client_token(self): + """Gets the x_client_token of this CreateVolumeRequest. + + 请求的幂等标识。 + + :return: The x_client_token of this CreateVolumeRequest. + :rtype: str + """ + return self._x_client_token + + @x_client_token.setter + def x_client_token(self, x_client_token): + """Sets the x_client_token of this CreateVolumeRequest. + + 请求的幂等标识。 + + :param x_client_token: The x_client_token of this CreateVolumeRequest. + :type x_client_token: str + """ + self._x_client_token = x_client_token + @property def body(self): """Gets the body of this CreateVolumeRequest. diff --git a/huaweicloud-sdk-evs/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 0f2d5c01e..61db5857f 100644 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index f2790e75c..c08e3da7e 100644 --- a/huaweicloud-sdk-frs/setup.py +++ b/huaweicloud-sdk-frs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkfrs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index 5ccc6ec2c..63c3970a1 100644 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index 39547b977..b6876b863 100644 --- a/huaweicloud-sdk-ga/setup.py +++ b/huaweicloud-sdk-ga/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkga" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index a78bff96a..a04f497ef 100644 --- a/huaweicloud-sdk-gaussdb/setup.py +++ b/huaweicloud-sdk-gaussdb/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdb" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_nosql_task_list_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_nosql_task_list_response.py index adff42028..a9093a844 100644 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_nosql_task_list_response.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_nosql_task_list_response.py @@ -18,7 +18,7 @@ class ListNosqlTaskListResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'total_count': 'str', + 'total_count': 'int', 'schedules': 'list[ScheduleDetailInfo]' } @@ -33,7 +33,7 @@ class ListNosqlTaskListResponse(SdkResponse): The model defined in huaweicloud sdk :param total_count: 记录总数。 - :type total_count: str + :type total_count: int :param schedules: 任务详情。 :type schedules: list[:class:`huaweicloudsdkgaussdbfornosql.v3.ScheduleDetailInfo`] """ @@ -56,7 +56,7 @@ class ListNosqlTaskListResponse(SdkResponse): 记录总数。 :return: The total_count of this ListNosqlTaskListResponse. - :rtype: str + :rtype: int """ return self._total_count @@ -67,7 +67,7 @@ class ListNosqlTaskListResponse(SdkResponse): 记录总数。 :param total_count: The total_count of this ListNosqlTaskListResponse. - :type total_count: str + :type total_count: int """ self._total_count = total_count diff --git a/huaweicloud-sdk-gaussdbfornosql/requirements.txt b/huaweicloud-sdk-gaussdbfornosql/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index 385fb57ab..4acf9aba1 100644 --- a/huaweicloud-sdk-gaussdbfornosql/setup.py +++ b/huaweicloud-sdk-gaussdbfornosql/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbfornosql" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index 3fe596183..9c2062217 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/setup.py +++ b/huaweicloud-sdk-gaussdbforopengauss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbforopengauss" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-geip/requirements.txt b/huaweicloud-sdk-geip/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-geip/requirements.txt +++ b/huaweicloud-sdk-geip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-geip/setup.py b/huaweicloud-sdk-geip/setup.py index b97a8a6ad..85fd1b32f 100644 --- a/huaweicloud-sdk-geip/setup.py +++ b/huaweicloud-sdk-geip/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgeip" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index d353c4078..6f6b01f3b 100644 --- a/huaweicloud-sdk-ges/setup.py +++ b/huaweicloud-sdk-ges/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkges" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index 696c0133f..0b296a771 100644 --- a/huaweicloud-sdk-gsl/setup.py +++ b/huaweicloud-sdk-gsl/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgsl" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index f2be91d85..5ecb879d9 100644 --- a/huaweicloud-sdk-hilens/setup.py +++ b/huaweicloud-sdk-hilens/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkhilens" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 27c5dc85d..22ceba993 100644 --- a/huaweicloud-sdk-hss/setup.py +++ b/huaweicloud-sdk-hss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkhss" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/__init__.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/__init__.py index 9b328ef24..9cbe1ad47 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/__init__.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/__init__.py @@ -13,12 +13,14 @@ from huaweicloudsdkiam.v3.model.agency_assumedby_user import AgencyAssumedbyUser from huaweicloudsdkiam.v3.model.agency_assumedby_user_domain import AgencyAssumedbyUserDomain from huaweicloudsdkiam.v3.model.agency_auth import AgencyAuth from huaweicloudsdkiam.v3.model.agency_auth_identity import AgencyAuthIdentity +from huaweicloudsdkiam.v3.model.agency_create_result import AgencyCreateResult +from huaweicloudsdkiam.v3.model.agency_list_result import AgencyListResult from huaweicloudsdkiam.v3.model.agency_policy import AgencyPolicy from huaweicloudsdkiam.v3.model.agency_policy_resource import AgencyPolicyResource from huaweicloudsdkiam.v3.model.agency_policy_role_option import AgencyPolicyRoleOption from huaweicloudsdkiam.v3.model.agency_policy_role_result import AgencyPolicyRoleResult from huaweicloudsdkiam.v3.model.agency_policy_statement import AgencyPolicyStatement -from huaweicloudsdkiam.v3.model.agency_result import AgencyResult +from huaweicloudsdkiam.v3.model.agency_show_result import AgencyShowResult from huaweicloudsdkiam.v3.model.agency_token_assumerole import AgencyTokenAssumerole from huaweicloudsdkiam.v3.model.agency_token_auth import AgencyTokenAuth from huaweicloudsdkiam.v3.model.agency_token_domain import AgencyTokenDomain @@ -31,6 +33,7 @@ from huaweicloudsdkiam.v3.model.agency_token_scope_domain import AgencyTokenScop from huaweicloudsdkiam.v3.model.agency_token_scope_project import AgencyTokenScopeProject from huaweicloudsdkiam.v3.model.agency_token_user import AgencyTokenUser from huaweicloudsdkiam.v3.model.agency_token_user_domain import AgencyTokenUserDomain +from huaweicloudsdkiam.v3.model.agency_update_result import AgencyUpdateResult from huaweicloudsdkiam.v3.model.allow_address_netmasks_option import AllowAddressNetmasksOption from huaweicloudsdkiam.v3.model.allow_address_netmasks_result import AllowAddressNetmasksResult from huaweicloudsdkiam.v3.model.allow_ip_ranges_option import AllowIpRangesOption @@ -145,6 +148,7 @@ from huaweicloudsdkiam.v3.model.identityprovider_option import IdentityproviderO from huaweicloudsdkiam.v3.model.identityproviders_links import IdentityprovidersLinks from huaweicloudsdkiam.v3.model.identityproviders_result import IdentityprovidersResult from huaweicloudsdkiam.v3.model.idp_id_info import IdpIdInfo +from huaweicloudsdkiam.v3.model.inherited_role_result import InheritedRoleResult from huaweicloudsdkiam.v3.model.keystone_add_user_to_group_request import KeystoneAddUserToGroupRequest from huaweicloudsdkiam.v3.model.keystone_add_user_to_group_response import KeystoneAddUserToGroupResponse from huaweicloudsdkiam.v3.model.keystone_associate_group_with_domain_permission_request import KeystoneAssociateGroupWithDomainPermissionRequest @@ -486,6 +490,7 @@ from huaweicloudsdkiam.v3.model.token_user_result import TokenUserResult from huaweicloudsdkiam.v3.model.unbind_mfa_device import UnbindMfaDevice from huaweicloudsdkiam.v3.model.unscoped_token_info import UnscopedTokenInfo from huaweicloudsdkiam.v3.model.unscoped_token_info_catalog import UnscopedTokenInfoCatalog +from huaweicloudsdkiam.v3.model.unscoped_token_info_catalog_endpoints import UnscopedTokenInfoCatalogEndpoints from huaweicloudsdkiam.v3.model.unscoped_token_info_roles import UnscopedTokenInfoRoles from huaweicloudsdkiam.v3.model.update_agency_custom_policy_request import UpdateAgencyCustomPolicyRequest from huaweicloudsdkiam.v3.model.update_agency_custom_policy_request_body import UpdateAgencyCustomPolicyRequestBody diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/__init__.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/__init__.py index 72d2a18c0..28a1c3a6c 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/__init__.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/__init__.py @@ -11,12 +11,14 @@ from huaweicloudsdkiam.v3.model.agency_assumedby_user import AgencyAssumedbyUser from huaweicloudsdkiam.v3.model.agency_assumedby_user_domain import AgencyAssumedbyUserDomain from huaweicloudsdkiam.v3.model.agency_auth import AgencyAuth from huaweicloudsdkiam.v3.model.agency_auth_identity import AgencyAuthIdentity +from huaweicloudsdkiam.v3.model.agency_create_result import AgencyCreateResult +from huaweicloudsdkiam.v3.model.agency_list_result import AgencyListResult from huaweicloudsdkiam.v3.model.agency_policy import AgencyPolicy from huaweicloudsdkiam.v3.model.agency_policy_resource import AgencyPolicyResource from huaweicloudsdkiam.v3.model.agency_policy_role_option import AgencyPolicyRoleOption from huaweicloudsdkiam.v3.model.agency_policy_role_result import AgencyPolicyRoleResult from huaweicloudsdkiam.v3.model.agency_policy_statement import AgencyPolicyStatement -from huaweicloudsdkiam.v3.model.agency_result import AgencyResult +from huaweicloudsdkiam.v3.model.agency_show_result import AgencyShowResult from huaweicloudsdkiam.v3.model.agency_token_assumerole import AgencyTokenAssumerole from huaweicloudsdkiam.v3.model.agency_token_auth import AgencyTokenAuth from huaweicloudsdkiam.v3.model.agency_token_domain import AgencyTokenDomain @@ -29,6 +31,7 @@ from huaweicloudsdkiam.v3.model.agency_token_scope_domain import AgencyTokenScop from huaweicloudsdkiam.v3.model.agency_token_scope_project import AgencyTokenScopeProject from huaweicloudsdkiam.v3.model.agency_token_user import AgencyTokenUser from huaweicloudsdkiam.v3.model.agency_token_user_domain import AgencyTokenUserDomain +from huaweicloudsdkiam.v3.model.agency_update_result import AgencyUpdateResult from huaweicloudsdkiam.v3.model.allow_address_netmasks_option import AllowAddressNetmasksOption from huaweicloudsdkiam.v3.model.allow_address_netmasks_result import AllowAddressNetmasksResult from huaweicloudsdkiam.v3.model.allow_ip_ranges_option import AllowIpRangesOption @@ -143,6 +146,7 @@ from huaweicloudsdkiam.v3.model.identityprovider_option import IdentityproviderO from huaweicloudsdkiam.v3.model.identityproviders_links import IdentityprovidersLinks from huaweicloudsdkiam.v3.model.identityproviders_result import IdentityprovidersResult from huaweicloudsdkiam.v3.model.idp_id_info import IdpIdInfo +from huaweicloudsdkiam.v3.model.inherited_role_result import InheritedRoleResult from huaweicloudsdkiam.v3.model.keystone_add_user_to_group_request import KeystoneAddUserToGroupRequest from huaweicloudsdkiam.v3.model.keystone_add_user_to_group_response import KeystoneAddUserToGroupResponse from huaweicloudsdkiam.v3.model.keystone_associate_group_with_domain_permission_request import KeystoneAssociateGroupWithDomainPermissionRequest @@ -484,6 +488,7 @@ from huaweicloudsdkiam.v3.model.token_user_result import TokenUserResult from huaweicloudsdkiam.v3.model.unbind_mfa_device import UnbindMfaDevice from huaweicloudsdkiam.v3.model.unscoped_token_info import UnscopedTokenInfo from huaweicloudsdkiam.v3.model.unscoped_token_info_catalog import UnscopedTokenInfoCatalog +from huaweicloudsdkiam.v3.model.unscoped_token_info_catalog_endpoints import UnscopedTokenInfoCatalogEndpoints from huaweicloudsdkiam.v3.model.unscoped_token_info_roles import UnscopedTokenInfoRoles from huaweicloudsdkiam.v3.model.update_agency_custom_policy_request import UpdateAgencyCustomPolicyRequest from huaweicloudsdkiam.v3.model.update_agency_custom_policy_request_body import UpdateAgencyCustomPolicyRequestBody diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_create_result.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_create_result.py new file mode 100644 index 000000000..4cf187a8d --- /dev/null +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_create_result.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AgencyCreateResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'create_time': 'str', + 'description': 'str', + 'domain_id': 'str', + 'expire_time': 'str', + 'id': 'str', + 'name': 'str', + 'trust_domain_id': 'str' + } + + attribute_map = { + 'create_time': 'create_time', + 'description': 'description', + 'domain_id': 'domain_id', + 'expire_time': 'expire_time', + 'id': 'id', + 'name': 'name', + 'trust_domain_id': 'trust_domain_id' + } + + def __init__(self, create_time=None, description=None, domain_id=None, expire_time=None, id=None, name=None, trust_domain_id=None): + """AgencyCreateResult + + The model defined in huaweicloud sdk + + :param create_time: 委托创建时间。 + :type create_time: str + :param description: 委托描述信息。 + :type description: str + :param domain_id: 委托方账号ID。 + :type domain_id: str + :param expire_time: 委托过期时间。“null”表示不过期。 + :type expire_time: str + :param id: 委托ID。 + :type id: str + :param name: 委托名。 + :type name: str + :param trust_domain_id: 被委托方账号ID。 + :type trust_domain_id: str + """ + + + + self._create_time = None + self._description = None + self._domain_id = None + self._expire_time = None + self._id = None + self._name = None + self._trust_domain_id = None + self.discriminator = None + + self.create_time = create_time + self.description = description + if domain_id is not None: + self.domain_id = domain_id + self.expire_time = expire_time + self.id = id + self.name = name + if trust_domain_id is not None: + self.trust_domain_id = trust_domain_id + + @property + def create_time(self): + """Gets the create_time of this AgencyCreateResult. + + 委托创建时间。 + + :return: The create_time of this AgencyCreateResult. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this AgencyCreateResult. + + 委托创建时间。 + + :param create_time: The create_time of this AgencyCreateResult. + :type create_time: str + """ + self._create_time = create_time + + @property + def description(self): + """Gets the description of this AgencyCreateResult. + + 委托描述信息。 + + :return: The description of this AgencyCreateResult. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AgencyCreateResult. + + 委托描述信息。 + + :param description: The description of this AgencyCreateResult. + :type description: str + """ + self._description = description + + @property + def domain_id(self): + """Gets the domain_id of this AgencyCreateResult. + + 委托方账号ID。 + + :return: The domain_id of this AgencyCreateResult. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this AgencyCreateResult. + + 委托方账号ID。 + + :param domain_id: The domain_id of this AgencyCreateResult. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def expire_time(self): + """Gets the expire_time of this AgencyCreateResult. + + 委托过期时间。“null”表示不过期。 + + :return: The expire_time of this AgencyCreateResult. + :rtype: str + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this AgencyCreateResult. + + 委托过期时间。“null”表示不过期。 + + :param expire_time: The expire_time of this AgencyCreateResult. + :type expire_time: str + """ + self._expire_time = expire_time + + @property + def id(self): + """Gets the id of this AgencyCreateResult. + + 委托ID。 + + :return: The id of this AgencyCreateResult. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AgencyCreateResult. + + 委托ID。 + + :param id: The id of this AgencyCreateResult. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this AgencyCreateResult. + + 委托名。 + + :return: The name of this AgencyCreateResult. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AgencyCreateResult. + + 委托名。 + + :param name: The name of this AgencyCreateResult. + :type name: str + """ + self._name = name + + @property + def trust_domain_id(self): + """Gets the trust_domain_id of this AgencyCreateResult. + + 被委托方账号ID。 + + :return: The trust_domain_id of this AgencyCreateResult. + :rtype: str + """ + return self._trust_domain_id + + @trust_domain_id.setter + def trust_domain_id(self, trust_domain_id): + """Sets the trust_domain_id of this AgencyCreateResult. + + 被委托方账号ID。 + + :param trust_domain_id: The trust_domain_id of this AgencyCreateResult. + :type trust_domain_id: str + """ + self._trust_domain_id = trust_domain_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AgencyCreateResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_result.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_list_result.py similarity index 78% rename from huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_result.py rename to huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_list_result.py index a47414ad2..e2b13598d 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_result.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_list_result.py @@ -5,7 +5,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class AgencyResult: +class AgencyListResult: """ Attributes: @@ -41,7 +41,7 @@ class AgencyResult: } def __init__(self, create_time=None, description=None, domain_id=None, expire_time=None, id=None, name=None, trust_domain_id=None, trust_domain_name=None, agency_urn=None): - """AgencyResult + """AgencyListResult The model defined in huaweicloud sdk @@ -94,198 +94,198 @@ class AgencyResult: @property def create_time(self): - """Gets the create_time of this AgencyResult. + """Gets the create_time of this AgencyListResult. 委托创建时间。 - :return: The create_time of this AgencyResult. + :return: The create_time of this AgencyListResult. :rtype: str """ return self._create_time @create_time.setter def create_time(self, create_time): - """Sets the create_time of this AgencyResult. + """Sets the create_time of this AgencyListResult. 委托创建时间。 - :param create_time: The create_time of this AgencyResult. + :param create_time: The create_time of this AgencyListResult. :type create_time: str """ self._create_time = create_time @property def description(self): - """Gets the description of this AgencyResult. + """Gets the description of this AgencyListResult. 委托描述信息。 - :return: The description of this AgencyResult. + :return: The description of this AgencyListResult. :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this AgencyResult. + """Sets the description of this AgencyListResult. 委托描述信息。 - :param description: The description of this AgencyResult. + :param description: The description of this AgencyListResult. :type description: str """ self._description = description @property def domain_id(self): - """Gets the domain_id of this AgencyResult. + """Gets the domain_id of this AgencyListResult. 委托方账号ID。 - :return: The domain_id of this AgencyResult. + :return: The domain_id of this AgencyListResult. :rtype: str """ return self._domain_id @domain_id.setter def domain_id(self, domain_id): - """Sets the domain_id of this AgencyResult. + """Sets the domain_id of this AgencyListResult. 委托方账号ID。 - :param domain_id: The domain_id of this AgencyResult. + :param domain_id: The domain_id of this AgencyListResult. :type domain_id: str """ self._domain_id = domain_id @property def expire_time(self): - """Gets the expire_time of this AgencyResult. + """Gets the expire_time of this AgencyListResult. 委托过期时间。“null”表示不过期。 - :return: The expire_time of this AgencyResult. + :return: The expire_time of this AgencyListResult. :rtype: str """ return self._expire_time @expire_time.setter def expire_time(self, expire_time): - """Sets the expire_time of this AgencyResult. + """Sets the expire_time of this AgencyListResult. 委托过期时间。“null”表示不过期。 - :param expire_time: The expire_time of this AgencyResult. + :param expire_time: The expire_time of this AgencyListResult. :type expire_time: str """ self._expire_time = expire_time @property def id(self): - """Gets the id of this AgencyResult. + """Gets the id of this AgencyListResult. 委托ID。 - :return: The id of this AgencyResult. + :return: The id of this AgencyListResult. :rtype: str """ return self._id @id.setter def id(self, id): - """Sets the id of this AgencyResult. + """Sets the id of this AgencyListResult. 委托ID。 - :param id: The id of this AgencyResult. + :param id: The id of this AgencyListResult. :type id: str """ self._id = id @property def name(self): - """Gets the name of this AgencyResult. + """Gets the name of this AgencyListResult. 委托名。 - :return: The name of this AgencyResult. + :return: The name of this AgencyListResult. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this AgencyResult. + """Sets the name of this AgencyListResult. 委托名。 - :param name: The name of this AgencyResult. + :param name: The name of this AgencyListResult. :type name: str """ self._name = name @property def trust_domain_id(self): - """Gets the trust_domain_id of this AgencyResult. + """Gets the trust_domain_id of this AgencyListResult. 被委托方账号ID。 - :return: The trust_domain_id of this AgencyResult. + :return: The trust_domain_id of this AgencyListResult. :rtype: str """ return self._trust_domain_id @trust_domain_id.setter def trust_domain_id(self, trust_domain_id): - """Sets the trust_domain_id of this AgencyResult. + """Sets the trust_domain_id of this AgencyListResult. 被委托方账号ID。 - :param trust_domain_id: The trust_domain_id of this AgencyResult. + :param trust_domain_id: The trust_domain_id of this AgencyListResult. :type trust_domain_id: str """ self._trust_domain_id = trust_domain_id @property def trust_domain_name(self): - """Gets the trust_domain_name of this AgencyResult. + """Gets the trust_domain_name of this AgencyListResult. 被委托方账号名。 - :return: The trust_domain_name of this AgencyResult. + :return: The trust_domain_name of this AgencyListResult. :rtype: str """ return self._trust_domain_name @trust_domain_name.setter def trust_domain_name(self, trust_domain_name): - """Sets the trust_domain_name of this AgencyResult. + """Sets the trust_domain_name of this AgencyListResult. 被委托方账号名。 - :param trust_domain_name: The trust_domain_name of this AgencyResult. + :param trust_domain_name: The trust_domain_name of this AgencyListResult. :type trust_domain_name: str """ self._trust_domain_name = trust_domain_name @property def agency_urn(self): - """Gets the agency_urn of this AgencyResult. + """Gets the agency_urn of this AgencyListResult. 委托URN。 - :return: The agency_urn of this AgencyResult. + :return: The agency_urn of this AgencyListResult. :rtype: str """ return self._agency_urn @agency_urn.setter def agency_urn(self, agency_urn): - """Sets the agency_urn of this AgencyResult. + """Sets the agency_urn of this AgencyListResult. 委托URN。 - :param agency_urn: The agency_urn of this AgencyResult. + :param agency_urn: The agency_urn of this AgencyListResult. :type agency_urn: str """ self._agency_urn = agency_urn @@ -332,7 +332,7 @@ class AgencyResult: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, AgencyResult): + if not isinstance(other, AgencyListResult): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_show_result.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_show_result.py new file mode 100644 index 000000000..dc9d490c9 --- /dev/null +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_show_result.py @@ -0,0 +1,342 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AgencyShowResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'create_time': 'str', + 'description': 'str', + 'domain_id': 'str', + 'expire_time': 'str', + 'id': 'str', + 'name': 'str', + 'trust_domain_id': 'str', + 'trust_domain_name': 'str', + 'agency_urn': 'str' + } + + attribute_map = { + 'create_time': 'create_time', + 'description': 'description', + 'domain_id': 'domain_id', + 'expire_time': 'expire_time', + 'id': 'id', + 'name': 'name', + 'trust_domain_id': 'trust_domain_id', + 'trust_domain_name': 'trust_domain_name', + 'agency_urn': 'agency_urn' + } + + def __init__(self, create_time=None, description=None, domain_id=None, expire_time=None, id=None, name=None, trust_domain_id=None, trust_domain_name=None, agency_urn=None): + """AgencyShowResult + + The model defined in huaweicloud sdk + + :param create_time: 委托创建时间。 + :type create_time: str + :param description: 委托描述信息。 + :type description: str + :param domain_id: 委托方账号ID。 + :type domain_id: str + :param expire_time: 委托过期时间。“null”表示不过期。 + :type expire_time: str + :param id: 委托ID。 + :type id: str + :param name: 委托名。 + :type name: str + :param trust_domain_id: 被委托方账号ID。 + :type trust_domain_id: str + :param trust_domain_name: 被委托方账号名。 + :type trust_domain_name: str + :param agency_urn: 委托URN。 + :type agency_urn: str + """ + + + + self._create_time = None + self._description = None + self._domain_id = None + self._expire_time = None + self._id = None + self._name = None + self._trust_domain_id = None + self._trust_domain_name = None + self._agency_urn = None + self.discriminator = None + + self.create_time = create_time + self.description = description + if domain_id is not None: + self.domain_id = domain_id + self.expire_time = expire_time + self.id = id + self.name = name + if trust_domain_id is not None: + self.trust_domain_id = trust_domain_id + if trust_domain_name is not None: + self.trust_domain_name = trust_domain_name + if agency_urn is not None: + self.agency_urn = agency_urn + + @property + def create_time(self): + """Gets the create_time of this AgencyShowResult. + + 委托创建时间。 + + :return: The create_time of this AgencyShowResult. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this AgencyShowResult. + + 委托创建时间。 + + :param create_time: The create_time of this AgencyShowResult. + :type create_time: str + """ + self._create_time = create_time + + @property + def description(self): + """Gets the description of this AgencyShowResult. + + 委托描述信息。 + + :return: The description of this AgencyShowResult. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AgencyShowResult. + + 委托描述信息。 + + :param description: The description of this AgencyShowResult. + :type description: str + """ + self._description = description + + @property + def domain_id(self): + """Gets the domain_id of this AgencyShowResult. + + 委托方账号ID。 + + :return: The domain_id of this AgencyShowResult. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this AgencyShowResult. + + 委托方账号ID。 + + :param domain_id: The domain_id of this AgencyShowResult. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def expire_time(self): + """Gets the expire_time of this AgencyShowResult. + + 委托过期时间。“null”表示不过期。 + + :return: The expire_time of this AgencyShowResult. + :rtype: str + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this AgencyShowResult. + + 委托过期时间。“null”表示不过期。 + + :param expire_time: The expire_time of this AgencyShowResult. + :type expire_time: str + """ + self._expire_time = expire_time + + @property + def id(self): + """Gets the id of this AgencyShowResult. + + 委托ID。 + + :return: The id of this AgencyShowResult. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AgencyShowResult. + + 委托ID。 + + :param id: The id of this AgencyShowResult. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this AgencyShowResult. + + 委托名。 + + :return: The name of this AgencyShowResult. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AgencyShowResult. + + 委托名。 + + :param name: The name of this AgencyShowResult. + :type name: str + """ + self._name = name + + @property + def trust_domain_id(self): + """Gets the trust_domain_id of this AgencyShowResult. + + 被委托方账号ID。 + + :return: The trust_domain_id of this AgencyShowResult. + :rtype: str + """ + return self._trust_domain_id + + @trust_domain_id.setter + def trust_domain_id(self, trust_domain_id): + """Sets the trust_domain_id of this AgencyShowResult. + + 被委托方账号ID。 + + :param trust_domain_id: The trust_domain_id of this AgencyShowResult. + :type trust_domain_id: str + """ + self._trust_domain_id = trust_domain_id + + @property + def trust_domain_name(self): + """Gets the trust_domain_name of this AgencyShowResult. + + 被委托方账号名。 + + :return: The trust_domain_name of this AgencyShowResult. + :rtype: str + """ + return self._trust_domain_name + + @trust_domain_name.setter + def trust_domain_name(self, trust_domain_name): + """Sets the trust_domain_name of this AgencyShowResult. + + 被委托方账号名。 + + :param trust_domain_name: The trust_domain_name of this AgencyShowResult. + :type trust_domain_name: str + """ + self._trust_domain_name = trust_domain_name + + @property + def agency_urn(self): + """Gets the agency_urn of this AgencyShowResult. + + 委托URN。 + + :return: The agency_urn of this AgencyShowResult. + :rtype: str + """ + return self._agency_urn + + @agency_urn.setter + def agency_urn(self, agency_urn): + """Sets the agency_urn of this AgencyShowResult. + + 委托URN。 + + :param agency_urn: The agency_urn of this AgencyShowResult. + :type agency_urn: str + """ + self._agency_urn = agency_urn + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AgencyShowResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_update_result.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_update_result.py new file mode 100644 index 000000000..3574c0c7c --- /dev/null +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_update_result.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AgencyUpdateResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'create_time': 'str', + 'description': 'str', + 'domain_id': 'str', + 'expire_time': 'str', + 'id': 'str', + 'name': 'str', + 'trust_domain_id': 'str' + } + + attribute_map = { + 'create_time': 'create_time', + 'description': 'description', + 'domain_id': 'domain_id', + 'expire_time': 'expire_time', + 'id': 'id', + 'name': 'name', + 'trust_domain_id': 'trust_domain_id' + } + + def __init__(self, create_time=None, description=None, domain_id=None, expire_time=None, id=None, name=None, trust_domain_id=None): + """AgencyUpdateResult + + The model defined in huaweicloud sdk + + :param create_time: 委托创建时间。 + :type create_time: str + :param description: 委托描述信息。 + :type description: str + :param domain_id: 委托方账号ID。 + :type domain_id: str + :param expire_time: 委托过期时间。“null”表示不过期。 + :type expire_time: str + :param id: 委托ID。 + :type id: str + :param name: 委托名。 + :type name: str + :param trust_domain_id: 被委托方账号ID。 + :type trust_domain_id: str + """ + + + + self._create_time = None + self._description = None + self._domain_id = None + self._expire_time = None + self._id = None + self._name = None + self._trust_domain_id = None + self.discriminator = None + + self.create_time = create_time + self.description = description + if domain_id is not None: + self.domain_id = domain_id + self.expire_time = expire_time + self.id = id + self.name = name + if trust_domain_id is not None: + self.trust_domain_id = trust_domain_id + + @property + def create_time(self): + """Gets the create_time of this AgencyUpdateResult. + + 委托创建时间。 + + :return: The create_time of this AgencyUpdateResult. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this AgencyUpdateResult. + + 委托创建时间。 + + :param create_time: The create_time of this AgencyUpdateResult. + :type create_time: str + """ + self._create_time = create_time + + @property + def description(self): + """Gets the description of this AgencyUpdateResult. + + 委托描述信息。 + + :return: The description of this AgencyUpdateResult. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AgencyUpdateResult. + + 委托描述信息。 + + :param description: The description of this AgencyUpdateResult. + :type description: str + """ + self._description = description + + @property + def domain_id(self): + """Gets the domain_id of this AgencyUpdateResult. + + 委托方账号ID。 + + :return: The domain_id of this AgencyUpdateResult. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this AgencyUpdateResult. + + 委托方账号ID。 + + :param domain_id: The domain_id of this AgencyUpdateResult. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def expire_time(self): + """Gets the expire_time of this AgencyUpdateResult. + + 委托过期时间。“null”表示不过期。 + + :return: The expire_time of this AgencyUpdateResult. + :rtype: str + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this AgencyUpdateResult. + + 委托过期时间。“null”表示不过期。 + + :param expire_time: The expire_time of this AgencyUpdateResult. + :type expire_time: str + """ + self._expire_time = expire_time + + @property + def id(self): + """Gets the id of this AgencyUpdateResult. + + 委托ID。 + + :return: The id of this AgencyUpdateResult. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AgencyUpdateResult. + + 委托ID。 + + :param id: The id of this AgencyUpdateResult. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this AgencyUpdateResult. + + 委托名。 + + :return: The name of this AgencyUpdateResult. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AgencyUpdateResult. + + 委托名。 + + :param name: The name of this AgencyUpdateResult. + :type name: str + """ + self._name = name + + @property + def trust_domain_id(self): + """Gets the trust_domain_id of this AgencyUpdateResult. + + 被委托方账号ID。 + + :return: The trust_domain_id of this AgencyUpdateResult. + :rtype: str + """ + return self._trust_domain_id + + @trust_domain_id.setter + def trust_domain_id(self, trust_domain_id): + """Sets the trust_domain_id of this AgencyUpdateResult. + + 被委托方账号ID。 + + :param trust_domain_id: The trust_domain_id of this AgencyUpdateResult. + :type trust_domain_id: str + """ + self._trust_domain_id = trust_domain_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AgencyUpdateResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/create_agency_response.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/create_agency_response.py index 0ca5470d8..3202cbc84 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/create_agency_response.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/create_agency_response.py @@ -18,7 +18,7 @@ class CreateAgencyResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'agency': 'AgencyResult' + 'agency': 'AgencyCreateResult' } attribute_map = { @@ -31,7 +31,7 @@ class CreateAgencyResponse(SdkResponse): The model defined in huaweicloud sdk :param agency: - :type agency: :class:`huaweicloudsdkiam.v3.AgencyResult` + :type agency: :class:`huaweicloudsdkiam.v3.AgencyCreateResult` """ super(CreateAgencyResponse, self).__init__() @@ -47,7 +47,7 @@ class CreateAgencyResponse(SdkResponse): """Gets the agency of this CreateAgencyResponse. :return: The agency of this CreateAgencyResponse. - :rtype: :class:`huaweicloudsdkiam.v3.AgencyResult` + :rtype: :class:`huaweicloudsdkiam.v3.AgencyCreateResult` """ return self._agency @@ -56,7 +56,7 @@ class CreateAgencyResponse(SdkResponse): """Sets the agency of this CreateAgencyResponse. :param agency: The agency of this CreateAgencyResponse. - :type agency: :class:`huaweicloudsdkiam.v3.AgencyResult` + :type agency: :class:`huaweicloudsdkiam.v3.AgencyCreateResult` """ self._agency = agency diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/create_user_result.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/create_user_result.py index b61d1313d..61a2a04a6 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/create_user_result.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/create_user_result.py @@ -34,7 +34,8 @@ class CreateUserResult: 'xdomain_id': 'str', 'xdomain_type': 'str', 'id': 'str', - 'password_expires_at': 'str' + 'password_expires_at': 'str', + 'default_project_id': 'str' } attribute_map = { @@ -55,10 +56,11 @@ class CreateUserResult: 'xdomain_id': 'xdomain_id', 'xdomain_type': 'xdomain_type', 'id': 'id', - 'password_expires_at': 'password_expires_at' + 'password_expires_at': 'password_expires_at', + 'default_project_id': 'default_project_id' } - def __init__(self, access_mode=None, status=None, pwd_status=None, xuser_id=None, xuser_type=None, description=None, name=None, phone=None, is_domain_owner=None, domain_id=None, enabled=None, areacode=None, email=None, create_time=None, xdomain_id=None, xdomain_type=None, id=None, password_expires_at=None): + def __init__(self, access_mode=None, status=None, pwd_status=None, xuser_id=None, xuser_type=None, description=None, name=None, phone=None, is_domain_owner=None, domain_id=None, enabled=None, areacode=None, email=None, create_time=None, xdomain_id=None, xdomain_type=None, id=None, password_expires_at=None, default_project_id=None): """CreateUserResult The model defined in huaweicloud sdk @@ -99,6 +101,8 @@ class CreateUserResult: :type id: str :param password_expires_at: 密码过期时间(UTC时间),“null”表示密码不过期。 :type password_expires_at: str + :param default_project_id: 用户默认的项目ID。 + :type default_project_id: str """ @@ -121,6 +125,7 @@ class CreateUserResult: self._xdomain_type = None self._id = None self._password_expires_at = None + self._default_project_id = None self.discriminator = None if access_mode is not None: @@ -155,6 +160,8 @@ class CreateUserResult: self.id = id if password_expires_at is not None: self.password_expires_at = password_expires_at + if default_project_id is not None: + self.default_project_id = default_project_id @property def access_mode(self): @@ -552,6 +559,28 @@ class CreateUserResult: """ self._password_expires_at = password_expires_at + @property + def default_project_id(self): + """Gets the default_project_id of this CreateUserResult. + + 用户默认的项目ID。 + + :return: The default_project_id of this CreateUserResult. + :rtype: str + """ + return self._default_project_id + + @default_project_id.setter + def default_project_id(self, default_project_id): + """Sets the default_project_id of this CreateUserResult. + + 用户默认的项目ID。 + + :param default_project_id: The default_project_id of this CreateUserResult. + :type default_project_id: str + """ + self._default_project_id = default_project_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/delete_custom_policy_response.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/delete_custom_policy_response.py index 65bc33d1e..b2f218072 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/delete_custom_policy_response.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/delete_custom_policy_response.py @@ -18,21 +18,52 @@ class DeleteCustomPolicyResponse(SdkResponse): sensitive_list = [] openapi_types = { + 'message': 'str' } attribute_map = { + 'message': 'message' } - def __init__(self): + def __init__(self, message=None): """DeleteCustomPolicyResponse The model defined in huaweicloud sdk + :param message: + :type message: str """ super(DeleteCustomPolicyResponse, self).__init__() + + self._message = None self.discriminator = None + if message is not None: + self.message = message + + @property + def message(self): + """Gets the message of this DeleteCustomPolicyResponse. + + + + :return: The message of this DeleteCustomPolicyResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this DeleteCustomPolicyResponse. + + + + :param message: The message of this DeleteCustomPolicyResponse. + :type message: str + """ + self._message = message + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/inherited_role_result.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/inherited_role_result.py new file mode 100644 index 000000000..f5c9000ae --- /dev/null +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/inherited_role_result.py @@ -0,0 +1,422 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class InheritedRoleResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'flag': 'str', + 'description_cn': 'str', + 'catalog': 'str', + 'name': 'str', + 'description': 'str', + 'links': 'Links', + 'id': 'str', + 'display_name': 'str', + 'type': 'str', + 'policy': 'RolePolicy', + 'updated_time': 'str', + 'created_time': 'str' + } + + attribute_map = { + 'flag': 'flag', + 'description_cn': 'description_cn', + 'catalog': 'catalog', + 'name': 'name', + 'description': 'description', + 'links': 'links', + 'id': 'id', + 'display_name': 'display_name', + 'type': 'type', + 'policy': 'policy', + 'updated_time': 'updated_time', + 'created_time': 'created_time' + } + + def __init__(self, flag=None, description_cn=None, catalog=None, name=None, description=None, links=None, id=None, display_name=None, type=None, policy=None, updated_time=None, created_time=None): + """InheritedRoleResult + + The model defined in huaweicloud sdk + + :param flag: 该参数值为fine_grained时,标识此权限为系统内置的策略。 + :type flag: str + :param description_cn: 权限的中文描述信息。 + :type description_cn: str + :param catalog: 权限所在目录。 + :type catalog: str + :param name: 权限名。携带在用户的token中,云服务根据该名称来判断用户是否有权限访问。 + :type name: str + :param description: 权限描述信息。 + :type description: str + :param links: + :type links: :class:`huaweicloudsdkiam.v3.Links` + :param id: 权限ID。 + :type id: str + :param display_name: 权限展示名。 + :type display_name: str + :param type: 权限的显示模式。 > - AX表示在domain层显示。 > - XA表示在project层显示。 > - AA表示在domain和project层均显示。 > - XX表示在domain和project层均不显示。 > - 自定义策略的显示模式只能为AX或者XA,不能在domain层和project层都显示(AA),或者在domain层和project层都不显示(XX)。 + :type type: str + :param policy: + :type policy: :class:`huaweicloudsdkiam.v3.RolePolicy` + :param updated_time: 权限更新时间。 + :type updated_time: str + :param created_time: 权限创建时间。 + :type created_time: str + """ + + + + self._flag = None + self._description_cn = None + self._catalog = None + self._name = None + self._description = None + self._links = None + self._id = None + self._display_name = None + self._type = None + self._policy = None + self._updated_time = None + self._created_time = None + self.discriminator = None + + if flag is not None: + self.flag = flag + if description_cn is not None: + self.description_cn = description_cn + if catalog is not None: + self.catalog = catalog + self.name = name + if description is not None: + self.description = description + if links is not None: + self.links = links + self.id = id + if display_name is not None: + self.display_name = display_name + self.type = type + self.policy = policy + if updated_time is not None: + self.updated_time = updated_time + if created_time is not None: + self.created_time = created_time + + @property + def flag(self): + """Gets the flag of this InheritedRoleResult. + + 该参数值为fine_grained时,标识此权限为系统内置的策略。 + + :return: The flag of this InheritedRoleResult. + :rtype: str + """ + return self._flag + + @flag.setter + def flag(self, flag): + """Sets the flag of this InheritedRoleResult. + + 该参数值为fine_grained时,标识此权限为系统内置的策略。 + + :param flag: The flag of this InheritedRoleResult. + :type flag: str + """ + self._flag = flag + + @property + def description_cn(self): + """Gets the description_cn of this InheritedRoleResult. + + 权限的中文描述信息。 + + :return: The description_cn of this InheritedRoleResult. + :rtype: str + """ + return self._description_cn + + @description_cn.setter + def description_cn(self, description_cn): + """Sets the description_cn of this InheritedRoleResult. + + 权限的中文描述信息。 + + :param description_cn: The description_cn of this InheritedRoleResult. + :type description_cn: str + """ + self._description_cn = description_cn + + @property + def catalog(self): + """Gets the catalog of this InheritedRoleResult. + + 权限所在目录。 + + :return: The catalog of this InheritedRoleResult. + :rtype: str + """ + return self._catalog + + @catalog.setter + def catalog(self, catalog): + """Sets the catalog of this InheritedRoleResult. + + 权限所在目录。 + + :param catalog: The catalog of this InheritedRoleResult. + :type catalog: str + """ + self._catalog = catalog + + @property + def name(self): + """Gets the name of this InheritedRoleResult. + + 权限名。携带在用户的token中,云服务根据该名称来判断用户是否有权限访问。 + + :return: The name of this InheritedRoleResult. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this InheritedRoleResult. + + 权限名。携带在用户的token中,云服务根据该名称来判断用户是否有权限访问。 + + :param name: The name of this InheritedRoleResult. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this InheritedRoleResult. + + 权限描述信息。 + + :return: The description of this InheritedRoleResult. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this InheritedRoleResult. + + 权限描述信息。 + + :param description: The description of this InheritedRoleResult. + :type description: str + """ + self._description = description + + @property + def links(self): + """Gets the links of this InheritedRoleResult. + + :return: The links of this InheritedRoleResult. + :rtype: :class:`huaweicloudsdkiam.v3.Links` + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this InheritedRoleResult. + + :param links: The links of this InheritedRoleResult. + :type links: :class:`huaweicloudsdkiam.v3.Links` + """ + self._links = links + + @property + def id(self): + """Gets the id of this InheritedRoleResult. + + 权限ID。 + + :return: The id of this InheritedRoleResult. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InheritedRoleResult. + + 权限ID。 + + :param id: The id of this InheritedRoleResult. + :type id: str + """ + self._id = id + + @property + def display_name(self): + """Gets the display_name of this InheritedRoleResult. + + 权限展示名。 + + :return: The display_name of this InheritedRoleResult. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this InheritedRoleResult. + + 权限展示名。 + + :param display_name: The display_name of this InheritedRoleResult. + :type display_name: str + """ + self._display_name = display_name + + @property + def type(self): + """Gets the type of this InheritedRoleResult. + + 权限的显示模式。 > - AX表示在domain层显示。 > - XA表示在project层显示。 > - AA表示在domain和project层均显示。 > - XX表示在domain和project层均不显示。 > - 自定义策略的显示模式只能为AX或者XA,不能在domain层和project层都显示(AA),或者在domain层和project层都不显示(XX)。 + + :return: The type of this InheritedRoleResult. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this InheritedRoleResult. + + 权限的显示模式。 > - AX表示在domain层显示。 > - XA表示在project层显示。 > - AA表示在domain和project层均显示。 > - XX表示在domain和project层均不显示。 > - 自定义策略的显示模式只能为AX或者XA,不能在domain层和project层都显示(AA),或者在domain层和project层都不显示(XX)。 + + :param type: The type of this InheritedRoleResult. + :type type: str + """ + self._type = type + + @property + def policy(self): + """Gets the policy of this InheritedRoleResult. + + :return: The policy of this InheritedRoleResult. + :rtype: :class:`huaweicloudsdkiam.v3.RolePolicy` + """ + return self._policy + + @policy.setter + def policy(self, policy): + """Sets the policy of this InheritedRoleResult. + + :param policy: The policy of this InheritedRoleResult. + :type policy: :class:`huaweicloudsdkiam.v3.RolePolicy` + """ + self._policy = policy + + @property + def updated_time(self): + """Gets the updated_time of this InheritedRoleResult. + + 权限更新时间。 + + :return: The updated_time of this InheritedRoleResult. + :rtype: str + """ + return self._updated_time + + @updated_time.setter + def updated_time(self, updated_time): + """Sets the updated_time of this InheritedRoleResult. + + 权限更新时间。 + + :param updated_time: The updated_time of this InheritedRoleResult. + :type updated_time: str + """ + self._updated_time = updated_time + + @property + def created_time(self): + """Gets the created_time of this InheritedRoleResult. + + 权限创建时间。 + + :return: The created_time of this InheritedRoleResult. + :rtype: str + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this InheritedRoleResult. + + 权限创建时间。 + + :param created_time: The created_time of this InheritedRoleResult. + :type created_time: str + """ + self._created_time = created_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InheritedRoleResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_create_user_result.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_create_user_result.py index 88726079a..58bcb11be 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_create_user_result.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_create_user_result.py @@ -20,6 +20,7 @@ class KeystoneCreateUserResult: 'domain_id': 'str', 'name': 'str', 'description': 'str', + 'pwd_status': 'bool', 'password_expires_at': 'str', 'links': 'LinksSelf', 'id': 'str', @@ -30,13 +31,14 @@ class KeystoneCreateUserResult: 'domain_id': 'domain_id', 'name': 'name', 'description': 'description', + 'pwd_status': 'pwd_status', 'password_expires_at': 'password_expires_at', 'links': 'links', 'id': 'id', 'enabled': 'enabled' } - def __init__(self, domain_id=None, name=None, description=None, password_expires_at=None, links=None, id=None, enabled=None): + def __init__(self, domain_id=None, name=None, description=None, pwd_status=None, password_expires_at=None, links=None, id=None, enabled=None): """KeystoneCreateUserResult The model defined in huaweicloud sdk @@ -47,6 +49,8 @@ class KeystoneCreateUserResult: :type name: str :param description: IAM用户描述信息。 :type description: str + :param pwd_status: IAM用户密码状态。true:需要修改密码,false:正常;如果密码未设置,此字段可能不返回。 + :type pwd_status: bool :param password_expires_at: IAM用户密码过期时间(UTC时间),“null”表示密码不过期。 :type password_expires_at: str :param links: @@ -62,6 +66,7 @@ class KeystoneCreateUserResult: self._domain_id = None self._name = None self._description = None + self._pwd_status = None self._password_expires_at = None self._links = None self._id = None @@ -72,6 +77,8 @@ class KeystoneCreateUserResult: self.name = name if description is not None: self.description = description + if pwd_status is not None: + self.pwd_status = pwd_status self.password_expires_at = password_expires_at self.links = links self.id = id @@ -143,6 +150,28 @@ class KeystoneCreateUserResult: """ self._description = description + @property + def pwd_status(self): + """Gets the pwd_status of this KeystoneCreateUserResult. + + IAM用户密码状态。true:需要修改密码,false:正常;如果密码未设置,此字段可能不返回。 + + :return: The pwd_status of this KeystoneCreateUserResult. + :rtype: bool + """ + return self._pwd_status + + @pwd_status.setter + def pwd_status(self, pwd_status): + """Sets the pwd_status of this KeystoneCreateUserResult. + + IAM用户密码状态。true:需要修改密码,false:正常;如果密码未设置,此字段可能不返回。 + + :param pwd_status: The pwd_status of this KeystoneCreateUserResult. + :type pwd_status: bool + """ + self._pwd_status = pwd_status + @property def password_expires_at(self): """Gets the password_expires_at of this KeystoneCreateUserResult. diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_all_project_permissions_for_group_response.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_all_project_permissions_for_group_response.py index e8c27874f..3edf10c86 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_all_project_permissions_for_group_response.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_all_project_permissions_for_group_response.py @@ -19,17 +19,15 @@ class KeystoneListAllProjectPermissionsForGroupResponse(SdkResponse): openapi_types = { 'links': 'Links', - 'roles': 'list[RoleResult]', - 'total_number': 'int' + 'roles': 'list[InheritedRoleResult]' } attribute_map = { 'links': 'links', - 'roles': 'roles', - 'total_number': 'total_number' + 'roles': 'roles' } - def __init__(self, links=None, roles=None, total_number=None): + def __init__(self, links=None, roles=None): """KeystoneListAllProjectPermissionsForGroupResponse The model defined in huaweicloud sdk @@ -37,24 +35,19 @@ class KeystoneListAllProjectPermissionsForGroupResponse(SdkResponse): :param links: :type links: :class:`huaweicloudsdkiam.v3.Links` :param roles: 权限信息列表。 - :type roles: list[:class:`huaweicloudsdkiam.v3.RoleResult`] - :param total_number: 在查询参数存在domain_id时,返回自定义策略总数 - :type total_number: int + :type roles: list[:class:`huaweicloudsdkiam.v3.InheritedRoleResult`] """ super(KeystoneListAllProjectPermissionsForGroupResponse, self).__init__() self._links = None self._roles = None - self._total_number = None self.discriminator = None if links is not None: self.links = links if roles is not None: self.roles = roles - if total_number is not None: - self.total_number = total_number @property def links(self): @@ -81,7 +74,7 @@ class KeystoneListAllProjectPermissionsForGroupResponse(SdkResponse): 权限信息列表。 :return: The roles of this KeystoneListAllProjectPermissionsForGroupResponse. - :rtype: list[:class:`huaweicloudsdkiam.v3.RoleResult`] + :rtype: list[:class:`huaweicloudsdkiam.v3.InheritedRoleResult`] """ return self._roles @@ -92,32 +85,10 @@ class KeystoneListAllProjectPermissionsForGroupResponse(SdkResponse): 权限信息列表。 :param roles: The roles of this KeystoneListAllProjectPermissionsForGroupResponse. - :type roles: list[:class:`huaweicloudsdkiam.v3.RoleResult`] + :type roles: list[:class:`huaweicloudsdkiam.v3.InheritedRoleResult`] """ self._roles = roles - @property - def total_number(self): - """Gets the total_number of this KeystoneListAllProjectPermissionsForGroupResponse. - - 在查询参数存在domain_id时,返回自定义策略总数 - - :return: The total_number of this KeystoneListAllProjectPermissionsForGroupResponse. - :rtype: int - """ - return self._total_number - - @total_number.setter - def total_number(self, total_number): - """Sets the total_number of this KeystoneListAllProjectPermissionsForGroupResponse. - - 在查询参数存在domain_id时,返回自定义策略总数 - - :param total_number: The total_number of this KeystoneListAllProjectPermissionsForGroupResponse. - :type total_number: int - """ - self._total_number = total_number - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_users_result.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_users_result.py index 5097f57b3..bd69f7d2b 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_users_result.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_list_users_result.py @@ -26,7 +26,8 @@ class KeystoneListUsersResult: 'links': 'Links', 'id': 'str', 'enabled': 'bool', - 'pwd_strength': 'str' + 'pwd_strength': 'str', + 'access_mode': 'str' } attribute_map = { @@ -39,10 +40,11 @@ class KeystoneListUsersResult: 'links': 'links', 'id': 'id', 'enabled': 'enabled', - 'pwd_strength': 'pwd_strength' + 'pwd_strength': 'pwd_strength', + 'access_mode': 'access_mode' } - def __init__(self, pwd_status=None, domain_id=None, last_project_id=None, name=None, description=None, password_expires_at=None, links=None, id=None, enabled=None, pwd_strength=None): + def __init__(self, pwd_status=None, domain_id=None, last_project_id=None, name=None, description=None, password_expires_at=None, links=None, id=None, enabled=None, pwd_strength=None, access_mode=None): """KeystoneListUsersResult The model defined in huaweicloud sdk @@ -67,6 +69,8 @@ class KeystoneListUsersResult: :type enabled: bool :param pwd_strength: IAM用户的密码强度。high:密码强度高;mid:密码强度中等;low:密码强度低。 :type pwd_strength: str + :param access_mode: IAM用户访问方式。 - default:默认访问模式,编程访问和管理控制台访问。 - programmatic:编程访问。 - console:管理控制台访问。 + :type access_mode: str """ @@ -81,6 +85,7 @@ class KeystoneListUsersResult: self._id = None self._enabled = None self._pwd_strength = None + self._access_mode = None self.discriminator = None if pwd_status is not None: @@ -97,6 +102,8 @@ class KeystoneListUsersResult: self.enabled = enabled if pwd_strength is not None: self.pwd_strength = pwd_strength + if access_mode is not None: + self.access_mode = access_mode @property def pwd_status(self): @@ -314,6 +321,28 @@ class KeystoneListUsersResult: """ self._pwd_strength = pwd_strength + @property + def access_mode(self): + """Gets the access_mode of this KeystoneListUsersResult. + + IAM用户访问方式。 - default:默认访问模式,编程访问和管理控制台访问。 - programmatic:编程访问。 - console:管理控制台访问。 + + :return: The access_mode of this KeystoneListUsersResult. + :rtype: str + """ + return self._access_mode + + @access_mode.setter + def access_mode(self, access_mode): + """Sets the access_mode of this KeystoneListUsersResult. + + IAM用户访问方式。 - default:默认访问模式,编程访问和管理控制台访问。 - programmatic:编程访问。 - console:管理控制台访问。 + + :param access_mode: The access_mode of this KeystoneListUsersResult. + :type access_mode: str + """ + self._access_mode = access_mode + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_show_user_result.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_show_user_result.py index 8a6638bf0..bae80ef5c 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_show_user_result.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_show_user_result.py @@ -25,7 +25,8 @@ class KeystoneShowUserResult: 'password_expires_at': 'str', 'links': 'Links', 'id': 'str', - 'enabled': 'bool' + 'enabled': 'bool', + 'access_mode': 'str' } attribute_map = { @@ -37,10 +38,11 @@ class KeystoneShowUserResult: 'password_expires_at': 'password_expires_at', 'links': 'links', 'id': 'id', - 'enabled': 'enabled' + 'enabled': 'enabled', + 'access_mode': 'access_mode' } - def __init__(self, pwd_status=None, domain_id=None, last_project_id=None, name=None, description=None, password_expires_at=None, links=None, id=None, enabled=None): + def __init__(self, pwd_status=None, domain_id=None, last_project_id=None, name=None, description=None, password_expires_at=None, links=None, id=None, enabled=None, access_mode=None): """KeystoneShowUserResult The model defined in huaweicloud sdk @@ -63,6 +65,8 @@ class KeystoneShowUserResult: :type id: str :param enabled: IAM用户是否启用。true表示启用,false表示停用,默认为true。 :type enabled: bool + :param access_mode: IAM用户访问方式。 - default:默认访问模式,编程访问和管理控制台访问。 - programmatic:编程访问。 - console:管理控制台访问。 + :type access_mode: str """ @@ -76,6 +80,7 @@ class KeystoneShowUserResult: self._links = None self._id = None self._enabled = None + self._access_mode = None self.discriminator = None if pwd_status is not None: @@ -90,6 +95,8 @@ class KeystoneShowUserResult: self.links = links self.id = id self.enabled = enabled + if access_mode is not None: + self.access_mode = access_mode @property def pwd_status(self): @@ -285,6 +292,28 @@ class KeystoneShowUserResult: """ self._enabled = enabled + @property + def access_mode(self): + """Gets the access_mode of this KeystoneShowUserResult. + + IAM用户访问方式。 - default:默认访问模式,编程访问和管理控制台访问。 - programmatic:编程访问。 - console:管理控制台访问。 + + :return: The access_mode of this KeystoneShowUserResult. + :rtype: str + """ + return self._access_mode + + @access_mode.setter + def access_mode(self, access_mode): + """Sets the access_mode of this KeystoneShowUserResult. + + IAM用户访问方式。 - default:默认访问模式,编程访问和管理控制台访问。 - programmatic:编程访问。 - console:管理控制台访问。 + + :param access_mode: The access_mode of this KeystoneShowUserResult. + :type access_mode: str + """ + self._access_mode = access_mode + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_user_result.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_user_result.py index 60aac716d..01825f220 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_user_result.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_user_result.py @@ -27,7 +27,8 @@ class KeystoneUserResult: 'id': 'str', 'enabled': 'bool', 'pwd_strength': 'str', - 'extra': 'KeystoneUserResultExtra' + 'extra': 'KeystoneUserResultExtra', + 'access_mode': 'str' } attribute_map = { @@ -41,10 +42,11 @@ class KeystoneUserResult: 'id': 'id', 'enabled': 'enabled', 'pwd_strength': 'pwd_strength', - 'extra': 'extra' + 'extra': 'extra', + 'access_mode': 'access_mode' } - def __init__(self, pwd_status=None, domain_id=None, last_project_id=None, name=None, description=None, password_expires_at=None, links=None, id=None, enabled=None, pwd_strength=None, extra=None): + def __init__(self, pwd_status=None, domain_id=None, last_project_id=None, name=None, description=None, password_expires_at=None, links=None, id=None, enabled=None, pwd_strength=None, extra=None, access_mode=None): """KeystoneUserResult The model defined in huaweicloud sdk @@ -71,6 +73,8 @@ class KeystoneUserResult: :type pwd_strength: str :param extra: :type extra: :class:`huaweicloudsdkiam.v3.KeystoneUserResultExtra` + :param access_mode: IAM用户访问方式。 - default:默认访问模式,编程访问和管理控制台访问。 - programmatic:编程访问。 - console:管理控制台访问。 + :type access_mode: str """ @@ -86,6 +90,7 @@ class KeystoneUserResult: self._enabled = None self._pwd_strength = None self._extra = None + self._access_mode = None self.discriminator = None if pwd_status is not None: @@ -104,6 +109,8 @@ class KeystoneUserResult: self.pwd_strength = pwd_strength if extra is not None: self.extra = extra + if access_mode is not None: + self.access_mode = access_mode @property def pwd_status(self): @@ -339,6 +346,28 @@ class KeystoneUserResult: """ self._extra = extra + @property + def access_mode(self): + """Gets the access_mode of this KeystoneUserResult. + + IAM用户访问方式。 - default:默认访问模式,编程访问和管理控制台访问。 - programmatic:编程访问。 - console:管理控制台访问。 + + :return: The access_mode of this KeystoneUserResult. + :rtype: str + """ + return self._access_mode + + @access_mode.setter + def access_mode(self, access_mode): + """Sets the access_mode of this KeystoneUserResult. + + IAM用户访问方式。 - default:默认访问模式,编程访问和管理控制台访问。 - programmatic:编程访问。 - console:管理控制台访问。 + + :param access_mode: The access_mode of this KeystoneUserResult. + :type access_mode: str + """ + self._access_mode = access_mode + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/list_agencies_response.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/list_agencies_response.py index 393ddb4eb..bfcadddc6 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/list_agencies_response.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/list_agencies_response.py @@ -18,7 +18,7 @@ class ListAgenciesResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'agencies': 'list[AgencyResult]' + 'agencies': 'list[AgencyListResult]' } attribute_map = { @@ -31,7 +31,7 @@ class ListAgenciesResponse(SdkResponse): The model defined in huaweicloud sdk :param agencies: 委托信息列表。 - :type agencies: list[:class:`huaweicloudsdkiam.v3.AgencyResult`] + :type agencies: list[:class:`huaweicloudsdkiam.v3.AgencyListResult`] """ super(ListAgenciesResponse, self).__init__() @@ -49,7 +49,7 @@ class ListAgenciesResponse(SdkResponse): 委托信息列表。 :return: The agencies of this ListAgenciesResponse. - :rtype: list[:class:`huaweicloudsdkiam.v3.AgencyResult`] + :rtype: list[:class:`huaweicloudsdkiam.v3.AgencyListResult`] """ return self._agencies @@ -60,7 +60,7 @@ class ListAgenciesResponse(SdkResponse): 委托信息列表。 :param agencies: The agencies of this ListAgenciesResponse. - :type agencies: list[:class:`huaweicloudsdkiam.v3.AgencyResult`] + :type agencies: list[:class:`huaweicloudsdkiam.v3.AgencyListResult`] """ self._agencies = agencies diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/protocol_option.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/protocol_option.py index 2f9429110..b9b7db380 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/protocol_option.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/protocol_option.py @@ -38,7 +38,8 @@ class ProtocolOption: self._mapping_id = None self.discriminator = None - self.mapping_id = mapping_id + if mapping_id is not None: + self.mapping_id = mapping_id @property def mapping_id(self): diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/rules_local.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/rules_local.py index 2bdab0af7..69c3c787d 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/rules_local.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/rules_local.py @@ -18,17 +18,15 @@ class RulesLocal: openapi_types = { 'user': 'RulesLocalUser', - 'group': 'RulesLocalGroup', - 'groups': 'str' + 'group': 'RulesLocalGroup' } attribute_map = { 'user': 'user', - 'group': 'group', - 'groups': 'groups' + 'group': 'group' } - def __init__(self, user=None, group=None, groups=None): + def __init__(self, user=None, group=None): """RulesLocal The model defined in huaweicloud sdk @@ -37,23 +35,18 @@ class RulesLocal: :type user: :class:`huaweicloudsdkiam.v3.RulesLocalUser` :param group: :type group: :class:`huaweicloudsdkiam.v3.RulesLocalGroup` - :param groups: 联邦用户在本系统中所属用户组列表 - :type groups: str """ self._user = None self._group = None - self._groups = None self.discriminator = None if user is not None: self.user = user if group is not None: self.group = group - if groups is not None: - self.groups = groups @property def user(self): @@ -91,28 +84,6 @@ class RulesLocal: """ self._group = group - @property - def groups(self): - """Gets the groups of this RulesLocal. - - 联邦用户在本系统中所属用户组列表 - - :return: The groups of this RulesLocal. - :rtype: str - """ - return self._groups - - @groups.setter - def groups(self, groups): - """Sets the groups of this RulesLocal. - - 联邦用户在本系统中所属用户组列表 - - :param groups: The groups of this RulesLocal. - :type groups: str - """ - self._groups = groups - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/scoped_token_info.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/scoped_token_info.py index c49e8c384..3392dd072 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/scoped_token_info.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/scoped_token_info.py @@ -24,7 +24,7 @@ class ScopedTokenInfo: 'domain': 'DomainInfo', 'project': 'ProjectInfo', 'roles': 'list[ScopedTokenInfoRoles]', - 'catalog': 'list[UnscopedTokenInfoCatalog]' + 'catalog': 'list[UnscopedTokenInfoCatalogEndpoints]' } attribute_map = { @@ -58,7 +58,7 @@ class ScopedTokenInfo: :param roles: roles信息。 :type roles: list[:class:`huaweicloudsdkiam.v3.ScopedTokenInfoRoles`] :param catalog: catalog信息 - :type catalog: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalog`] + :type catalog: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalogEndpoints`] """ @@ -233,7 +233,7 @@ class ScopedTokenInfo: catalog信息 :return: The catalog of this ScopedTokenInfo. - :rtype: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalog`] + :rtype: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalogEndpoints`] """ return self._catalog @@ -244,7 +244,7 @@ class ScopedTokenInfo: catalog信息 :param catalog: The catalog of this ScopedTokenInfo. - :type catalog: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalog`] + :type catalog: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalogEndpoints`] """ self._catalog = catalog diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/show_agency_response.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/show_agency_response.py index a56757b26..0712e4852 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/show_agency_response.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/show_agency_response.py @@ -18,7 +18,7 @@ class ShowAgencyResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'agency': 'AgencyResult' + 'agency': 'AgencyShowResult' } attribute_map = { @@ -31,7 +31,7 @@ class ShowAgencyResponse(SdkResponse): The model defined in huaweicloud sdk :param agency: - :type agency: :class:`huaweicloudsdkiam.v3.AgencyResult` + :type agency: :class:`huaweicloudsdkiam.v3.AgencyShowResult` """ super(ShowAgencyResponse, self).__init__() @@ -47,7 +47,7 @@ class ShowAgencyResponse(SdkResponse): """Gets the agency of this ShowAgencyResponse. :return: The agency of this ShowAgencyResponse. - :rtype: :class:`huaweicloudsdkiam.v3.AgencyResult` + :rtype: :class:`huaweicloudsdkiam.v3.AgencyShowResult` """ return self._agency @@ -56,7 +56,7 @@ class ShowAgencyResponse(SdkResponse): """Sets the agency of this ShowAgencyResponse. :param agency: The agency of this ShowAgencyResponse. - :type agency: :class:`huaweicloudsdkiam.v3.AgencyResult` + :type agency: :class:`huaweicloudsdkiam.v3.AgencyShowResult` """ self._agency = agency diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/show_user_result.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/show_user_result.py index 9c9921b95..244f97cfa 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/show_user_result.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/show_user_result.py @@ -34,7 +34,9 @@ class ShowUserResult: 'pwd_strength': 'str', 'is_domain_owner': 'bool', 'access_mode': 'str', - 'description': 'str' + 'description': 'str', + 'pwd_create_time': 'str', + 'modify_pwd_time': 'str' } attribute_map = { @@ -55,10 +57,12 @@ class ShowUserResult: 'pwd_strength': 'pwd_strength', 'is_domain_owner': 'is_domain_owner', 'access_mode': 'access_mode', - 'description': 'description' + 'description': 'description', + 'pwd_create_time': 'pwd_create_time', + 'modify_pwd_time': 'modify_pwd_time' } - def __init__(self, enabled=None, id=None, domain_id=None, name=None, links=None, xuser_id=None, xuser_type=None, areacode=None, email=None, phone=None, pwd_status=None, update_time=None, create_time=None, last_login_time=None, pwd_strength=None, is_domain_owner=None, access_mode=None, description=None): + def __init__(self, enabled=None, id=None, domain_id=None, name=None, links=None, xuser_id=None, xuser_type=None, areacode=None, email=None, phone=None, pwd_status=None, update_time=None, create_time=None, last_login_time=None, pwd_strength=None, is_domain_owner=None, access_mode=None, description=None, pwd_create_time=None, modify_pwd_time=None): """ShowUserResult The model defined in huaweicloud sdk @@ -99,6 +103,10 @@ class ShowUserResult: :type access_mode: str :param description: IAM用户描述信息 :type description: str + :param pwd_create_time: IAM用户密码创建更新时间。 + :type pwd_create_time: str + :param modify_pwd_time: IAM用户更新时间。 + :type modify_pwd_time: str """ @@ -121,6 +129,8 @@ class ShowUserResult: self._is_domain_owner = None self._access_mode = None self._description = None + self._pwd_create_time = None + self._modify_pwd_time = None self.discriminator = None self.enabled = enabled @@ -151,6 +161,10 @@ class ShowUserResult: self.is_domain_owner = is_domain_owner self.access_mode = access_mode self.description = description + if pwd_create_time is not None: + self.pwd_create_time = pwd_create_time + if modify_pwd_time is not None: + self.modify_pwd_time = modify_pwd_time @property def enabled(self): @@ -544,6 +558,50 @@ class ShowUserResult: """ self._description = description + @property + def pwd_create_time(self): + """Gets the pwd_create_time of this ShowUserResult. + + IAM用户密码创建更新时间。 + + :return: The pwd_create_time of this ShowUserResult. + :rtype: str + """ + return self._pwd_create_time + + @pwd_create_time.setter + def pwd_create_time(self, pwd_create_time): + """Sets the pwd_create_time of this ShowUserResult. + + IAM用户密码创建更新时间。 + + :param pwd_create_time: The pwd_create_time of this ShowUserResult. + :type pwd_create_time: str + """ + self._pwd_create_time = pwd_create_time + + @property + def modify_pwd_time(self): + """Gets the modify_pwd_time of this ShowUserResult. + + IAM用户更新时间。 + + :return: The modify_pwd_time of this ShowUserResult. + :rtype: str + """ + return self._modify_pwd_time + + @modify_pwd_time.setter + def modify_pwd_time(self, modify_pwd_time): + """Sets the modify_pwd_time of this ShowUserResult. + + IAM用户更新时间。 + + :param modify_pwd_time: The modify_pwd_time of this ShowUserResult. + :type modify_pwd_time: str + """ + self._modify_pwd_time = modify_pwd_time + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/unscoped_token_info.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/unscoped_token_info.py index 20aca2829..3f6ffcb34 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/unscoped_token_info.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/unscoped_token_info.py @@ -22,7 +22,7 @@ class UnscopedTokenInfo: 'issued_at': 'str', 'user': 'FederationUserBody', 'roles': 'list[UnscopedTokenInfoRoles]', - 'catalog': 'list[UnscopedTokenInfoCatalog]' + 'catalog': 'UnscopedTokenInfoCatalog' } attribute_map = { @@ -49,8 +49,8 @@ class UnscopedTokenInfo: :type user: :class:`huaweicloudsdkiam.v3.FederationUserBody` :param roles: roles信息。 :type roles: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoRoles`] - :param catalog: catalog信息。 - :type catalog: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalog`] + :param catalog: + :type catalog: :class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalog` """ @@ -182,10 +182,8 @@ class UnscopedTokenInfo: def catalog(self): """Gets the catalog of this UnscopedTokenInfo. - catalog信息。 - :return: The catalog of this UnscopedTokenInfo. - :rtype: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalog`] + :rtype: :class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalog` """ return self._catalog @@ -193,10 +191,8 @@ class UnscopedTokenInfo: def catalog(self, catalog): """Sets the catalog of this UnscopedTokenInfo. - catalog信息。 - :param catalog: The catalog of this UnscopedTokenInfo. - :type catalog: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalog`] + :type catalog: :class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalog` """ self._catalog = catalog diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/unscoped_token_info_catalog.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/unscoped_token_info_catalog.py index 308519b58..065caf9fd 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/unscoped_token_info_catalog.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/unscoped_token_info_catalog.py @@ -18,56 +18,56 @@ class UnscopedTokenInfoCatalog: openapi_types = { 'id': 'str', - 'interface': 'str', - 'region': 'str', - 'region_id': 'str', - 'url': 'str' + 'name': 'str', + 'type': 'str', + 'endpoints': 'list[UnscopedTokenInfoCatalogEndpoints]', + 'description': 'object' } attribute_map = { 'id': 'id', - 'interface': 'interface', - 'region': 'region', - 'region_id': 'region_id', - 'url': 'url' + 'name': 'name', + 'type': 'type', + 'endpoints': 'endpoints', + 'description': 'description' } - def __init__(self, id=None, interface=None, region=None, region_id=None, url=None): + def __init__(self, id=None, name=None, type=None, endpoints=None, description=None): """UnscopedTokenInfoCatalog The model defined in huaweicloud sdk :param id: 终端节点ID。 :type id: str - :param interface: 接口类型,描述接口在该终端节点的可见性。值为“public”,表示该接口为公开接口。 - :type interface: str - :param region: 终端节点所属区域。 - :type region: str - :param region_id: 终端节点所属区域ID。 - :type region_id: str - :param url: 终端节点的URL。 - :type url: str + :param name: 服务名称。 + :type name: str + :param type: 该接口所属服务。 + :type type: str + :param endpoints: + :type endpoints: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalogEndpoints`] + :param description: + :type description: object """ self._id = None - self._interface = None - self._region = None - self._region_id = None - self._url = None + self._name = None + self._type = None + self._endpoints = None + self._description = None self.discriminator = None if id is not None: self.id = id - if interface is not None: - self.interface = interface - if region is not None: - self.region = region - if region_id is not None: - self.region_id = region_id - if url is not None: - self.url = url + if name is not None: + self.name = name + if type is not None: + self.type = type + if endpoints is not None: + self.endpoints = endpoints + if description is not None: + self.description = description @property def id(self): @@ -92,92 +92,84 @@ class UnscopedTokenInfoCatalog: self._id = id @property - def interface(self): - """Gets the interface of this UnscopedTokenInfoCatalog. + def name(self): + """Gets the name of this UnscopedTokenInfoCatalog. - 接口类型,描述接口在该终端节点的可见性。值为“public”,表示该接口为公开接口。 + 服务名称。 - :return: The interface of this UnscopedTokenInfoCatalog. + :return: The name of this UnscopedTokenInfoCatalog. :rtype: str """ - return self._interface + return self._name - @interface.setter - def interface(self, interface): - """Sets the interface of this UnscopedTokenInfoCatalog. + @name.setter + def name(self, name): + """Sets the name of this UnscopedTokenInfoCatalog. - 接口类型,描述接口在该终端节点的可见性。值为“public”,表示该接口为公开接口。 + 服务名称。 - :param interface: The interface of this UnscopedTokenInfoCatalog. - :type interface: str + :param name: The name of this UnscopedTokenInfoCatalog. + :type name: str """ - self._interface = interface + self._name = name @property - def region(self): - """Gets the region of this UnscopedTokenInfoCatalog. + def type(self): + """Gets the type of this UnscopedTokenInfoCatalog. - 终端节点所属区域。 + 该接口所属服务。 - :return: The region of this UnscopedTokenInfoCatalog. + :return: The type of this UnscopedTokenInfoCatalog. :rtype: str """ - return self._region + return self._type - @region.setter - def region(self, region): - """Sets the region of this UnscopedTokenInfoCatalog. + @type.setter + def type(self, type): + """Sets the type of this UnscopedTokenInfoCatalog. - 终端节点所属区域。 + 该接口所属服务。 - :param region: The region of this UnscopedTokenInfoCatalog. - :type region: str + :param type: The type of this UnscopedTokenInfoCatalog. + :type type: str """ - self._region = region + self._type = type @property - def region_id(self): - """Gets the region_id of this UnscopedTokenInfoCatalog. + def endpoints(self): + """Gets the endpoints of this UnscopedTokenInfoCatalog. - 终端节点所属区域ID。 - - :return: The region_id of this UnscopedTokenInfoCatalog. - :rtype: str + :return: The endpoints of this UnscopedTokenInfoCatalog. + :rtype: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalogEndpoints`] """ - return self._region_id + return self._endpoints - @region_id.setter - def region_id(self, region_id): - """Sets the region_id of this UnscopedTokenInfoCatalog. + @endpoints.setter + def endpoints(self, endpoints): + """Sets the endpoints of this UnscopedTokenInfoCatalog. - 终端节点所属区域ID。 - - :param region_id: The region_id of this UnscopedTokenInfoCatalog. - :type region_id: str + :param endpoints: The endpoints of this UnscopedTokenInfoCatalog. + :type endpoints: list[:class:`huaweicloudsdkiam.v3.UnscopedTokenInfoCatalogEndpoints`] """ - self._region_id = region_id + self._endpoints = endpoints @property - def url(self): - """Gets the url of this UnscopedTokenInfoCatalog. + def description(self): + """Gets the description of this UnscopedTokenInfoCatalog. - 终端节点的URL。 - - :return: The url of this UnscopedTokenInfoCatalog. - :rtype: str + :return: The description of this UnscopedTokenInfoCatalog. + :rtype: object """ - return self._url + return self._description - @url.setter - def url(self, url): - """Sets the url of this UnscopedTokenInfoCatalog. + @description.setter + def description(self, description): + """Sets the description of this UnscopedTokenInfoCatalog. - 终端节点的URL。 - - :param url: The url of this UnscopedTokenInfoCatalog. - :type url: str + :param description: The description of this UnscopedTokenInfoCatalog. + :type description: object """ - self._url = url + self._description = description def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/unscoped_token_info_catalog_endpoints.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/unscoped_token_info_catalog_endpoints.py new file mode 100644 index 000000000..ee3394398 --- /dev/null +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/unscoped_token_info_catalog_endpoints.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnscopedTokenInfoCatalogEndpoints: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'interface': 'str', + 'region': 'str', + 'region_id': 'str', + 'url': 'str' + } + + attribute_map = { + 'id': 'id', + 'interface': 'interface', + 'region': 'region', + 'region_id': 'region_id', + 'url': 'url' + } + + def __init__(self, id=None, interface=None, region=None, region_id=None, url=None): + """UnscopedTokenInfoCatalogEndpoints + + The model defined in huaweicloud sdk + + :param id: 终端节点ID。 + :type id: str + :param interface: 接口类型,描述接口在该终端节点的可见性。值为“public”,表示该接口为公开接口。 + :type interface: str + :param region: 终端节点所属区域。 + :type region: str + :param region_id: 终端节点所属区域ID。 + :type region_id: str + :param url: 终端节点的URL。 + :type url: str + """ + + + + self._id = None + self._interface = None + self._region = None + self._region_id = None + self._url = None + self.discriminator = None + + if id is not None: + self.id = id + if interface is not None: + self.interface = interface + if region is not None: + self.region = region + if region_id is not None: + self.region_id = region_id + if url is not None: + self.url = url + + @property + def id(self): + """Gets the id of this UnscopedTokenInfoCatalogEndpoints. + + 终端节点ID。 + + :return: The id of this UnscopedTokenInfoCatalogEndpoints. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UnscopedTokenInfoCatalogEndpoints. + + 终端节点ID。 + + :param id: The id of this UnscopedTokenInfoCatalogEndpoints. + :type id: str + """ + self._id = id + + @property + def interface(self): + """Gets the interface of this UnscopedTokenInfoCatalogEndpoints. + + 接口类型,描述接口在该终端节点的可见性。值为“public”,表示该接口为公开接口。 + + :return: The interface of this UnscopedTokenInfoCatalogEndpoints. + :rtype: str + """ + return self._interface + + @interface.setter + def interface(self, interface): + """Sets the interface of this UnscopedTokenInfoCatalogEndpoints. + + 接口类型,描述接口在该终端节点的可见性。值为“public”,表示该接口为公开接口。 + + :param interface: The interface of this UnscopedTokenInfoCatalogEndpoints. + :type interface: str + """ + self._interface = interface + + @property + def region(self): + """Gets the region of this UnscopedTokenInfoCatalogEndpoints. + + 终端节点所属区域。 + + :return: The region of this UnscopedTokenInfoCatalogEndpoints. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this UnscopedTokenInfoCatalogEndpoints. + + 终端节点所属区域。 + + :param region: The region of this UnscopedTokenInfoCatalogEndpoints. + :type region: str + """ + self._region = region + + @property + def region_id(self): + """Gets the region_id of this UnscopedTokenInfoCatalogEndpoints. + + 终端节点所属区域ID。 + + :return: The region_id of this UnscopedTokenInfoCatalogEndpoints. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this UnscopedTokenInfoCatalogEndpoints. + + 终端节点所属区域ID。 + + :param region_id: The region_id of this UnscopedTokenInfoCatalogEndpoints. + :type region_id: str + """ + self._region_id = region_id + + @property + def url(self): + """Gets the url of this UnscopedTokenInfoCatalogEndpoints. + + 终端节点的URL。 + + :return: The url of this UnscopedTokenInfoCatalogEndpoints. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this UnscopedTokenInfoCatalogEndpoints. + + 终端节点的URL。 + + :param url: The url of this UnscopedTokenInfoCatalogEndpoints. + :type url: str + """ + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnscopedTokenInfoCatalogEndpoints): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/update_agency_response.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/update_agency_response.py index d7252dc11..2dba7e186 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/update_agency_response.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/update_agency_response.py @@ -18,7 +18,7 @@ class UpdateAgencyResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'agency': 'AgencyResult' + 'agency': 'AgencyUpdateResult' } attribute_map = { @@ -31,7 +31,7 @@ class UpdateAgencyResponse(SdkResponse): The model defined in huaweicloud sdk :param agency: - :type agency: :class:`huaweicloudsdkiam.v3.AgencyResult` + :type agency: :class:`huaweicloudsdkiam.v3.AgencyUpdateResult` """ super(UpdateAgencyResponse, self).__init__() @@ -47,7 +47,7 @@ class UpdateAgencyResponse(SdkResponse): """Gets the agency of this UpdateAgencyResponse. :return: The agency of this UpdateAgencyResponse. - :rtype: :class:`huaweicloudsdkiam.v3.AgencyResult` + :rtype: :class:`huaweicloudsdkiam.v3.AgencyUpdateResult` """ return self._agency @@ -56,7 +56,7 @@ class UpdateAgencyResponse(SdkResponse): """Sets the agency of this UpdateAgencyResponse. :param agency: The agency of this UpdateAgencyResponse. - :type agency: :class:`huaweicloudsdkiam.v3.AgencyResult` + :type agency: :class:`huaweicloudsdkiam.v3.AgencyUpdateResult` """ self._agency = agency diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/update_user_option.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/update_user_option.py index 8b3335f1d..131dccaba 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/update_user_option.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/update_user_option.py @@ -17,6 +17,10 @@ class UpdateUserOption: sensitive_list = [] openapi_types = { + 'create_time': 'str', + 'xdomain_id': 'str', + 'xdomain_type': 'str', + 'is_domain_owner': 'bool', 'access_mode': 'str', 'name': 'str', 'password': 'str', @@ -31,6 +35,10 @@ class UpdateUserOption: } attribute_map = { + 'create_time': 'create_time', + 'xdomain_id': 'xdomain_id', + 'xdomain_type': 'xdomain_type', + 'is_domain_owner': 'is_domain_owner', 'access_mode': 'access_mode', 'name': 'name', 'password': 'password', @@ -44,11 +52,19 @@ class UpdateUserOption: 'description': 'description' } - def __init__(self, access_mode=None, name=None, password=None, email=None, areacode=None, phone=None, enabled=None, pwd_status=None, xuser_type=None, xuser_id=None, description=None): + def __init__(self, create_time=None, xdomain_id=None, xdomain_type=None, is_domain_owner=None, access_mode=None, name=None, password=None, email=None, areacode=None, phone=None, enabled=None, pwd_status=None, xuser_type=None, xuser_id=None, description=None): """UpdateUserOption The model defined in huaweicloud sdk + :param create_time: + :type create_time: str + :param xdomain_id: IAM用户在外部系统中的ID。 >外部系统指与华为云对接的外部企业管理系统,xaccount_type、xaccount_id、xdomain_type、xdomain_id、xuser_type、xuser_id等参数值,无法在华为云获取,请咨询企业管理员。 + :type xdomain_id: str + :param xdomain_type: IAM用户在外部系统中的类型。 >外部系统指与华为云对接的外部企业管理系统,xaccount_type、xaccount_id、xdomain_type、xdomain_id、xuser_type、xuser_id等参数值,无法在华为云获取,请咨询企业管理员。 + :type xdomain_type: str + :param is_domain_owner: IAM用户是否为账号管理员。 + :type is_domain_owner: bool :param access_mode: IAM用户访问方式。 - default:默认访问模式,编程访问和管理控制台访问。 - programmatic:编程访问。 - console:管理控制台访问。 :type access_mode: str :param name: 新IAM用户名,长度1~64之间,只能包含如下字符:大小写字母、空格、数字或特殊字符(-_.)且不能以数字开头。 @@ -75,6 +91,10 @@ class UpdateUserOption: + self._create_time = None + self._xdomain_id = None + self._xdomain_type = None + self._is_domain_owner = None self._access_mode = None self._name = None self._password = None @@ -88,6 +108,14 @@ class UpdateUserOption: self._description = None self.discriminator = None + if create_time is not None: + self.create_time = create_time + if xdomain_id is not None: + self.xdomain_id = xdomain_id + if xdomain_type is not None: + self.xdomain_type = xdomain_type + if is_domain_owner is not None: + self.is_domain_owner = is_domain_owner if access_mode is not None: self.access_mode = access_mode if name is not None: @@ -111,6 +139,94 @@ class UpdateUserOption: if description is not None: self.description = description + @property + def create_time(self): + """Gets the create_time of this UpdateUserOption. + + + + :return: The create_time of this UpdateUserOption. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this UpdateUserOption. + + + + :param create_time: The create_time of this UpdateUserOption. + :type create_time: str + """ + self._create_time = create_time + + @property + def xdomain_id(self): + """Gets the xdomain_id of this UpdateUserOption. + + IAM用户在外部系统中的ID。 >外部系统指与华为云对接的外部企业管理系统,xaccount_type、xaccount_id、xdomain_type、xdomain_id、xuser_type、xuser_id等参数值,无法在华为云获取,请咨询企业管理员。 + + :return: The xdomain_id of this UpdateUserOption. + :rtype: str + """ + return self._xdomain_id + + @xdomain_id.setter + def xdomain_id(self, xdomain_id): + """Sets the xdomain_id of this UpdateUserOption. + + IAM用户在外部系统中的ID。 >外部系统指与华为云对接的外部企业管理系统,xaccount_type、xaccount_id、xdomain_type、xdomain_id、xuser_type、xuser_id等参数值,无法在华为云获取,请咨询企业管理员。 + + :param xdomain_id: The xdomain_id of this UpdateUserOption. + :type xdomain_id: str + """ + self._xdomain_id = xdomain_id + + @property + def xdomain_type(self): + """Gets the xdomain_type of this UpdateUserOption. + + IAM用户在外部系统中的类型。 >外部系统指与华为云对接的外部企业管理系统,xaccount_type、xaccount_id、xdomain_type、xdomain_id、xuser_type、xuser_id等参数值,无法在华为云获取,请咨询企业管理员。 + + :return: The xdomain_type of this UpdateUserOption. + :rtype: str + """ + return self._xdomain_type + + @xdomain_type.setter + def xdomain_type(self, xdomain_type): + """Sets the xdomain_type of this UpdateUserOption. + + IAM用户在外部系统中的类型。 >外部系统指与华为云对接的外部企业管理系统,xaccount_type、xaccount_id、xdomain_type、xdomain_id、xuser_type、xuser_id等参数值,无法在华为云获取,请咨询企业管理员。 + + :param xdomain_type: The xdomain_type of this UpdateUserOption. + :type xdomain_type: str + """ + self._xdomain_type = xdomain_type + + @property + def is_domain_owner(self): + """Gets the is_domain_owner of this UpdateUserOption. + + IAM用户是否为账号管理员。 + + :return: The is_domain_owner of this UpdateUserOption. + :rtype: bool + """ + return self._is_domain_owner + + @is_domain_owner.setter + def is_domain_owner(self, is_domain_owner): + """Sets the is_domain_owner of this UpdateUserOption. + + IAM用户是否为账号管理员。 + + :param is_domain_owner: The is_domain_owner of this UpdateUserOption. + :type is_domain_owner: bool + """ + self._is_domain_owner = is_domain_owner + @property def access_mode(self): """Gets the access_mode of this UpdateUserOption. diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index 1859db05e..849ed54a8 100644 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt +++ b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-iamaccessanalyzer/setup.py b/huaweicloud-sdk-iamaccessanalyzer/setup.py index 3dc35e186..cb43d3317 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/setup.py +++ b/huaweicloud-sdk-iamaccessanalyzer/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiamaccessanalyzer" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenter/requirements.txt b/huaweicloud-sdk-identitycenter/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-identitycenter/requirements.txt +++ b/huaweicloud-sdk-identitycenter/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenter/setup.py b/huaweicloud-sdk-identitycenter/setup.py index 1157c7ba1..35a412c04 100644 --- a/huaweicloud-sdk-identitycenter/setup.py +++ b/huaweicloud-sdk-identitycenter/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenter" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenterstore/requirements.txt b/huaweicloud-sdk-identitycenterstore/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-identitycenterstore/requirements.txt +++ b/huaweicloud-sdk-identitycenterstore/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenterstore/setup.py b/huaweicloud-sdk-identitycenterstore/setup.py index b3e6bf6ed..68b9ed8b5 100644 --- a/huaweicloud-sdk-identitycenterstore/setup.py +++ b/huaweicloud-sdk-identitycenterstore/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenterstore" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idme/requirements.txt b/huaweicloud-sdk-idme/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-idme/requirements.txt +++ b/huaweicloud-sdk-idme/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-idme/setup.py b/huaweicloud-sdk-idme/setup.py index eba925f92..851aebe9c 100644 --- a/huaweicloud-sdk-idme/setup.py +++ b/huaweicloud-sdk-idme/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkidme" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/__init__.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/__init__.py index a78465819..0e8b44d7c 100644 --- a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/__init__.py +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/__init__.py @@ -91,6 +91,8 @@ from huaweicloudsdkidmeclassicapi.v1.model.delete_logical_branch_request import from huaweicloudsdkidmeclassicapi.v1.model.delete_logical_branch_response import DeleteLogicalBranchResponse from huaweicloudsdkidmeclassicapi.v1.model.delete_logical_latest_version_request import DeleteLogicalLatestVersionRequest from huaweicloudsdkidmeclassicapi.v1.model.delete_logical_latest_version_response import DeleteLogicalLatestVersionResponse +from huaweicloudsdkidmeclassicapi.v1.model.delete_multi_view_request import DeleteMultiViewRequest +from huaweicloudsdkidmeclassicapi.v1.model.delete_multi_view_response import DeleteMultiViewResponse from huaweicloudsdkidmeclassicapi.v1.model.delete_target_request import DeleteTargetRequest from huaweicloudsdkidmeclassicapi.v1.model.delete_target_response import DeleteTargetResponse from huaweicloudsdkidmeclassicapi.v1.model.delete_using_post_request import DeleteUsingPostRequest @@ -140,6 +142,7 @@ from huaweicloudsdkidmeclassicapi.v1.model.mong_page_request import MongPageRequ from huaweicloudsdkidmeclassicapi.v1.model.multi_view_item_view_dto import MultiViewItemViewDTO from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_branch_view_dto import MultiViewModelBranchViewDTO from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_create_dto import MultiViewModelCreateDTO +from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_master_id_modifier_dto import MultiViewModelMasterIdModifierDTO from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_master_view_dto import MultiViewModelMasterViewDTO from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_version_view_create_dto import MultiViewModelVersionViewCreateDTO from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_view_dto import MultiViewModelViewDTO @@ -194,6 +197,7 @@ from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_list_version_model_versi from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_list_version_model_version_update_dto import RDMParamVOListVersionModelVersionUpdateDTO from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_mong_page_request import RDMParamVOMongPageRequest from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_multi_view_model_dto import RDMParamVOMultiViewModelDTO +from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_multi_view_model_master_id_modifier_dto import RDMParamVOMultiViewModelMasterIdModifierDTO from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_multi_view_model_version_view_create_dto import RDMParamVOMultiViewModelVersionViewCreateDTO from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_persist_object_id_dto import RDMParamVOPersistObjectIdDTO from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_persist_object_id_decrypt_dto import RDMParamVOPersistObjectIdDecryptDTO diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/idmeclassicapi_async_client.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/idmeclassicapi_async_client.py index 70a7c1f72..ac7cafd64 100644 --- a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/idmeclassicapi_async_client.py +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/idmeclassicapi_async_client.py @@ -2128,7 +2128,7 @@ class IDMEClassicAPIAsyncClient(Client): def _create_multi_view_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/rdm_{identifier}_app/publicservices/api/MultiViewModel/create", + "resource_path": "/rdm_{identifier}_app/publicservices/api/{mvModelName}/create", "request_type": request.__class__.__name__, "response_type": "CreateMultiViewResponse" } @@ -2140,6 +2140,8 @@ class IDMEClassicAPIAsyncClient(Client): collection_formats = {} path_params = {} + if 'mv_model_name' in local_var_params: + path_params['mvModelName'] = local_var_params['mv_model_name'] if 'identifier' in local_var_params: path_params['identifier'] = local_var_params['identifier'] @@ -2402,7 +2404,7 @@ class IDMEClassicAPIAsyncClient(Client): def _delete_by_condition_multi_view_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/rdm_{identifier}_app/publicservices/api/MultiViewModel/deleteByCondition", + "resource_path": "/rdm_{identifier}_app/publicservices/api/{mvModelName}/deleteByCondition", "request_type": request.__class__.__name__, "response_type": "DeleteByConditionMultiViewResponse" } @@ -2414,6 +2416,8 @@ class IDMEClassicAPIAsyncClient(Client): collection_formats = {} path_params = {} + if 'mv_model_name' in local_var_params: + path_params['mvModelName'] = local_var_params['mv_model_name'] if 'identifier' in local_var_params: path_params['identifier'] = local_var_params['identifier'] @@ -2725,6 +2729,75 @@ class IDMEClassicAPIAsyncClient(Client): return http_info + def delete_multi_view_async(self, request): + """删除模型 + + 删除多视图对象。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteMultiView + :type request: :class:`huaweicloudsdkidmeclassicapi.v1.DeleteMultiViewRequest` + :rtype: :class:`huaweicloudsdkidmeclassicapi.v1.DeleteMultiViewResponse` + """ + http_info = self._delete_multi_view_http_info(request) + return self._call_api(**http_info) + + def delete_multi_view_async_invoker(self, request): + http_info = self._delete_multi_view_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_multi_view_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/rdm_{identifier}_app/publicservices/api/{mvModelName}/delete", + "request_type": request.__class__.__name__, + "response_type": "DeleteMultiViewResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'mv_model_name' in local_var_params: + path_params['mvModelName'] = local_var_params['mv_model_name'] + if 'identifier' in local_var_params: + path_params['identifier'] = local_var_params['identifier'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_target_async(self, request): """通过目标模型删除关系实体的数据实例 @@ -4084,7 +4157,7 @@ class IDMEClassicAPIAsyncClient(Client): """刷新树形节点 调用该接口刷新指定数据实例对应的节点全路径。在调用该接口前请确保数据模型具有“树形结构”功能。 - 调用该接口时,如果未指定数据实例或指定的数据实例为父节点,则刷新整颗树的所有节点全路径。 + 调用该接口时,如果未指定数据实例或指定的数据实例为父节点,则刷新整棵树的所有节点全路径。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/idmeclassicapi_client.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/idmeclassicapi_client.py index 89c52f497..d2a3c5c8d 100644 --- a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/idmeclassicapi_client.py +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/idmeclassicapi_client.py @@ -2128,7 +2128,7 @@ class IDMEClassicAPIClient(Client): def _create_multi_view_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/rdm_{identifier}_app/publicservices/api/MultiViewModel/create", + "resource_path": "/rdm_{identifier}_app/publicservices/api/{mvModelName}/create", "request_type": request.__class__.__name__, "response_type": "CreateMultiViewResponse" } @@ -2140,6 +2140,8 @@ class IDMEClassicAPIClient(Client): collection_formats = {} path_params = {} + if 'mv_model_name' in local_var_params: + path_params['mvModelName'] = local_var_params['mv_model_name'] if 'identifier' in local_var_params: path_params['identifier'] = local_var_params['identifier'] @@ -2402,7 +2404,7 @@ class IDMEClassicAPIClient(Client): def _delete_by_condition_multi_view_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/rdm_{identifier}_app/publicservices/api/MultiViewModel/deleteByCondition", + "resource_path": "/rdm_{identifier}_app/publicservices/api/{mvModelName}/deleteByCondition", "request_type": request.__class__.__name__, "response_type": "DeleteByConditionMultiViewResponse" } @@ -2414,6 +2416,8 @@ class IDMEClassicAPIClient(Client): collection_formats = {} path_params = {} + if 'mv_model_name' in local_var_params: + path_params['mvModelName'] = local_var_params['mv_model_name'] if 'identifier' in local_var_params: path_params['identifier'] = local_var_params['identifier'] @@ -2725,6 +2729,75 @@ class IDMEClassicAPIClient(Client): return http_info + def delete_multi_view(self, request): + """删除模型 + + 删除多视图对象。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteMultiView + :type request: :class:`huaweicloudsdkidmeclassicapi.v1.DeleteMultiViewRequest` + :rtype: :class:`huaweicloudsdkidmeclassicapi.v1.DeleteMultiViewResponse` + """ + http_info = self._delete_multi_view_http_info(request) + return self._call_api(**http_info) + + def delete_multi_view_invoker(self, request): + http_info = self._delete_multi_view_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_multi_view_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/rdm_{identifier}_app/publicservices/api/{mvModelName}/delete", + "request_type": request.__class__.__name__, + "response_type": "DeleteMultiViewResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'mv_model_name' in local_var_params: + path_params['mvModelName'] = local_var_params['mv_model_name'] + if 'identifier' in local_var_params: + path_params['identifier'] = local_var_params['identifier'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def delete_target(self, request): """通过目标模型删除关系实体的数据实例 @@ -4084,7 +4157,7 @@ class IDMEClassicAPIClient(Client): """刷新树形节点 调用该接口刷新指定数据实例对应的节点全路径。在调用该接口前请确保数据模型具有“树形结构”功能。 - 调用该接口时,如果未指定数据实例或指定的数据实例为父节点,则刷新整颗树的所有节点全路径。 + 调用该接口时,如果未指定数据实例或指定的数据实例为父节点,则刷新整棵树的所有节点全路径。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/__init__.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/__init__.py index 1b39aa7dd..6af649be0 100644 --- a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/__init__.py +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/__init__.py @@ -89,6 +89,8 @@ from huaweicloudsdkidmeclassicapi.v1.model.delete_logical_branch_request import from huaweicloudsdkidmeclassicapi.v1.model.delete_logical_branch_response import DeleteLogicalBranchResponse from huaweicloudsdkidmeclassicapi.v1.model.delete_logical_latest_version_request import DeleteLogicalLatestVersionRequest from huaweicloudsdkidmeclassicapi.v1.model.delete_logical_latest_version_response import DeleteLogicalLatestVersionResponse +from huaweicloudsdkidmeclassicapi.v1.model.delete_multi_view_request import DeleteMultiViewRequest +from huaweicloudsdkidmeclassicapi.v1.model.delete_multi_view_response import DeleteMultiViewResponse from huaweicloudsdkidmeclassicapi.v1.model.delete_target_request import DeleteTargetRequest from huaweicloudsdkidmeclassicapi.v1.model.delete_target_response import DeleteTargetResponse from huaweicloudsdkidmeclassicapi.v1.model.delete_using_post_request import DeleteUsingPostRequest @@ -138,6 +140,7 @@ from huaweicloudsdkidmeclassicapi.v1.model.mong_page_request import MongPageRequ from huaweicloudsdkidmeclassicapi.v1.model.multi_view_item_view_dto import MultiViewItemViewDTO from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_branch_view_dto import MultiViewModelBranchViewDTO from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_create_dto import MultiViewModelCreateDTO +from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_master_id_modifier_dto import MultiViewModelMasterIdModifierDTO from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_master_view_dto import MultiViewModelMasterViewDTO from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_version_view_create_dto import MultiViewModelVersionViewCreateDTO from huaweicloudsdkidmeclassicapi.v1.model.multi_view_model_view_dto import MultiViewModelViewDTO @@ -192,6 +195,7 @@ from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_list_version_model_versi from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_list_version_model_version_update_dto import RDMParamVOListVersionModelVersionUpdateDTO from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_mong_page_request import RDMParamVOMongPageRequest from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_multi_view_model_dto import RDMParamVOMultiViewModelDTO +from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_multi_view_model_master_id_modifier_dto import RDMParamVOMultiViewModelMasterIdModifierDTO from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_multi_view_model_version_view_create_dto import RDMParamVOMultiViewModelVersionViewCreateDTO from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_persist_object_id_dto import RDMParamVOPersistObjectIdDTO from huaweicloudsdkidmeclassicapi.v1.model.rdm_param_vo_persist_object_id_decrypt_dto import RDMParamVOPersistObjectIdDecryptDTO diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/create_multi_view_request.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/create_multi_view_request.py index 843a11077..139ce9500 100644 --- a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/create_multi_view_request.py +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/create_multi_view_request.py @@ -17,20 +17,24 @@ class CreateMultiViewRequest: sensitive_list = [] openapi_types = { + 'mv_model_name': 'str', 'identifier': 'str', 'body': 'RDMParamVOMultiViewModelDTO' } attribute_map = { + 'mv_model_name': 'mvModelName', 'identifier': 'identifier', 'body': 'body' } - def __init__(self, identifier=None, body=None): + def __init__(self, mv_model_name=None, identifier=None, body=None): """CreateMultiViewRequest The model defined in huaweicloud sdk + :param mv_model_name: **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 + :type mv_model_name: str :param identifier: 应用ID。 :type identifier: str :param body: Body of the CreateMultiViewRequest @@ -39,14 +43,38 @@ class CreateMultiViewRequest: + self._mv_model_name = None self._identifier = None self._body = None self.discriminator = None + self.mv_model_name = mv_model_name self.identifier = identifier if body is not None: self.body = body + @property + def mv_model_name(self): + """Gets the mv_model_name of this CreateMultiViewRequest. + + **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 + + :return: The mv_model_name of this CreateMultiViewRequest. + :rtype: str + """ + return self._mv_model_name + + @mv_model_name.setter + def mv_model_name(self, mv_model_name): + """Sets the mv_model_name of this CreateMultiViewRequest. + + **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 + + :param mv_model_name: The mv_model_name of this CreateMultiViewRequest. + :type mv_model_name: str + """ + self._mv_model_name = mv_model_name + @property def identifier(self): """Gets the identifier of this CreateMultiViewRequest. diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/delete_by_condition_multi_view_request.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/delete_by_condition_multi_view_request.py index 1f5e2afd1..7b60fc33b 100644 --- a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/delete_by_condition_multi_view_request.py +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/delete_by_condition_multi_view_request.py @@ -17,20 +17,24 @@ class DeleteByConditionMultiViewRequest: sensitive_list = [] openapi_types = { + 'mv_model_name': 'str', 'identifier': 'str', 'body': 'RDMParamVODeleteByConditionVo' } attribute_map = { + 'mv_model_name': 'mvModelName', 'identifier': 'identifier', 'body': 'body' } - def __init__(self, identifier=None, body=None): + def __init__(self, mv_model_name=None, identifier=None, body=None): """DeleteByConditionMultiViewRequest The model defined in huaweicloud sdk + :param mv_model_name: **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 + :type mv_model_name: str :param identifier: 应用ID。 :type identifier: str :param body: Body of the DeleteByConditionMultiViewRequest @@ -39,14 +43,38 @@ class DeleteByConditionMultiViewRequest: + self._mv_model_name = None self._identifier = None self._body = None self.discriminator = None + self.mv_model_name = mv_model_name self.identifier = identifier if body is not None: self.body = body + @property + def mv_model_name(self): + """Gets the mv_model_name of this DeleteByConditionMultiViewRequest. + + **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 + + :return: The mv_model_name of this DeleteByConditionMultiViewRequest. + :rtype: str + """ + return self._mv_model_name + + @mv_model_name.setter + def mv_model_name(self, mv_model_name): + """Sets the mv_model_name of this DeleteByConditionMultiViewRequest. + + **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 + + :param mv_model_name: The mv_model_name of this DeleteByConditionMultiViewRequest. + :type mv_model_name: str + """ + self._mv_model_name = mv_model_name + @property def identifier(self): """Gets the identifier of this DeleteByConditionMultiViewRequest. diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/delete_multi_view_request.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/delete_multi_view_request.py new file mode 100644 index 000000000..4ad8d8a4a --- /dev/null +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/delete_multi_view_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteMultiViewRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'mv_model_name': 'str', + 'identifier': 'str', + 'body': 'RDMParamVOMultiViewModelMasterIdModifierDTO' + } + + attribute_map = { + 'mv_model_name': 'mvModelName', + 'identifier': 'identifier', + 'body': 'body' + } + + def __init__(self, mv_model_name=None, identifier=None, body=None): + """DeleteMultiViewRequest + + The model defined in huaweicloud sdk + + :param mv_model_name: **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 + :type mv_model_name: str + :param identifier: 应用ID。 + :type identifier: str + :param body: Body of the DeleteMultiViewRequest + :type body: :class:`huaweicloudsdkidmeclassicapi.v1.RDMParamVOMultiViewModelMasterIdModifierDTO` + """ + + + + self._mv_model_name = None + self._identifier = None + self._body = None + self.discriminator = None + + self.mv_model_name = mv_model_name + self.identifier = identifier + if body is not None: + self.body = body + + @property + def mv_model_name(self): + """Gets the mv_model_name of this DeleteMultiViewRequest. + + **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 + + :return: The mv_model_name of this DeleteMultiViewRequest. + :rtype: str + """ + return self._mv_model_name + + @mv_model_name.setter + def mv_model_name(self, mv_model_name): + """Sets the mv_model_name of this DeleteMultiViewRequest. + + **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 + + :param mv_model_name: The mv_model_name of this DeleteMultiViewRequest. + :type mv_model_name: str + """ + self._mv_model_name = mv_model_name + + @property + def identifier(self): + """Gets the identifier of this DeleteMultiViewRequest. + + 应用ID。 + + :return: The identifier of this DeleteMultiViewRequest. + :rtype: str + """ + return self._identifier + + @identifier.setter + def identifier(self, identifier): + """Sets the identifier of this DeleteMultiViewRequest. + + 应用ID。 + + :param identifier: The identifier of this DeleteMultiViewRequest. + :type identifier: str + """ + self._identifier = identifier + + @property + def body(self): + """Gets the body of this DeleteMultiViewRequest. + + :return: The body of this DeleteMultiViewRequest. + :rtype: :class:`huaweicloudsdkidmeclassicapi.v1.RDMParamVOMultiViewModelMasterIdModifierDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteMultiViewRequest. + + :param body: The body of this DeleteMultiViewRequest. + :type body: :class:`huaweicloudsdkidmeclassicapi.v1.RDMParamVOMultiViewModelMasterIdModifierDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteMultiViewRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/delete_multi_view_response.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/delete_multi_view_response.py new file mode 100644 index 000000000..08258beb1 --- /dev/null +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/delete_multi_view_response.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteMultiViewResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'result': 'str', + 'data': 'list[int]', + 'errors': 'list[str]' + } + + attribute_map = { + 'result': 'result', + 'data': 'data', + 'errors': 'errors' + } + + def __init__(self, result=None, data=None, errors=None): + """DeleteMultiViewResponse + + The model defined in huaweicloud sdk + + :param result: **参数解释:** 请求结果。 **取值范围:** - SUCCESS:请求成功。 - FAIL:请求失败。 **默认取值:** 不涉及。 + :type result: str + :param data: **参数解释:** 请求数据。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 + :type data: list[int] + :param errors: **参数解释:** 异常信息。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 + :type errors: list[str] + """ + + super(DeleteMultiViewResponse, self).__init__() + + self._result = None + self._data = None + self._errors = None + self.discriminator = None + + if result is not None: + self.result = result + if data is not None: + self.data = data + if errors is not None: + self.errors = errors + + @property + def result(self): + """Gets the result of this DeleteMultiViewResponse. + + **参数解释:** 请求结果。 **取值范围:** - SUCCESS:请求成功。 - FAIL:请求失败。 **默认取值:** 不涉及。 + + :return: The result of this DeleteMultiViewResponse. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this DeleteMultiViewResponse. + + **参数解释:** 请求结果。 **取值范围:** - SUCCESS:请求成功。 - FAIL:请求失败。 **默认取值:** 不涉及。 + + :param result: The result of this DeleteMultiViewResponse. + :type result: str + """ + self._result = result + + @property + def data(self): + """Gets the data of this DeleteMultiViewResponse. + + **参数解释:** 请求数据。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 + + :return: The data of this DeleteMultiViewResponse. + :rtype: list[int] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this DeleteMultiViewResponse. + + **参数解释:** 请求数据。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 + + :param data: The data of this DeleteMultiViewResponse. + :type data: list[int] + """ + self._data = data + + @property + def errors(self): + """Gets the errors of this DeleteMultiViewResponse. + + **参数解释:** 异常信息。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 + + :return: The errors of this DeleteMultiViewResponse. + :rtype: list[str] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """Sets the errors of this DeleteMultiViewResponse. + + **参数解释:** 异常信息。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 + + :param errors: The errors of this DeleteMultiViewResponse. + :type errors: list[str] + """ + self._errors = errors + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteMultiViewResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/multi_view_model_master_id_modifier_dto.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/multi_view_model_master_id_modifier_dto.py new file mode 100644 index 000000000..34bde8a1a --- /dev/null +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/multi_view_model_master_id_modifier_dto.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MultiViewModelMasterIdModifierDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'master_id': 'str', + 'modifier': 'str', + 'item': 'ObjectReferenceParamDTO' + } + + attribute_map = { + 'master_id': 'masterId', + 'modifier': 'modifier', + 'item': 'item' + } + + def __init__(self, master_id=None, modifier=None, item=None): + """MultiViewModelMasterIdModifierDTO + + The model defined in huaweicloud sdk + + :param master_id: 主对象ID。 + :type master_id: str + :param modifier: 处理人。 + :type modifier: str + :param item: + :type item: :class:`huaweicloudsdkidmeclassicapi.v1.ObjectReferenceParamDTO` + """ + + + + self._master_id = None + self._modifier = None + self._item = None + self.discriminator = None + + self.master_id = master_id + if modifier is not None: + self.modifier = modifier + if item is not None: + self.item = item + + @property + def master_id(self): + """Gets the master_id of this MultiViewModelMasterIdModifierDTO. + + 主对象ID。 + + :return: The master_id of this MultiViewModelMasterIdModifierDTO. + :rtype: str + """ + return self._master_id + + @master_id.setter + def master_id(self, master_id): + """Sets the master_id of this MultiViewModelMasterIdModifierDTO. + + 主对象ID。 + + :param master_id: The master_id of this MultiViewModelMasterIdModifierDTO. + :type master_id: str + """ + self._master_id = master_id + + @property + def modifier(self): + """Gets the modifier of this MultiViewModelMasterIdModifierDTO. + + 处理人。 + + :return: The modifier of this MultiViewModelMasterIdModifierDTO. + :rtype: str + """ + return self._modifier + + @modifier.setter + def modifier(self, modifier): + """Sets the modifier of this MultiViewModelMasterIdModifierDTO. + + 处理人。 + + :param modifier: The modifier of this MultiViewModelMasterIdModifierDTO. + :type modifier: str + """ + self._modifier = modifier + + @property + def item(self): + """Gets the item of this MultiViewModelMasterIdModifierDTO. + + :return: The item of this MultiViewModelMasterIdModifierDTO. + :rtype: :class:`huaweicloudsdkidmeclassicapi.v1.ObjectReferenceParamDTO` + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this MultiViewModelMasterIdModifierDTO. + + :param item: The item of this MultiViewModelMasterIdModifierDTO. + :type item: :class:`huaweicloudsdkidmeclassicapi.v1.ObjectReferenceParamDTO` + """ + self._item = item + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MultiViewModelMasterIdModifierDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/persistable_model_update_dto.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/persistable_model_update_dto.py index 4ddd47bea..d2083ddca 100644 --- a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/persistable_model_update_dto.py +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/persistable_model_update_dto.py @@ -53,7 +53,7 @@ class PersistableModelUpdateDTO: :type last_update_time: str :param modifier: **参数解释:** 更新者。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 :type modifier: str - :param need_set_null_attrs: **参数解释:** 设置空值,长度约束为1000。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 + :param need_set_null_attrs: **参数解释:** 将自定义属性(包括基本属性和扩展属性)设置为空值,其长度不能超过1000个字符。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 :type need_set_null_attrs: list[str] :param rdm_extension_type: **参数解释:** 扩展类型。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 :type rdm_extension_type: str @@ -204,7 +204,7 @@ class PersistableModelUpdateDTO: def need_set_null_attrs(self): """Gets the need_set_null_attrs of this PersistableModelUpdateDTO. - **参数解释:** 设置空值,长度约束为1000。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 + **参数解释:** 将自定义属性(包括基本属性和扩展属性)设置为空值,其长度不能超过1000个字符。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 :return: The need_set_null_attrs of this PersistableModelUpdateDTO. :rtype: list[str] @@ -215,7 +215,7 @@ class PersistableModelUpdateDTO: def need_set_null_attrs(self, need_set_null_attrs): """Sets the need_set_null_attrs of this PersistableModelUpdateDTO. - **参数解释:** 设置空值,长度约束为1000。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 + **参数解释:** 将自定义属性(包括基本属性和扩展属性)设置为空值,其长度不能超过1000个字符。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 :param need_set_null_attrs: The need_set_null_attrs of this PersistableModelUpdateDTO. :type need_set_null_attrs: list[str] diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/query_request_vo.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/query_request_vo.py index 62c80b2f7..f79535b46 100644 --- a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/query_request_vo.py +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/query_request_vo.py @@ -75,7 +75,7 @@ class QueryRequestVo: :type order_by_table_alias: str :param public_data: **参数解释:** 多租查询参数。 **约束限制:** 不涉及。 **取值范围:** - EXCLUDE_PUBLIC_DATA:不包括公共数据。 - INCLUDE_PUBLIC_DATA:包括公共数据。 - ONLY_NEED_PUBLIC_DATA:只有公共数据。 **默认取值:** 不涉及。 :type public_data: str - :param sort: **参数解释:** 排序方向。 **约束限制:** 不涉及。 **取值范围:** - ASC:表示升序。 - DESC:表示降序。 不涉及。 **默认取值:** ASC。 + :param sort: **参数解释:** 排序方向。 **约束限制:** 不涉及。 **取值范围:** - ASC:表示升序。 - DESC:表示降序。 **默认取值:** ASC。 :type sort: str :param sorts: **参数解释:** 排序。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。 :type sorts: list[:class:`huaweicloudsdkidmeclassicapi.v1.SortInfoVo`] @@ -363,7 +363,7 @@ class QueryRequestVo: def sort(self): """Gets the sort of this QueryRequestVo. - **参数解释:** 排序方向。 **约束限制:** 不涉及。 **取值范围:** - ASC:表示升序。 - DESC:表示降序。 不涉及。 **默认取值:** ASC。 + **参数解释:** 排序方向。 **约束限制:** 不涉及。 **取值范围:** - ASC:表示升序。 - DESC:表示降序。 **默认取值:** ASC。 :return: The sort of this QueryRequestVo. :rtype: str @@ -374,7 +374,7 @@ class QueryRequestVo: def sort(self, sort): """Sets the sort of this QueryRequestVo. - **参数解释:** 排序方向。 **约束限制:** 不涉及。 **取值范围:** - ASC:表示升序。 - DESC:表示降序。 不涉及。 **默认取值:** ASC。 + **参数解释:** 排序方向。 **约束限制:** 不涉及。 **取值范围:** - ASC:表示升序。 - DESC:表示降序。 **默认取值:** ASC。 :param sort: The sort of this QueryRequestVo. :type sort: str diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/rdm_param_vo_multi_view_model_master_id_modifier_dto.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/rdm_param_vo_multi_view_model_master_id_modifier_dto.py new file mode 100644 index 000000000..4947177b1 --- /dev/null +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/rdm_param_vo_multi_view_model_master_id_modifier_dto.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RDMParamVOMultiViewModelMasterIdModifierDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'params': 'MultiViewModelMasterIdModifierDTO', + 'application_id': 'str' + } + + attribute_map = { + 'params': 'params', + 'application_id': 'applicationId' + } + + def __init__(self, params=None, application_id=None): + """RDMParamVOMultiViewModelMasterIdModifierDTO + + The model defined in huaweicloud sdk + + :param params: + :type params: :class:`huaweicloudsdkidmeclassicapi.v1.MultiViewModelMasterIdModifierDTO` + :param application_id: 应用ID。 + :type application_id: str + """ + + + + self._params = None + self._application_id = None + self.discriminator = None + + if params is not None: + self.params = params + if application_id is not None: + self.application_id = application_id + + @property + def params(self): + """Gets the params of this RDMParamVOMultiViewModelMasterIdModifierDTO. + + :return: The params of this RDMParamVOMultiViewModelMasterIdModifierDTO. + :rtype: :class:`huaweicloudsdkidmeclassicapi.v1.MultiViewModelMasterIdModifierDTO` + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this RDMParamVOMultiViewModelMasterIdModifierDTO. + + :param params: The params of this RDMParamVOMultiViewModelMasterIdModifierDTO. + :type params: :class:`huaweicloudsdkidmeclassicapi.v1.MultiViewModelMasterIdModifierDTO` + """ + self._params = params + + @property + def application_id(self): + """Gets the application_id of this RDMParamVOMultiViewModelMasterIdModifierDTO. + + 应用ID。 + + :return: The application_id of this RDMParamVOMultiViewModelMasterIdModifierDTO. + :rtype: str + """ + return self._application_id + + @application_id.setter + def application_id(self, application_id): + """Sets the application_id of this RDMParamVOMultiViewModelMasterIdModifierDTO. + + 应用ID。 + + :param application_id: The application_id of this RDMParamVOMultiViewModelMasterIdModifierDTO. + :type application_id: str + """ + self._application_id = application_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RDMParamVOMultiViewModelMasterIdModifierDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-idmeclassicapi/requirements.txt b/huaweicloud-sdk-idmeclassicapi/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-idmeclassicapi/requirements.txt +++ b/huaweicloud-sdk-idmeclassicapi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-idmeclassicapi/setup.py b/huaweicloud-sdk-idmeclassicapi/setup.py index 9c1ed899d..5f149bede 100644 --- a/huaweicloud-sdk-idmeclassicapi/setup.py +++ b/huaweicloud-sdk-idmeclassicapi/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkidmeclassicapi" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index 6c404765a..dab7b04a4 100644 --- a/huaweicloud-sdk-iec/setup.py +++ b/huaweicloud-sdk-iec/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiec" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index 80d8b24eb..812aa3213 100644 --- a/huaweicloud-sdk-ief/setup.py +++ b/huaweicloud-sdk-ief/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkief" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index 105b3ea33..887514029 100644 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index 7b5c1ad00..033b38f92 100644 --- a/huaweicloud-sdk-imagesearch/setup.py +++ b/huaweicloud-sdk-imagesearch/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkimagesearch" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index 90a888779..a631d6614 100644 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index 2a2b8567d..816424846 100644 --- a/huaweicloud-sdk-iotanalytics/setup.py +++ b/huaweicloud-sdk-iotanalytics/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotanalytics" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index beb202a1d..9254f644e 100644 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotdm/requirements.txt b/huaweicloud-sdk-iotdm/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-iotdm/requirements.txt +++ b/huaweicloud-sdk-iotdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-iotdm/setup.py b/huaweicloud-sdk-iotdm/setup.py index d4b768eb4..2eb8e4aa2 100644 --- a/huaweicloud-sdk-iotdm/setup.py +++ b/huaweicloud-sdk-iotdm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotdm" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index a4f4d5116..c8a112618 100644 --- a/huaweicloud-sdk-iotedge/setup.py +++ b/huaweicloud-sdk-iotedge/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotedge" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index e9a54462a..d6572cae0 100644 --- a/huaweicloud-sdk-ivs/setup.py +++ b/huaweicloud-sdk-ivs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkivs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 9220f4315..d60392c91 100644 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 72b4135a3..8be2dc7f2 100644 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-koomessage/requirements.txt b/huaweicloud-sdk-koomessage/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-koomessage/requirements.txt +++ b/huaweicloud-sdk-koomessage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-koomessage/setup.py b/huaweicloud-sdk-koomessage/setup.py index f1960257a..dfa66cadc 100644 --- a/huaweicloud-sdk-koomessage/setup.py +++ b/huaweicloud-sdk-koomessage/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkoomessage" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index f758af615..faee92cc8 100644 --- a/huaweicloud-sdk-kps/setup.py +++ b/huaweicloud-sdk-kps/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkps" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lakeformation/requirements.txt b/huaweicloud-sdk-lakeformation/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-lakeformation/requirements.txt +++ b/huaweicloud-sdk-lakeformation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-lakeformation/setup.py b/huaweicloud-sdk-lakeformation/setup.py index 044d45450..61b98faf8 100644 --- a/huaweicloud-sdk-lakeformation/setup.py +++ b/huaweicloud-sdk-lakeformation/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklakeformation" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index 5a3ebf004..bd48e4df0 100644 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py index 3c476e7c9..1727f74bc 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py @@ -10,6 +10,8 @@ class LtsRegion: "https://lts.cn-east-2.myhuaweicloud.com") CN_EAST_3 = Region("cn-east-3", "https://lts.cn-east-3.myhuaweicloud.com") + CN_EAST_5 = Region("cn-east-5", + "https://lts.cn-east-5.myhuaweicloud.com") CN_NORTH_1 = Region("cn-north-1", "https://lts.cn-north-1.myhuaweicloud.com") CN_NORTH_2 = Region("cn-north-2", @@ -58,6 +60,7 @@ class LtsRegion: static_fields = { "cn-east-2": CN_EAST_2, "cn-east-3": CN_EAST_3, + "cn-east-5": CN_EAST_5, "cn-north-1": CN_NORTH_1, "cn-north-2": CN_NORTH_2, "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index e4ee849a2..551b7d180 100644 --- a/huaweicloud-sdk-lts/setup.py +++ b/huaweicloud-sdk-lts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklts" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index d748784d0..ba886f493 100644 --- a/huaweicloud-sdk-mapds/setup.py +++ b/huaweicloud-sdk-mapds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmapds" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index a404f9c0f..d32df90aa 100644 --- a/huaweicloud-sdk-mas/setup.py +++ b/huaweicloud-sdk-mas/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmas" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index 8c7ba371e..44b9cc2e9 100644 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py index 122f8911f..f10c2bd9b 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py @@ -67,6 +67,9 @@ from huaweicloudsdkmetastudio.v1.model.create_agency_with_role_type_request impo from huaweicloudsdkmetastudio.v1.model.create_agency_with_role_type_response import CreateAgencyWithRoleTypeResponse from huaweicloudsdkmetastudio.v1.model.create_asset_by_replication_info_request import CreateAssetByReplicationInfoRequest from huaweicloudsdkmetastudio.v1.model.create_asset_by_replication_info_response import CreateAssetByReplicationInfoResponse +from huaweicloudsdkmetastudio.v1.model.create_async_tts_job_request import CreateAsyncTtsJobRequest +from huaweicloudsdkmetastudio.v1.model.create_async_tts_job_request_body import CreateAsyncTtsJobRequestBody +from huaweicloudsdkmetastudio.v1.model.create_async_tts_job_response import CreateAsyncTtsJobResponse from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_req import CreateBatchKnowledgeQuestionReq from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_request import CreateBatchKnowledgeQuestionRequest from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_response import CreateBatchKnowledgeQuestionResponse @@ -112,6 +115,9 @@ from huaweicloudsdkmetastudio.v1.model.create_large_file_request import CreateLa from huaweicloudsdkmetastudio.v1.model.create_large_file_response import CreateLargeFileResponse from huaweicloudsdkmetastudio.v1.model.create_once_code_request import CreateOnceCodeRequest from huaweicloudsdkmetastudio.v1.model.create_once_code_response import CreateOnceCodeResponse +from huaweicloudsdkmetastudio.v1.model.create_pacify_words_req import CreatePacifyWordsReq +from huaweicloudsdkmetastudio.v1.model.create_pacify_words_request import CreatePacifyWordsRequest +from huaweicloudsdkmetastudio.v1.model.create_pacify_words_response import CreatePacifyWordsResponse from huaweicloudsdkmetastudio.v1.model.create_photo_detection_req import CreatePhotoDetectionReq from huaweicloudsdkmetastudio.v1.model.create_photo_detection_request import CreatePhotoDetectionRequest from huaweicloudsdkmetastudio.v1.model.create_photo_detection_response import CreatePhotoDetectionResponse @@ -138,6 +144,9 @@ from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_req_base_info impo from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_request import CreateSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_response import CreateSmartLiveRoomResponse from huaweicloudsdkmetastudio.v1.model.create_style_request_body import CreateStyleRequestBody +from huaweicloudsdkmetastudio.v1.model.create_subtitle_file_req import CreateSubtitleFileReq +from huaweicloudsdkmetastudio.v1.model.create_subtitle_file_request import CreateSubtitleFileRequest +from huaweicloudsdkmetastudio.v1.model.create_subtitle_file_response import CreateSubtitleFileResponse from huaweicloudsdkmetastudio.v1.model.create_ttsa_req import CreateTTSAReq from huaweicloudsdkmetastudio.v1.model.create_training_advance_job_request import CreateTrainingAdvanceJobRequest from huaweicloudsdkmetastudio.v1.model.create_training_advance_job_response import CreateTrainingAdvanceJobResponse @@ -185,6 +194,8 @@ from huaweicloudsdkmetastudio.v1.model.delete_knowledge_question_request import from huaweicloudsdkmetastudio.v1.model.delete_knowledge_question_response import DeleteKnowledgeQuestionResponse from huaweicloudsdkmetastudio.v1.model.delete_knowledge_skill_request import DeleteKnowledgeSkillRequest from huaweicloudsdkmetastudio.v1.model.delete_knowledge_skill_response import DeleteKnowledgeSkillResponse +from huaweicloudsdkmetastudio.v1.model.delete_pacify_words_request import DeletePacifyWordsRequest +from huaweicloudsdkmetastudio.v1.model.delete_pacify_words_response import DeletePacifyWordsResponse from huaweicloudsdkmetastudio.v1.model.delete_product_request import DeleteProductRequest from huaweicloudsdkmetastudio.v1.model.delete_product_response import DeleteProductResponse from huaweicloudsdkmetastudio.v1.model.delete_robot_request import DeleteRobotRequest @@ -246,6 +257,7 @@ from huaweicloudsdkmetastudio.v1.model.knowledge_question_create_info import Kno from huaweicloudsdkmetastudio.v1.model.knowledge_question_info import KnowledgeQuestionInfo from huaweicloudsdkmetastudio.v1.model.knowledge_question_update_info import KnowledgeQuestionUpdateInfo from huaweicloudsdkmetastudio.v1.model.knowledge_skill_info import KnowledgeSkillInfo +from huaweicloudsdkmetastudio.v1.model.language import Language from huaweicloudsdkmetastudio.v1.model.language_enum import LanguageEnum from huaweicloudsdkmetastudio.v1.model.large_files_create_req import LargeFilesCreateReq from huaweicloudsdkmetastudio.v1.model.layer_config import LayerConfig @@ -280,6 +292,8 @@ from huaweicloudsdkmetastudio.v1.model.list_knowledge_question_request import Li from huaweicloudsdkmetastudio.v1.model.list_knowledge_question_response import ListKnowledgeQuestionResponse from huaweicloudsdkmetastudio.v1.model.list_knowledge_skill_request import ListKnowledgeSkillRequest from huaweicloudsdkmetastudio.v1.model.list_knowledge_skill_response import ListKnowledgeSkillResponse +from huaweicloudsdkmetastudio.v1.model.list_pacify_words_request import ListPacifyWordsRequest +from huaweicloudsdkmetastudio.v1.model.list_pacify_words_response import ListPacifyWordsResponse from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_request import ListPictureModelingJobsRequest from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_response import ListPictureModelingJobsResponse from huaweicloudsdkmetastudio.v1.model.list_products_request import ListProductsRequest @@ -335,6 +349,8 @@ from huaweicloudsdkmetastudio.v1.model.output_asset_info import OutputAssetInfo from huaweicloudsdkmetastudio.v1.model.output_info import OutputInfo from huaweicloudsdkmetastudio.v1.model.ppt_asset_meta import PPTAssetMeta from huaweicloudsdkmetastudio.v1.model.ppt_page_info import PPTPageInfo +from huaweicloudsdkmetastudio.v1.model.pacify_words_info import PacifyWordsInfo +from huaweicloudsdkmetastudio.v1.model.pacify_words_intent_info import PacifyWordsIntentInfo from huaweicloudsdkmetastudio.v1.model.pages import Pages from huaweicloudsdkmetastudio.v1.model.photo_video_config import PhotoVideoConfig from huaweicloudsdkmetastudio.v1.model.picture_modeling_by_url_req import PictureModelingByUrlReq @@ -394,6 +410,8 @@ from huaweicloudsdkmetastudio.v1.model.show_asset_replication_info_request impor from huaweicloudsdkmetastudio.v1.model.show_asset_replication_info_response import ShowAssetReplicationInfoResponse from huaweicloudsdkmetastudio.v1.model.show_asset_request import ShowAssetRequest from huaweicloudsdkmetastudio.v1.model.show_asset_response import ShowAssetResponse +from huaweicloudsdkmetastudio.v1.model.show_async_tts_job_request import ShowAsyncTtsJobRequest +from huaweicloudsdkmetastudio.v1.model.show_async_tts_job_response import ShowAsyncTtsJobResponse from huaweicloudsdkmetastudio.v1.model.show_beauty_preview_job_request import ShowBeautyPreviewJobRequest from huaweicloudsdkmetastudio.v1.model.show_beauty_preview_job_response import ShowBeautyPreviewJobResponse from huaweicloudsdkmetastudio.v1.model.show_digital_human_business_card_request import ShowDigitalHumanBusinessCardRequest @@ -416,6 +434,14 @@ from huaweicloudsdkmetastudio.v1.model.show_knowledge_question_request import Sh from huaweicloudsdkmetastudio.v1.model.show_knowledge_question_response import ShowKnowledgeQuestionResponse from huaweicloudsdkmetastudio.v1.model.show_knowledge_skill_request import ShowKnowledgeSkillRequest from huaweicloudsdkmetastudio.v1.model.show_knowledge_skill_response import ShowKnowledgeSkillResponse +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_intent_request import ShowPacifyWordsIntentRequest +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_intent_response import ShowPacifyWordsIntentResponse +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_request import ShowPacifyWordsRequest +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_response import ShowPacifyWordsResponse +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_switch_request import ShowPacifyWordsSwitchRequest +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_switch_response import ShowPacifyWordsSwitchResponse +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_trigger_time_request import ShowPacifyWordsTriggerTimeRequest +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_trigger_time_response import ShowPacifyWordsTriggerTimeResponse from huaweicloudsdkmetastudio.v1.model.show_photo_detection_request import ShowPhotoDetectionRequest from huaweicloudsdkmetastudio.v1.model.show_photo_detection_response import ShowPhotoDetectionResponse from huaweicloudsdkmetastudio.v1.model.show_photo_digital_human_video_request import ShowPhotoDigitalHumanVideoRequest @@ -436,6 +462,8 @@ from huaweicloudsdkmetastudio.v1.model.show_smart_live_request import ShowSmartL from huaweicloudsdkmetastudio.v1.model.show_smart_live_response import ShowSmartLiveResponse from huaweicloudsdkmetastudio.v1.model.show_smart_live_room_request import ShowSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.show_smart_live_room_response import ShowSmartLiveRoomResponse +from huaweicloudsdkmetastudio.v1.model.show_subtitle_file_request import ShowSubtitleFileRequest +from huaweicloudsdkmetastudio.v1.model.show_subtitle_file_response import ShowSubtitleFileResponse from huaweicloudsdkmetastudio.v1.model.show_training_segment_info_request import ShowTrainingSegmentInfoRequest from huaweicloudsdkmetastudio.v1.model.show_training_segment_info_response import ShowTrainingSegmentInfoResponse from huaweicloudsdkmetastudio.v1.model.show_tts_audition_file_request import ShowTtsAuditionFileRequest @@ -454,6 +482,7 @@ from huaweicloudsdkmetastudio.v1.model.smart_chat_jobs_req import SmartChatJobsR from huaweicloudsdkmetastudio.v1.model.smart_chat_room_base_info import SmartChatRoomBaseInfo from huaweicloudsdkmetastudio.v1.model.smart_chat_subtitle_config import SmartChatSubtitleConfig from huaweicloudsdkmetastudio.v1.model.smart_chat_video_config import SmartChatVideoConfig +from huaweicloudsdkmetastudio.v1.model.smart_chat_voice_config import SmartChatVoiceConfig from huaweicloudsdkmetastudio.v1.model.smart_image_layer_config import SmartImageLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_layer_config import SmartLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_live_job import SmartLiveJob @@ -477,6 +506,7 @@ from huaweicloudsdkmetastudio.v1.model.style_asset_item import StyleAssetItem from huaweicloudsdkmetastudio.v1.model.style_extra_meta import StyleExtraMeta from huaweicloudsdkmetastudio.v1.model.style_info import StyleInfo from huaweicloudsdkmetastudio.v1.model.subtitle_config import SubtitleConfig +from huaweicloudsdkmetastudio.v1.model.subtitle_file_detail import SubtitleFileDetail from huaweicloudsdkmetastudio.v1.model.subtitle_file_info import SubtitleFileInfo from huaweicloudsdkmetastudio.v1.model.subtitle_files import SubtitleFiles from huaweicloudsdkmetastudio.v1.model.supported_service_enum import SupportedServiceEnum @@ -524,6 +554,15 @@ from huaweicloudsdkmetastudio.v1.model.update_knowledge_question_response import from huaweicloudsdkmetastudio.v1.model.update_knowledge_skill_req import UpdateKnowledgeSkillReq from huaweicloudsdkmetastudio.v1.model.update_knowledge_skill_request import UpdateKnowledgeSkillRequest from huaweicloudsdkmetastudio.v1.model.update_knowledge_skill_response import UpdateKnowledgeSkillResponse +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_req import UpdatePacifyWordsReq +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_request import UpdatePacifyWordsRequest +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_response import UpdatePacifyWordsResponse +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_switch_req import UpdatePacifyWordsSwitchReq +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_switch_request import UpdatePacifyWordsSwitchRequest +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_switch_response import UpdatePacifyWordsSwitchResponse +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_trigger_time_req import UpdatePacifyWordsTriggerTimeReq +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_trigger_time_request import UpdatePacifyWordsTriggerTimeRequest +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_trigger_time_response import UpdatePacifyWordsTriggerTimeResponse from huaweicloudsdkmetastudio.v1.model.update_product_request import UpdateProductRequest from huaweicloudsdkmetastudio.v1.model.update_product_request_body import UpdateProductRequestBody from huaweicloudsdkmetastudio.v1.model.update_product_response import UpdateProductResponse diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py index c9656c0d0..a2dade118 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py @@ -3279,6 +3279,8 @@ class MetaStudioAsyncClient(Client): query_params.append(('sort_dir', local_var_params['sort_dir'])) if 'robot_id' in local_var_params: query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) header_params = {} if 'x_app_user_id' in local_var_params: @@ -5280,6 +5282,692 @@ class MetaStudioAsyncClient(Client): return http_info + def create_pacify_words_async(self, request): + """创建安抚话术 + + 该接口用于创建安抚话术。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreatePacifyWords + :type request: :class:`huaweicloudsdkmetastudio.v1.CreatePacifyWordsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreatePacifyWordsResponse` + """ + http_info = self._create_pacify_words_http_info(request) + return self._call_api(**http_info) + + def create_pacify_words_async_invoker(self, request): + http_info = self._create_pacify_words_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_pacify_words_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words", + "request_type": request.__class__.__name__, + "response_type": "CreatePacifyWordsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_pacify_words_async(self, request): + """删除安抚话术 + + 该接口用于删除安抚话术。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeletePacifyWords + :type request: :class:`huaweicloudsdkmetastudio.v1.DeletePacifyWordsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.DeletePacifyWordsResponse` + """ + http_info = self._delete_pacify_words_http_info(request) + return self._call_api(**http_info) + + def delete_pacify_words_async_invoker(self, request): + http_info = self._delete_pacify_words_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_pacify_words_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words/{pacify_words_id}", + "request_type": request.__class__.__name__, + "response_type": "DeletePacifyWordsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'pacify_words_id' in local_var_params: + path_params['pacify_words_id'] = local_var_params['pacify_words_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_pacify_words_async(self, request): + """查询安抚话术列表 + + 该接口用于查询安抚话术列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListPacifyWords + :type request: :class:`huaweicloudsdkmetastudio.v1.ListPacifyWordsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListPacifyWordsResponse` + """ + http_info = self._list_pacify_words_http_info(request) + return self._call_api(**http_info) + + def list_pacify_words_async_invoker(self, request): + http_info = self._list_pacify_words_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_pacify_words_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words", + "request_type": request.__class__.__name__, + "response_type": "ListPacifyWordsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'robot_id' in local_var_params: + query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) + if 'pacify_words_type' in local_var_params: + query_params.append(('pacify_words_type', local_var_params['pacify_words_type'])) + if 'intent' in local_var_params: + query_params.append(('intent', local_var_params['intent'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_pacify_words_async(self, request): + """查询安抚话术详情 + + 该接口用于查询安抚话术详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPacifyWords + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsResponse` + """ + http_info = self._show_pacify_words_http_info(request) + return self._call_api(**http_info) + + def show_pacify_words_async_invoker(self, request): + http_info = self._show_pacify_words_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_pacify_words_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words/{pacify_words_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowPacifyWordsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'pacify_words_id' in local_var_params: + path_params['pacify_words_id'] = local_var_params['pacify_words_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_pacify_words_intent_async(self, request): + """查询安抚话术意图 + + 该接口用于查询安抚话术意图。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPacifyWordsIntent + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsIntentRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsIntentResponse` + """ + http_info = self._show_pacify_words_intent_http_info(request) + return self._call_api(**http_info) + + def show_pacify_words_intent_async_invoker(self, request): + http_info = self._show_pacify_words_intent_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_pacify_words_intent_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words-intent", + "request_type": request.__class__.__name__, + "response_type": "ShowPacifyWordsIntentResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'robot_id' in local_var_params: + query_params.append(('robot_id', local_var_params['robot_id'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_pacify_words_switch_async(self, request): + """查询安抚话术功能开关 + + 该接口用于查询安抚话术功能开关。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPacifyWordsSwitch + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsSwitchRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsSwitchResponse` + """ + http_info = self._show_pacify_words_switch_http_info(request) + return self._call_api(**http_info) + + def show_pacify_words_switch_async_invoker(self, request): + http_info = self._show_pacify_words_switch_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_pacify_words_switch_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words-switch", + "request_type": request.__class__.__name__, + "response_type": "ShowPacifyWordsSwitchResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'robot_id' in local_var_params: + query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_pacify_words_trigger_time_async(self, request): + """查询安抚话术等待触发时长 + + 该接口用于查询等待触发时长。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPacifyWordsTriggerTime + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsTriggerTimeRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsTriggerTimeResponse` + """ + http_info = self._show_pacify_words_trigger_time_http_info(request) + return self._call_api(**http_info) + + def show_pacify_words_trigger_time_async_invoker(self, request): + http_info = self._show_pacify_words_trigger_time_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_pacify_words_trigger_time_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words-time", + "request_type": request.__class__.__name__, + "response_type": "ShowPacifyWordsTriggerTimeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'robot_id' in local_var_params: + query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_pacify_words_async(self, request): + """修改安抚话术 + + 该接口用于修改安抚话术。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePacifyWords + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsResponse` + """ + http_info = self._update_pacify_words_http_info(request) + return self._call_api(**http_info) + + def update_pacify_words_async_invoker(self, request): + http_info = self._update_pacify_words_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_pacify_words_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words/{pacify_words_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdatePacifyWordsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'pacify_words_id' in local_var_params: + path_params['pacify_words_id'] = local_var_params['pacify_words_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_pacify_words_switch_async(self, request): + """修改安抚话术功能开关 + + 该接口用于修改安抚话术功能开关。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePacifyWordsSwitch + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsSwitchRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsSwitchResponse` + """ + http_info = self._update_pacify_words_switch_http_info(request) + return self._call_api(**http_info) + + def update_pacify_words_switch_async_invoker(self, request): + http_info = self._update_pacify_words_switch_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_pacify_words_switch_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words-switch", + "request_type": request.__class__.__name__, + "response_type": "UpdatePacifyWordsSwitchResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_pacify_words_trigger_time_async(self, request): + """修改安抚话术等待触发时长 + + 该接口用于修改安抚话术等待触发时长。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePacifyWordsTriggerTime + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsTriggerTimeRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsTriggerTimeResponse` + """ + http_info = self._update_pacify_words_trigger_time_http_info(request) + return self._call_api(**http_info) + + def update_pacify_words_trigger_time_async_invoker(self, request): + http_info = self._update_pacify_words_trigger_time_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_pacify_words_trigger_time_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words-time", + "request_type": request.__class__.__name__, + "response_type": "UpdatePacifyWordsTriggerTimeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_picture_modeling_by_url_job_async(self, request): """基于图片URL创建照片建模任务 @@ -7976,6 +8664,140 @@ class MetaStudioAsyncClient(Client): return http_info + def create_subtitle_file_async(self, request): + """创建分身数字人视频字幕文件 + + 该接口用于创建分身数字人视频字幕文件任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateSubtitleFile + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateSubtitleFileRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateSubtitleFileResponse` + """ + http_info = self._create_subtitle_file_http_info(request) + return self._call_api(**http_info) + + def create_subtitle_file_async_invoker(self, request): + http_info = self._create_subtitle_file_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_subtitle_file_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/subtitle-files", + "request_type": request.__class__.__name__, + "response_type": "CreateSubtitleFileResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_subtitle_file_async(self, request): + """查询分身数字人视频字幕文件任务详情 + + 该接口用于查询分身数字人视频字幕文件任务详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowSubtitleFile + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowSubtitleFileRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowSubtitleFileResponse` + """ + http_info = self._show_subtitle_file_http_info(request) + return self._call_api(**http_info) + + def show_subtitle_file_async_invoker(self, request): + http_info = self._show_subtitle_file_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_subtitle_file_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/subtitle-files/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowSubtitleFileResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_facial_animations_async(self, request): """创建语音驱动表情动画任务 @@ -9802,6 +10624,73 @@ class MetaStudioAsyncClient(Client): return http_info + def create_async_tts_job_async(self, request): + """创建TTS语音异步任务 + + 该接口用于对外生成音频文件 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateAsyncTtsJob + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateAsyncTtsJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateAsyncTtsJobResponse` + """ + http_info = self._create_async_tts_job_http_info(request) + return self._call_api(**http_info) + + def create_async_tts_job_async_invoker(self, request): + http_info = self._create_async_tts_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_async_tts_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/ttsc/async-jobs", + "request_type": request.__class__.__name__, + "response_type": "CreateAsyncTtsJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_tts_audition_async(self, request): """创建TTS试听任务 @@ -9875,6 +10764,73 @@ class MetaStudioAsyncClient(Client): return http_info + def show_async_tts_job_async(self, request): + """获取音频语音文件 + + 该接口用于获取TTS音频文件下载链接。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowAsyncTtsJob + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowAsyncTtsJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowAsyncTtsJobResponse` + """ + http_info = self._show_async_tts_job_http_info(request) + return self._call_api(**http_info) + + def show_async_tts_job_async_invoker(self, request): + http_info = self._show_async_tts_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_async_tts_job_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/ttsc/async-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowAsyncTtsJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_tts_audition_file_async(self, request): """获取TTS试听文件 @@ -10873,6 +11829,8 @@ class MetaStudioAsyncClient(Client): query_params.append(('limit', local_var_params['limit'])) if 'robot_id' in local_var_params: query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) header_params = {} if 'x_app_user_id' in local_var_params: @@ -11007,6 +11965,8 @@ class MetaStudioAsyncClient(Client): query_params = [] if 'robot_id' in local_var_params: query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) header_params = {} if 'x_app_user_id' in local_var_params: diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py index bb5e0ffe9..56cf3582a 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py @@ -3279,6 +3279,8 @@ class MetaStudioClient(Client): query_params.append(('sort_dir', local_var_params['sort_dir'])) if 'robot_id' in local_var_params: query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) header_params = {} if 'x_app_user_id' in local_var_params: @@ -5280,6 +5282,692 @@ class MetaStudioClient(Client): return http_info + def create_pacify_words(self, request): + """创建安抚话术 + + 该接口用于创建安抚话术。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreatePacifyWords + :type request: :class:`huaweicloudsdkmetastudio.v1.CreatePacifyWordsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreatePacifyWordsResponse` + """ + http_info = self._create_pacify_words_http_info(request) + return self._call_api(**http_info) + + def create_pacify_words_invoker(self, request): + http_info = self._create_pacify_words_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_pacify_words_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words", + "request_type": request.__class__.__name__, + "response_type": "CreatePacifyWordsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_pacify_words(self, request): + """删除安抚话术 + + 该接口用于删除安抚话术。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeletePacifyWords + :type request: :class:`huaweicloudsdkmetastudio.v1.DeletePacifyWordsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.DeletePacifyWordsResponse` + """ + http_info = self._delete_pacify_words_http_info(request) + return self._call_api(**http_info) + + def delete_pacify_words_invoker(self, request): + http_info = self._delete_pacify_words_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_pacify_words_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words/{pacify_words_id}", + "request_type": request.__class__.__name__, + "response_type": "DeletePacifyWordsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'pacify_words_id' in local_var_params: + path_params['pacify_words_id'] = local_var_params['pacify_words_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_pacify_words(self, request): + """查询安抚话术列表 + + 该接口用于查询安抚话术列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListPacifyWords + :type request: :class:`huaweicloudsdkmetastudio.v1.ListPacifyWordsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListPacifyWordsResponse` + """ + http_info = self._list_pacify_words_http_info(request) + return self._call_api(**http_info) + + def list_pacify_words_invoker(self, request): + http_info = self._list_pacify_words_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_pacify_words_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words", + "request_type": request.__class__.__name__, + "response_type": "ListPacifyWordsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'robot_id' in local_var_params: + query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) + if 'pacify_words_type' in local_var_params: + query_params.append(('pacify_words_type', local_var_params['pacify_words_type'])) + if 'intent' in local_var_params: + query_params.append(('intent', local_var_params['intent'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_pacify_words(self, request): + """查询安抚话术详情 + + 该接口用于查询安抚话术详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPacifyWords + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsResponse` + """ + http_info = self._show_pacify_words_http_info(request) + return self._call_api(**http_info) + + def show_pacify_words_invoker(self, request): + http_info = self._show_pacify_words_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_pacify_words_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words/{pacify_words_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowPacifyWordsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'pacify_words_id' in local_var_params: + path_params['pacify_words_id'] = local_var_params['pacify_words_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_pacify_words_intent(self, request): + """查询安抚话术意图 + + 该接口用于查询安抚话术意图。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPacifyWordsIntent + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsIntentRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsIntentResponse` + """ + http_info = self._show_pacify_words_intent_http_info(request) + return self._call_api(**http_info) + + def show_pacify_words_intent_invoker(self, request): + http_info = self._show_pacify_words_intent_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_pacify_words_intent_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words-intent", + "request_type": request.__class__.__name__, + "response_type": "ShowPacifyWordsIntentResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'robot_id' in local_var_params: + query_params.append(('robot_id', local_var_params['robot_id'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_pacify_words_switch(self, request): + """查询安抚话术功能开关 + + 该接口用于查询安抚话术功能开关。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPacifyWordsSwitch + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsSwitchRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsSwitchResponse` + """ + http_info = self._show_pacify_words_switch_http_info(request) + return self._call_api(**http_info) + + def show_pacify_words_switch_invoker(self, request): + http_info = self._show_pacify_words_switch_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_pacify_words_switch_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words-switch", + "request_type": request.__class__.__name__, + "response_type": "ShowPacifyWordsSwitchResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'robot_id' in local_var_params: + query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_pacify_words_trigger_time(self, request): + """查询安抚话术等待触发时长 + + 该接口用于查询等待触发时长。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPacifyWordsTriggerTime + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsTriggerTimeRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowPacifyWordsTriggerTimeResponse` + """ + http_info = self._show_pacify_words_trigger_time_http_info(request) + return self._call_api(**http_info) + + def show_pacify_words_trigger_time_invoker(self, request): + http_info = self._show_pacify_words_trigger_time_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_pacify_words_trigger_time_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words-time", + "request_type": request.__class__.__name__, + "response_type": "ShowPacifyWordsTriggerTimeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'robot_id' in local_var_params: + query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_pacify_words(self, request): + """修改安抚话术 + + 该接口用于修改安抚话术。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePacifyWords + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsResponse` + """ + http_info = self._update_pacify_words_http_info(request) + return self._call_api(**http_info) + + def update_pacify_words_invoker(self, request): + http_info = self._update_pacify_words_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_pacify_words_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words/{pacify_words_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdatePacifyWordsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'pacify_words_id' in local_var_params: + path_params['pacify_words_id'] = local_var_params['pacify_words_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_pacify_words_switch(self, request): + """修改安抚话术功能开关 + + 该接口用于修改安抚话术功能开关。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePacifyWordsSwitch + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsSwitchRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsSwitchResponse` + """ + http_info = self._update_pacify_words_switch_http_info(request) + return self._call_api(**http_info) + + def update_pacify_words_switch_invoker(self, request): + http_info = self._update_pacify_words_switch_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_pacify_words_switch_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words-switch", + "request_type": request.__class__.__name__, + "response_type": "UpdatePacifyWordsSwitchResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_pacify_words_trigger_time(self, request): + """修改安抚话术等待触发时长 + + 该接口用于修改安抚话术等待触发时长。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePacifyWordsTriggerTime + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsTriggerTimeRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsTriggerTimeResponse` + """ + http_info = self._update_pacify_words_trigger_time_http_info(request) + return self._call_api(**http_info) + + def update_pacify_words_trigger_time_invoker(self, request): + http_info = self._update_pacify_words_trigger_time_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_pacify_words_trigger_time_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/digital-human-chat/pacify-words-time", + "request_type": request.__class__.__name__, + "response_type": "UpdatePacifyWordsTriggerTimeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_picture_modeling_by_url_job(self, request): """基于图片URL创建照片建模任务 @@ -7976,6 +8664,140 @@ class MetaStudioClient(Client): return http_info + def create_subtitle_file(self, request): + """创建分身数字人视频字幕文件 + + 该接口用于创建分身数字人视频字幕文件任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateSubtitleFile + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateSubtitleFileRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateSubtitleFileResponse` + """ + http_info = self._create_subtitle_file_http_info(request) + return self._call_api(**http_info) + + def create_subtitle_file_invoker(self, request): + http_info = self._create_subtitle_file_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_subtitle_file_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/subtitle-files", + "request_type": request.__class__.__name__, + "response_type": "CreateSubtitleFileResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_subtitle_file(self, request): + """查询分身数字人视频字幕文件任务详情 + + 该接口用于查询分身数字人视频字幕文件任务详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowSubtitleFile + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowSubtitleFileRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowSubtitleFileResponse` + """ + http_info = self._show_subtitle_file_http_info(request) + return self._call_api(**http_info) + + def show_subtitle_file_invoker(self, request): + http_info = self._show_subtitle_file_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_subtitle_file_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/subtitle-files/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowSubtitleFileResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_facial_animations(self, request): """创建语音驱动表情动画任务 @@ -9802,6 +10624,73 @@ class MetaStudioClient(Client): return http_info + def create_async_tts_job(self, request): + """创建TTS语音异步任务 + + 该接口用于对外生成音频文件 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateAsyncTtsJob + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateAsyncTtsJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateAsyncTtsJobResponse` + """ + http_info = self._create_async_tts_job_http_info(request) + return self._call_api(**http_info) + + def create_async_tts_job_invoker(self, request): + http_info = self._create_async_tts_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_async_tts_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/ttsc/async-jobs", + "request_type": request.__class__.__name__, + "response_type": "CreateAsyncTtsJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_tts_audition(self, request): """创建TTS试听任务 @@ -9875,6 +10764,73 @@ class MetaStudioClient(Client): return http_info + def show_async_tts_job(self, request): + """获取音频语音文件 + + 该接口用于获取TTS音频文件下载链接。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowAsyncTtsJob + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowAsyncTtsJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowAsyncTtsJobResponse` + """ + http_info = self._show_async_tts_job_http_info(request) + return self._call_api(**http_info) + + def show_async_tts_job_invoker(self, request): + http_info = self._show_async_tts_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_async_tts_job_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/ttsc/async-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowAsyncTtsJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_tts_audition_file(self, request): """获取TTS试听文件 @@ -10873,6 +11829,8 @@ class MetaStudioClient(Client): query_params.append(('limit', local_var_params['limit'])) if 'robot_id' in local_var_params: query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) header_params = {} if 'x_app_user_id' in local_var_params: @@ -11007,6 +11965,8 @@ class MetaStudioClient(Client): query_params = [] if 'robot_id' in local_var_params: query_params.append(('robot_id', local_var_params['robot_id'])) + if 'language' in local_var_params: + query_params.append(('language', local_var_params['language'])) header_params = {} if 'x_app_user_id' in local_var_params: diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py index 14d4f30f4..abd6dcdc5 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py @@ -65,6 +65,9 @@ from huaweicloudsdkmetastudio.v1.model.create_agency_with_role_type_request impo from huaweicloudsdkmetastudio.v1.model.create_agency_with_role_type_response import CreateAgencyWithRoleTypeResponse from huaweicloudsdkmetastudio.v1.model.create_asset_by_replication_info_request import CreateAssetByReplicationInfoRequest from huaweicloudsdkmetastudio.v1.model.create_asset_by_replication_info_response import CreateAssetByReplicationInfoResponse +from huaweicloudsdkmetastudio.v1.model.create_async_tts_job_request import CreateAsyncTtsJobRequest +from huaweicloudsdkmetastudio.v1.model.create_async_tts_job_request_body import CreateAsyncTtsJobRequestBody +from huaweicloudsdkmetastudio.v1.model.create_async_tts_job_response import CreateAsyncTtsJobResponse from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_req import CreateBatchKnowledgeQuestionReq from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_request import CreateBatchKnowledgeQuestionRequest from huaweicloudsdkmetastudio.v1.model.create_batch_knowledge_question_response import CreateBatchKnowledgeQuestionResponse @@ -110,6 +113,9 @@ from huaweicloudsdkmetastudio.v1.model.create_large_file_request import CreateLa from huaweicloudsdkmetastudio.v1.model.create_large_file_response import CreateLargeFileResponse from huaweicloudsdkmetastudio.v1.model.create_once_code_request import CreateOnceCodeRequest from huaweicloudsdkmetastudio.v1.model.create_once_code_response import CreateOnceCodeResponse +from huaweicloudsdkmetastudio.v1.model.create_pacify_words_req import CreatePacifyWordsReq +from huaweicloudsdkmetastudio.v1.model.create_pacify_words_request import CreatePacifyWordsRequest +from huaweicloudsdkmetastudio.v1.model.create_pacify_words_response import CreatePacifyWordsResponse from huaweicloudsdkmetastudio.v1.model.create_photo_detection_req import CreatePhotoDetectionReq from huaweicloudsdkmetastudio.v1.model.create_photo_detection_request import CreatePhotoDetectionRequest from huaweicloudsdkmetastudio.v1.model.create_photo_detection_response import CreatePhotoDetectionResponse @@ -136,6 +142,9 @@ from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_req_base_info impo from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_request import CreateSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_response import CreateSmartLiveRoomResponse from huaweicloudsdkmetastudio.v1.model.create_style_request_body import CreateStyleRequestBody +from huaweicloudsdkmetastudio.v1.model.create_subtitle_file_req import CreateSubtitleFileReq +from huaweicloudsdkmetastudio.v1.model.create_subtitle_file_request import CreateSubtitleFileRequest +from huaweicloudsdkmetastudio.v1.model.create_subtitle_file_response import CreateSubtitleFileResponse from huaweicloudsdkmetastudio.v1.model.create_ttsa_req import CreateTTSAReq from huaweicloudsdkmetastudio.v1.model.create_training_advance_job_request import CreateTrainingAdvanceJobRequest from huaweicloudsdkmetastudio.v1.model.create_training_advance_job_response import CreateTrainingAdvanceJobResponse @@ -183,6 +192,8 @@ from huaweicloudsdkmetastudio.v1.model.delete_knowledge_question_request import from huaweicloudsdkmetastudio.v1.model.delete_knowledge_question_response import DeleteKnowledgeQuestionResponse from huaweicloudsdkmetastudio.v1.model.delete_knowledge_skill_request import DeleteKnowledgeSkillRequest from huaweicloudsdkmetastudio.v1.model.delete_knowledge_skill_response import DeleteKnowledgeSkillResponse +from huaweicloudsdkmetastudio.v1.model.delete_pacify_words_request import DeletePacifyWordsRequest +from huaweicloudsdkmetastudio.v1.model.delete_pacify_words_response import DeletePacifyWordsResponse from huaweicloudsdkmetastudio.v1.model.delete_product_request import DeleteProductRequest from huaweicloudsdkmetastudio.v1.model.delete_product_response import DeleteProductResponse from huaweicloudsdkmetastudio.v1.model.delete_robot_request import DeleteRobotRequest @@ -244,6 +255,7 @@ from huaweicloudsdkmetastudio.v1.model.knowledge_question_create_info import Kno from huaweicloudsdkmetastudio.v1.model.knowledge_question_info import KnowledgeQuestionInfo from huaweicloudsdkmetastudio.v1.model.knowledge_question_update_info import KnowledgeQuestionUpdateInfo from huaweicloudsdkmetastudio.v1.model.knowledge_skill_info import KnowledgeSkillInfo +from huaweicloudsdkmetastudio.v1.model.language import Language from huaweicloudsdkmetastudio.v1.model.language_enum import LanguageEnum from huaweicloudsdkmetastudio.v1.model.large_files_create_req import LargeFilesCreateReq from huaweicloudsdkmetastudio.v1.model.layer_config import LayerConfig @@ -278,6 +290,8 @@ from huaweicloudsdkmetastudio.v1.model.list_knowledge_question_request import Li from huaweicloudsdkmetastudio.v1.model.list_knowledge_question_response import ListKnowledgeQuestionResponse from huaweicloudsdkmetastudio.v1.model.list_knowledge_skill_request import ListKnowledgeSkillRequest from huaweicloudsdkmetastudio.v1.model.list_knowledge_skill_response import ListKnowledgeSkillResponse +from huaweicloudsdkmetastudio.v1.model.list_pacify_words_request import ListPacifyWordsRequest +from huaweicloudsdkmetastudio.v1.model.list_pacify_words_response import ListPacifyWordsResponse from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_request import ListPictureModelingJobsRequest from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_response import ListPictureModelingJobsResponse from huaweicloudsdkmetastudio.v1.model.list_products_request import ListProductsRequest @@ -333,6 +347,8 @@ from huaweicloudsdkmetastudio.v1.model.output_asset_info import OutputAssetInfo from huaweicloudsdkmetastudio.v1.model.output_info import OutputInfo from huaweicloudsdkmetastudio.v1.model.ppt_asset_meta import PPTAssetMeta from huaweicloudsdkmetastudio.v1.model.ppt_page_info import PPTPageInfo +from huaweicloudsdkmetastudio.v1.model.pacify_words_info import PacifyWordsInfo +from huaweicloudsdkmetastudio.v1.model.pacify_words_intent_info import PacifyWordsIntentInfo from huaweicloudsdkmetastudio.v1.model.pages import Pages from huaweicloudsdkmetastudio.v1.model.photo_video_config import PhotoVideoConfig from huaweicloudsdkmetastudio.v1.model.picture_modeling_by_url_req import PictureModelingByUrlReq @@ -392,6 +408,8 @@ from huaweicloudsdkmetastudio.v1.model.show_asset_replication_info_request impor from huaweicloudsdkmetastudio.v1.model.show_asset_replication_info_response import ShowAssetReplicationInfoResponse from huaweicloudsdkmetastudio.v1.model.show_asset_request import ShowAssetRequest from huaweicloudsdkmetastudio.v1.model.show_asset_response import ShowAssetResponse +from huaweicloudsdkmetastudio.v1.model.show_async_tts_job_request import ShowAsyncTtsJobRequest +from huaweicloudsdkmetastudio.v1.model.show_async_tts_job_response import ShowAsyncTtsJobResponse from huaweicloudsdkmetastudio.v1.model.show_beauty_preview_job_request import ShowBeautyPreviewJobRequest from huaweicloudsdkmetastudio.v1.model.show_beauty_preview_job_response import ShowBeautyPreviewJobResponse from huaweicloudsdkmetastudio.v1.model.show_digital_human_business_card_request import ShowDigitalHumanBusinessCardRequest @@ -414,6 +432,14 @@ from huaweicloudsdkmetastudio.v1.model.show_knowledge_question_request import Sh from huaweicloudsdkmetastudio.v1.model.show_knowledge_question_response import ShowKnowledgeQuestionResponse from huaweicloudsdkmetastudio.v1.model.show_knowledge_skill_request import ShowKnowledgeSkillRequest from huaweicloudsdkmetastudio.v1.model.show_knowledge_skill_response import ShowKnowledgeSkillResponse +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_intent_request import ShowPacifyWordsIntentRequest +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_intent_response import ShowPacifyWordsIntentResponse +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_request import ShowPacifyWordsRequest +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_response import ShowPacifyWordsResponse +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_switch_request import ShowPacifyWordsSwitchRequest +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_switch_response import ShowPacifyWordsSwitchResponse +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_trigger_time_request import ShowPacifyWordsTriggerTimeRequest +from huaweicloudsdkmetastudio.v1.model.show_pacify_words_trigger_time_response import ShowPacifyWordsTriggerTimeResponse from huaweicloudsdkmetastudio.v1.model.show_photo_detection_request import ShowPhotoDetectionRequest from huaweicloudsdkmetastudio.v1.model.show_photo_detection_response import ShowPhotoDetectionResponse from huaweicloudsdkmetastudio.v1.model.show_photo_digital_human_video_request import ShowPhotoDigitalHumanVideoRequest @@ -434,6 +460,8 @@ from huaweicloudsdkmetastudio.v1.model.show_smart_live_request import ShowSmartL from huaweicloudsdkmetastudio.v1.model.show_smart_live_response import ShowSmartLiveResponse from huaweicloudsdkmetastudio.v1.model.show_smart_live_room_request import ShowSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.show_smart_live_room_response import ShowSmartLiveRoomResponse +from huaweicloudsdkmetastudio.v1.model.show_subtitle_file_request import ShowSubtitleFileRequest +from huaweicloudsdkmetastudio.v1.model.show_subtitle_file_response import ShowSubtitleFileResponse from huaweicloudsdkmetastudio.v1.model.show_training_segment_info_request import ShowTrainingSegmentInfoRequest from huaweicloudsdkmetastudio.v1.model.show_training_segment_info_response import ShowTrainingSegmentInfoResponse from huaweicloudsdkmetastudio.v1.model.show_tts_audition_file_request import ShowTtsAuditionFileRequest @@ -452,6 +480,7 @@ from huaweicloudsdkmetastudio.v1.model.smart_chat_jobs_req import SmartChatJobsR from huaweicloudsdkmetastudio.v1.model.smart_chat_room_base_info import SmartChatRoomBaseInfo from huaweicloudsdkmetastudio.v1.model.smart_chat_subtitle_config import SmartChatSubtitleConfig from huaweicloudsdkmetastudio.v1.model.smart_chat_video_config import SmartChatVideoConfig +from huaweicloudsdkmetastudio.v1.model.smart_chat_voice_config import SmartChatVoiceConfig from huaweicloudsdkmetastudio.v1.model.smart_image_layer_config import SmartImageLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_layer_config import SmartLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_live_job import SmartLiveJob @@ -475,6 +504,7 @@ from huaweicloudsdkmetastudio.v1.model.style_asset_item import StyleAssetItem from huaweicloudsdkmetastudio.v1.model.style_extra_meta import StyleExtraMeta from huaweicloudsdkmetastudio.v1.model.style_info import StyleInfo from huaweicloudsdkmetastudio.v1.model.subtitle_config import SubtitleConfig +from huaweicloudsdkmetastudio.v1.model.subtitle_file_detail import SubtitleFileDetail from huaweicloudsdkmetastudio.v1.model.subtitle_file_info import SubtitleFileInfo from huaweicloudsdkmetastudio.v1.model.subtitle_files import SubtitleFiles from huaweicloudsdkmetastudio.v1.model.supported_service_enum import SupportedServiceEnum @@ -522,6 +552,15 @@ from huaweicloudsdkmetastudio.v1.model.update_knowledge_question_response import from huaweicloudsdkmetastudio.v1.model.update_knowledge_skill_req import UpdateKnowledgeSkillReq from huaweicloudsdkmetastudio.v1.model.update_knowledge_skill_request import UpdateKnowledgeSkillRequest from huaweicloudsdkmetastudio.v1.model.update_knowledge_skill_response import UpdateKnowledgeSkillResponse +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_req import UpdatePacifyWordsReq +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_request import UpdatePacifyWordsRequest +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_response import UpdatePacifyWordsResponse +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_switch_req import UpdatePacifyWordsSwitchReq +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_switch_request import UpdatePacifyWordsSwitchRequest +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_switch_response import UpdatePacifyWordsSwitchResponse +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_trigger_time_req import UpdatePacifyWordsTriggerTimeReq +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_trigger_time_request import UpdatePacifyWordsTriggerTimeRequest +from huaweicloudsdkmetastudio.v1.model.update_pacify_words_trigger_time_response import UpdatePacifyWordsTriggerTimeResponse from huaweicloudsdkmetastudio.v1.model.update_product_request import UpdateProductRequest from huaweicloudsdkmetastudio.v1.model.update_product_request_body import UpdateProductRequestBody from huaweicloudsdkmetastudio.v1.model.update_product_response import UpdateProductResponse diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_req.py index 4bacd0268..76979e049 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_req.py @@ -59,7 +59,7 @@ class Create2dModelTrainingJobReq: :param name: 分身数字人模型名称。该名称会作为资产库中分身数字人模型资产名称。 :type name: str - :param contact: 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + :param contact: 分身数字人训练任务创建者的手机号。 :type contact: str :param command_message: 命令类型: * UPDATE_VIDEO: 更新视频 * UPLOAD_VIDEO:上传视频 * CONFIRM_ACTION_VIDEO: 确认动作编排视频 * GET_ACTION_VIDEO_MULTIPART: 获取动作编排视频分片 :type command_message: str @@ -164,7 +164,7 @@ class Create2dModelTrainingJobReq: def contact(self): """Gets the contact of this Create2dModelTrainingJobReq. - 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + 分身数字人训练任务创建者的手机号。 :return: The contact of this Create2dModelTrainingJobReq. :rtype: str @@ -175,7 +175,7 @@ class Create2dModelTrainingJobReq: def contact(self, contact): """Sets the contact of this Create2dModelTrainingJobReq. - 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + 分身数字人训练任务创建者的手机号。 :param contact: The contact of this Create2dModelTrainingJobReq. :type contact: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_async_tts_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_async_tts_job_request.py new file mode 100644 index 000000000..7fdd098e2 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_async_tts_job_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAsyncTtsJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'body': 'CreateAsyncTtsJobRequestBody' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, body=None): + """CreateAsyncTtsJobRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the CreateAsyncTtsJobRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateAsyncTtsJobRequestBody` + """ + + + + self._x_app_user_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this CreateAsyncTtsJobRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this CreateAsyncTtsJobRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this CreateAsyncTtsJobRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this CreateAsyncTtsJobRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this CreateAsyncTtsJobRequest. + + :return: The body of this CreateAsyncTtsJobRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateAsyncTtsJobRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAsyncTtsJobRequest. + + :param body: The body of this CreateAsyncTtsJobRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateAsyncTtsJobRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAsyncTtsJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_async_tts_job_request_body.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_async_tts_job_request_body.py new file mode 100644 index 000000000..7bb88782a --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_async_tts_job_request_body.py @@ -0,0 +1,345 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAsyncTtsJobRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'text': 'str', + 'voice_asset_id': 'str', + 'speed': 'int', + 'pitch': 'int', + 'volume': 'int', + 'audio_format': 'str', + 'need_timestamp': 'bool', + 'silence_flag': 'bool', + 'silence_time_ms': 'int' + } + + attribute_map = { + 'text': 'text', + 'voice_asset_id': 'voice_asset_id', + 'speed': 'speed', + 'pitch': 'pitch', + 'volume': 'volume', + 'audio_format': 'audio_format', + 'need_timestamp': 'need_timestamp', + 'silence_flag': 'silence_flag', + 'silence_time_ms': 'silence_time_ms' + } + + def __init__(self, text=None, voice_asset_id=None, speed=None, pitch=None, volume=None, audio_format=None, need_timestamp=None, silence_flag=None, silence_time_ms=None): + """CreateAsyncTtsJobRequestBody + + The model defined in huaweicloud sdk + + :param text: 待合成文本 + :type text: str + :param voice_asset_id: 音色ID + :type voice_asset_id: str + :param speed: 语速。 默认值100,最小值50,最大值200。 > * 当取值为“100”时,表示一个成年人正常的语速,约为250字/分钟。 > * 50表示0.5倍语速,100表示正常语速,200表示2倍语速。 + :type speed: int + :param pitch: 音高。 默认值100,最小值50,最大值200。 + :type pitch: int + :param volume: 音量。 默认值140,最小值90,最大值240。 + :type volume: int + :param audio_format: 输出音频文件格式。默认WAV。 * WAV:wav格式。 * MP3:mp3格式。 + :type audio_format: str + :param need_timestamp: 是否需要时间戳 false不需要;true:需要返回时间戳信息;默认false + :type need_timestamp: bool + :param silence_flag: 异常时是否返回静默音频流 + :type silence_flag: bool + :param silence_time_ms: 异常时返回的静默音频流时长,单位毫秒 + :type silence_time_ms: int + """ + + + + self._text = None + self._voice_asset_id = None + self._speed = None + self._pitch = None + self._volume = None + self._audio_format = None + self._need_timestamp = None + self._silence_flag = None + self._silence_time_ms = None + self.discriminator = None + + self.text = text + self.voice_asset_id = voice_asset_id + if speed is not None: + self.speed = speed + if pitch is not None: + self.pitch = pitch + if volume is not None: + self.volume = volume + if audio_format is not None: + self.audio_format = audio_format + if need_timestamp is not None: + self.need_timestamp = need_timestamp + if silence_flag is not None: + self.silence_flag = silence_flag + if silence_time_ms is not None: + self.silence_time_ms = silence_time_ms + + @property + def text(self): + """Gets the text of this CreateAsyncTtsJobRequestBody. + + 待合成文本 + + :return: The text of this CreateAsyncTtsJobRequestBody. + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this CreateAsyncTtsJobRequestBody. + + 待合成文本 + + :param text: The text of this CreateAsyncTtsJobRequestBody. + :type text: str + """ + self._text = text + + @property + def voice_asset_id(self): + """Gets the voice_asset_id of this CreateAsyncTtsJobRequestBody. + + 音色ID + + :return: The voice_asset_id of this CreateAsyncTtsJobRequestBody. + :rtype: str + """ + return self._voice_asset_id + + @voice_asset_id.setter + def voice_asset_id(self, voice_asset_id): + """Sets the voice_asset_id of this CreateAsyncTtsJobRequestBody. + + 音色ID + + :param voice_asset_id: The voice_asset_id of this CreateAsyncTtsJobRequestBody. + :type voice_asset_id: str + """ + self._voice_asset_id = voice_asset_id + + @property + def speed(self): + """Gets the speed of this CreateAsyncTtsJobRequestBody. + + 语速。 默认值100,最小值50,最大值200。 > * 当取值为“100”时,表示一个成年人正常的语速,约为250字/分钟。 > * 50表示0.5倍语速,100表示正常语速,200表示2倍语速。 + + :return: The speed of this CreateAsyncTtsJobRequestBody. + :rtype: int + """ + return self._speed + + @speed.setter + def speed(self, speed): + """Sets the speed of this CreateAsyncTtsJobRequestBody. + + 语速。 默认值100,最小值50,最大值200。 > * 当取值为“100”时,表示一个成年人正常的语速,约为250字/分钟。 > * 50表示0.5倍语速,100表示正常语速,200表示2倍语速。 + + :param speed: The speed of this CreateAsyncTtsJobRequestBody. + :type speed: int + """ + self._speed = speed + + @property + def pitch(self): + """Gets the pitch of this CreateAsyncTtsJobRequestBody. + + 音高。 默认值100,最小值50,最大值200。 + + :return: The pitch of this CreateAsyncTtsJobRequestBody. + :rtype: int + """ + return self._pitch + + @pitch.setter + def pitch(self, pitch): + """Sets the pitch of this CreateAsyncTtsJobRequestBody. + + 音高。 默认值100,最小值50,最大值200。 + + :param pitch: The pitch of this CreateAsyncTtsJobRequestBody. + :type pitch: int + """ + self._pitch = pitch + + @property + def volume(self): + """Gets the volume of this CreateAsyncTtsJobRequestBody. + + 音量。 默认值140,最小值90,最大值240。 + + :return: The volume of this CreateAsyncTtsJobRequestBody. + :rtype: int + """ + return self._volume + + @volume.setter + def volume(self, volume): + """Sets the volume of this CreateAsyncTtsJobRequestBody. + + 音量。 默认值140,最小值90,最大值240。 + + :param volume: The volume of this CreateAsyncTtsJobRequestBody. + :type volume: int + """ + self._volume = volume + + @property + def audio_format(self): + """Gets the audio_format of this CreateAsyncTtsJobRequestBody. + + 输出音频文件格式。默认WAV。 * WAV:wav格式。 * MP3:mp3格式。 + + :return: The audio_format of this CreateAsyncTtsJobRequestBody. + :rtype: str + """ + return self._audio_format + + @audio_format.setter + def audio_format(self, audio_format): + """Sets the audio_format of this CreateAsyncTtsJobRequestBody. + + 输出音频文件格式。默认WAV。 * WAV:wav格式。 * MP3:mp3格式。 + + :param audio_format: The audio_format of this CreateAsyncTtsJobRequestBody. + :type audio_format: str + """ + self._audio_format = audio_format + + @property + def need_timestamp(self): + """Gets the need_timestamp of this CreateAsyncTtsJobRequestBody. + + 是否需要时间戳 false不需要;true:需要返回时间戳信息;默认false + + :return: The need_timestamp of this CreateAsyncTtsJobRequestBody. + :rtype: bool + """ + return self._need_timestamp + + @need_timestamp.setter + def need_timestamp(self, need_timestamp): + """Sets the need_timestamp of this CreateAsyncTtsJobRequestBody. + + 是否需要时间戳 false不需要;true:需要返回时间戳信息;默认false + + :param need_timestamp: The need_timestamp of this CreateAsyncTtsJobRequestBody. + :type need_timestamp: bool + """ + self._need_timestamp = need_timestamp + + @property + def silence_flag(self): + """Gets the silence_flag of this CreateAsyncTtsJobRequestBody. + + 异常时是否返回静默音频流 + + :return: The silence_flag of this CreateAsyncTtsJobRequestBody. + :rtype: bool + """ + return self._silence_flag + + @silence_flag.setter + def silence_flag(self, silence_flag): + """Sets the silence_flag of this CreateAsyncTtsJobRequestBody. + + 异常时是否返回静默音频流 + + :param silence_flag: The silence_flag of this CreateAsyncTtsJobRequestBody. + :type silence_flag: bool + """ + self._silence_flag = silence_flag + + @property + def silence_time_ms(self): + """Gets the silence_time_ms of this CreateAsyncTtsJobRequestBody. + + 异常时返回的静默音频流时长,单位毫秒 + + :return: The silence_time_ms of this CreateAsyncTtsJobRequestBody. + :rtype: int + """ + return self._silence_time_ms + + @silence_time_ms.setter + def silence_time_ms(self, silence_time_ms): + """Sets the silence_time_ms of this CreateAsyncTtsJobRequestBody. + + 异常时返回的静默音频流时长,单位毫秒 + + :param silence_time_ms: The silence_time_ms of this CreateAsyncTtsJobRequestBody. + :type silence_time_ms: int + """ + self._silence_time_ms = silence_time_ms + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAsyncTtsJobRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_async_tts_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_async_tts_job_response.py new file mode 100644 index 000000000..4af109ae8 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_async_tts_job_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAsyncTtsJobResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id' + } + + def __init__(self, job_id=None): + """CreateAsyncTtsJobResponse + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + """ + + super(CreateAsyncTtsJobResponse, self).__init__() + + self._job_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this CreateAsyncTtsJobResponse. + + 任务ID。 + + :return: The job_id of this CreateAsyncTtsJobResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateAsyncTtsJobResponse. + + 任务ID。 + + :param job_id: The job_id of this CreateAsyncTtsJobResponse. + :type job_id: str + """ + self._job_id = job_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAsyncTtsJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_req.py index 83c6a605b..086ea9847 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_req.py @@ -31,7 +31,7 @@ class CreateDialogUrlReq: The model defined in huaweicloud sdk - :param room_id: 智能交互对话ID。 + :param room_id: 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :type room_id: str :param robot_id: 应用ID。 :type robot_id: str @@ -50,7 +50,7 @@ class CreateDialogUrlReq: def room_id(self): """Gets the room_id of this CreateDialogUrlReq. - 智能交互对话ID。 + 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :return: The room_id of this CreateDialogUrlReq. :rtype: str @@ -61,7 +61,7 @@ class CreateDialogUrlReq: def room_id(self, room_id): """Sets the room_id of this CreateDialogUrlReq. - 智能交互对话ID。 + 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :param room_id: The room_id of this CreateDialogUrlReq. :type room_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_hot_question_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_hot_question_req.py index b561cdd20..93dfb4666 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_hot_question_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_hot_question_req.py @@ -18,15 +18,17 @@ class CreateHotQuestionReq: openapi_types = { 'robot_id': 'str', - 'hot_question': 'str' + 'hot_question': 'str', + 'language': 'LanguageEnum' } attribute_map = { 'robot_id': 'robot_id', - 'hot_question': 'hot_question' + 'hot_question': 'hot_question', + 'language': 'language' } - def __init__(self, robot_id=None, hot_question=None): + def __init__(self, robot_id=None, hot_question=None, language=None): """CreateHotQuestionReq The model defined in huaweicloud sdk @@ -35,16 +37,21 @@ class CreateHotQuestionReq: :type robot_id: str :param hot_question: 热点问题。 :type hot_question: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` """ self._robot_id = None self._hot_question = None + self._language = None self.discriminator = None self.robot_id = robot_id self.hot_question = hot_question + if language is not None: + self.language = language @property def robot_id(self): @@ -90,6 +97,24 @@ class CreateHotQuestionReq: """ self._hot_question = hot_question + @property + def language(self): + """Gets the language of this CreateHotQuestionReq. + + :return: The language of this CreateHotQuestionReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this CreateHotQuestionReq. + + :param language: The language of this CreateHotQuestionReq. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_hot_question_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_hot_question_response.py index b7d83caaf..58dff06f5 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_hot_question_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_hot_question_response.py @@ -20,6 +20,7 @@ class CreateHotQuestionResponse(SdkResponse): openapi_types = { 'hot_question_id': 'str', 'hot_question': 'str', + 'language': 'LanguageEnum', 'robot_id': 'str', 'create_time': 'str', 'update_time': 'str', @@ -29,13 +30,14 @@ class CreateHotQuestionResponse(SdkResponse): attribute_map = { 'hot_question_id': 'hot_question_id', 'hot_question': 'hot_question', + 'language': 'language', 'robot_id': 'robot_id', 'create_time': 'create_time', 'update_time': 'update_time', 'x_request_id': 'X-Request-Id' } - def __init__(self, hot_question_id=None, hot_question=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): + def __init__(self, hot_question_id=None, hot_question=None, language=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): """CreateHotQuestionResponse The model defined in huaweicloud sdk @@ -44,6 +46,8 @@ class CreateHotQuestionResponse(SdkResponse): :type hot_question_id: str :param hot_question: 热点问题。 :type hot_question: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` :param robot_id: 机器人ID。 :type robot_id: str :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -58,6 +62,7 @@ class CreateHotQuestionResponse(SdkResponse): self._hot_question_id = None self._hot_question = None + self._language = None self._robot_id = None self._create_time = None self._update_time = None @@ -68,6 +73,8 @@ class CreateHotQuestionResponse(SdkResponse): self.hot_question_id = hot_question_id if hot_question is not None: self.hot_question = hot_question + if language is not None: + self.language = language if robot_id is not None: self.robot_id = robot_id if create_time is not None: @@ -121,6 +128,24 @@ class CreateHotQuestionResponse(SdkResponse): """ self._hot_question = hot_question + @property + def language(self): + """Gets the language of this CreateHotQuestionResponse. + + :return: The language of this CreateHotQuestionResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this CreateHotQuestionResponse. + + :param language: The language of this CreateHotQuestionResponse. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + @property def robot_id(self): """Gets the robot_id of this CreateHotQuestionResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_pacify_words_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_pacify_words_req.py new file mode 100644 index 000000000..717c54be8 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_pacify_words_req.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePacifyWordsReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'robot_id': 'str', + 'pacify_words_type': 'int', + 'intent': 'str', + 'pacify_words': 'str', + 'language': 'LanguageEnum' + } + + attribute_map = { + 'robot_id': 'robot_id', + 'pacify_words_type': 'pacify_words_type', + 'intent': 'intent', + 'pacify_words': 'pacify_words', + 'language': 'language' + } + + def __init__(self, robot_id=None, pacify_words_type=None, intent=None, pacify_words=None, language=None): + """CreatePacifyWordsReq + + The model defined in huaweicloud sdk + + :param robot_id: 应用ID。 + :type robot_id: str + :param pacify_words_type: 安抚话术类型 > 0:通用安抚话术, 1:意图匹配安抚话术 + :type pacify_words_type: int + :param intent: 意图名称 + :type intent: str + :param pacify_words: 安抚话术。 + :type pacify_words: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + + + + self._robot_id = None + self._pacify_words_type = None + self._intent = None + self._pacify_words = None + self._language = None + self.discriminator = None + + self.robot_id = robot_id + self.pacify_words_type = pacify_words_type + if intent is not None: + self.intent = intent + self.pacify_words = pacify_words + self.language = language + + @property + def robot_id(self): + """Gets the robot_id of this CreatePacifyWordsReq. + + 应用ID。 + + :return: The robot_id of this CreatePacifyWordsReq. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this CreatePacifyWordsReq. + + 应用ID。 + + :param robot_id: The robot_id of this CreatePacifyWordsReq. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def pacify_words_type(self): + """Gets the pacify_words_type of this CreatePacifyWordsReq. + + 安抚话术类型 > 0:通用安抚话术, 1:意图匹配安抚话术 + + :return: The pacify_words_type of this CreatePacifyWordsReq. + :rtype: int + """ + return self._pacify_words_type + + @pacify_words_type.setter + def pacify_words_type(self, pacify_words_type): + """Sets the pacify_words_type of this CreatePacifyWordsReq. + + 安抚话术类型 > 0:通用安抚话术, 1:意图匹配安抚话术 + + :param pacify_words_type: The pacify_words_type of this CreatePacifyWordsReq. + :type pacify_words_type: int + """ + self._pacify_words_type = pacify_words_type + + @property + def intent(self): + """Gets the intent of this CreatePacifyWordsReq. + + 意图名称 + + :return: The intent of this CreatePacifyWordsReq. + :rtype: str + """ + return self._intent + + @intent.setter + def intent(self, intent): + """Sets the intent of this CreatePacifyWordsReq. + + 意图名称 + + :param intent: The intent of this CreatePacifyWordsReq. + :type intent: str + """ + self._intent = intent + + @property + def pacify_words(self): + """Gets the pacify_words of this CreatePacifyWordsReq. + + 安抚话术。 + + :return: The pacify_words of this CreatePacifyWordsReq. + :rtype: str + """ + return self._pacify_words + + @pacify_words.setter + def pacify_words(self, pacify_words): + """Sets the pacify_words of this CreatePacifyWordsReq. + + 安抚话术。 + + :param pacify_words: The pacify_words of this CreatePacifyWordsReq. + :type pacify_words: str + """ + self._pacify_words = pacify_words + + @property + def language(self): + """Gets the language of this CreatePacifyWordsReq. + + :return: The language of this CreatePacifyWordsReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this CreatePacifyWordsReq. + + :param language: The language of this CreatePacifyWordsReq. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePacifyWordsReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_pacify_words_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_pacify_words_request.py new file mode 100644 index 000000000..64c4f80cd --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_pacify_words_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePacifyWordsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'body': 'CreatePacifyWordsReq' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, body=None): + """CreatePacifyWordsRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the CreatePacifyWordsRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.CreatePacifyWordsReq` + """ + + + + self._x_app_user_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this CreatePacifyWordsRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this CreatePacifyWordsRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this CreatePacifyWordsRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this CreatePacifyWordsRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this CreatePacifyWordsRequest. + + :return: The body of this CreatePacifyWordsRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreatePacifyWordsReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePacifyWordsRequest. + + :param body: The body of this CreatePacifyWordsRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.CreatePacifyWordsReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePacifyWordsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_pacify_words_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_pacify_words_response.py new file mode 100644 index 000000000..be372f59d --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_pacify_words_response.py @@ -0,0 +1,340 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePacifyWordsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'pacify_words_id': 'str', + 'pacify_words': 'str', + 'language': 'LanguageEnum', + 'robot_id': 'str', + 'pacify_words_type': 'int', + 'intent': 'str', + 'create_time': 'str', + 'update_time': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'pacify_words_id': 'pacify_words_id', + 'pacify_words': 'pacify_words', + 'language': 'language', + 'robot_id': 'robot_id', + 'pacify_words_type': 'pacify_words_type', + 'intent': 'intent', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, pacify_words_id=None, pacify_words=None, language=None, robot_id=None, pacify_words_type=None, intent=None, create_time=None, update_time=None, x_request_id=None): + """CreatePacifyWordsResponse + + The model defined in huaweicloud sdk + + :param pacify_words_id: 安抚话术ID。 + :type pacify_words_id: str + :param pacify_words: 安抚话术。 + :type pacify_words: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + :param robot_id: 应用ID。 + :type robot_id: str + :param pacify_words_type: 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + :type pacify_words_type: int + :param intent: 意图名称 + :type intent: str + :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + :param x_request_id: + :type x_request_id: str + """ + + super(CreatePacifyWordsResponse, self).__init__() + + self._pacify_words_id = None + self._pacify_words = None + self._language = None + self._robot_id = None + self._pacify_words_type = None + self._intent = None + self._create_time = None + self._update_time = None + self._x_request_id = None + self.discriminator = None + + if pacify_words_id is not None: + self.pacify_words_id = pacify_words_id + if pacify_words is not None: + self.pacify_words = pacify_words + if language is not None: + self.language = language + if robot_id is not None: + self.robot_id = robot_id + if pacify_words_type is not None: + self.pacify_words_type = pacify_words_type + if intent is not None: + self.intent = intent + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def pacify_words_id(self): + """Gets the pacify_words_id of this CreatePacifyWordsResponse. + + 安抚话术ID。 + + :return: The pacify_words_id of this CreatePacifyWordsResponse. + :rtype: str + """ + return self._pacify_words_id + + @pacify_words_id.setter + def pacify_words_id(self, pacify_words_id): + """Sets the pacify_words_id of this CreatePacifyWordsResponse. + + 安抚话术ID。 + + :param pacify_words_id: The pacify_words_id of this CreatePacifyWordsResponse. + :type pacify_words_id: str + """ + self._pacify_words_id = pacify_words_id + + @property + def pacify_words(self): + """Gets the pacify_words of this CreatePacifyWordsResponse. + + 安抚话术。 + + :return: The pacify_words of this CreatePacifyWordsResponse. + :rtype: str + """ + return self._pacify_words + + @pacify_words.setter + def pacify_words(self, pacify_words): + """Sets the pacify_words of this CreatePacifyWordsResponse. + + 安抚话术。 + + :param pacify_words: The pacify_words of this CreatePacifyWordsResponse. + :type pacify_words: str + """ + self._pacify_words = pacify_words + + @property + def language(self): + """Gets the language of this CreatePacifyWordsResponse. + + :return: The language of this CreatePacifyWordsResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this CreatePacifyWordsResponse. + + :param language: The language of this CreatePacifyWordsResponse. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + + @property + def robot_id(self): + """Gets the robot_id of this CreatePacifyWordsResponse. + + 应用ID。 + + :return: The robot_id of this CreatePacifyWordsResponse. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this CreatePacifyWordsResponse. + + 应用ID。 + + :param robot_id: The robot_id of this CreatePacifyWordsResponse. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def pacify_words_type(self): + """Gets the pacify_words_type of this CreatePacifyWordsResponse. + + 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + + :return: The pacify_words_type of this CreatePacifyWordsResponse. + :rtype: int + """ + return self._pacify_words_type + + @pacify_words_type.setter + def pacify_words_type(self, pacify_words_type): + """Sets the pacify_words_type of this CreatePacifyWordsResponse. + + 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + + :param pacify_words_type: The pacify_words_type of this CreatePacifyWordsResponse. + :type pacify_words_type: int + """ + self._pacify_words_type = pacify_words_type + + @property + def intent(self): + """Gets the intent of this CreatePacifyWordsResponse. + + 意图名称 + + :return: The intent of this CreatePacifyWordsResponse. + :rtype: str + """ + return self._intent + + @intent.setter + def intent(self, intent): + """Sets the intent of this CreatePacifyWordsResponse. + + 意图名称 + + :param intent: The intent of this CreatePacifyWordsResponse. + :type intent: str + """ + self._intent = intent + + @property + def create_time(self): + """Gets the create_time of this CreatePacifyWordsResponse. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this CreatePacifyWordsResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this CreatePacifyWordsResponse. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this CreatePacifyWordsResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this CreatePacifyWordsResponse. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this CreatePacifyWordsResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this CreatePacifyWordsResponse. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this CreatePacifyWordsResponse. + :type update_time: str + """ + self._update_time = update_time + + @property + def x_request_id(self): + """Gets the x_request_id of this CreatePacifyWordsResponse. + + :return: The x_request_id of this CreatePacifyWordsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreatePacifyWordsResponse. + + :param x_request_id: The x_request_id of this CreatePacifyWordsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePacifyWordsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_subtitle_file_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_subtitle_file_req.py new file mode 100644 index 000000000..59009fa62 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_subtitle_file_req.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSubtitleFileReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_id': 'str', + 'sequence_no': 'int' + } + + attribute_map = { + 'script_id': 'script_id', + 'sequence_no': 'sequence_no' + } + + def __init__(self, script_id=None, sequence_no=None): + """CreateSubtitleFileReq + + The model defined in huaweicloud sdk + + :param script_id: 剧本ID。 + :type script_id: str + :param sequence_no: 剧本序号。 > * 剧本序号不填生成所有场景的字幕;如果需要生成单场景的字幕,需要填剧本序号。 + :type sequence_no: int + """ + + + + self._script_id = None + self._sequence_no = None + self.discriminator = None + + if script_id is not None: + self.script_id = script_id + if sequence_no is not None: + self.sequence_no = sequence_no + + @property + def script_id(self): + """Gets the script_id of this CreateSubtitleFileReq. + + 剧本ID。 + + :return: The script_id of this CreateSubtitleFileReq. + :rtype: str + """ + return self._script_id + + @script_id.setter + def script_id(self, script_id): + """Sets the script_id of this CreateSubtitleFileReq. + + 剧本ID。 + + :param script_id: The script_id of this CreateSubtitleFileReq. + :type script_id: str + """ + self._script_id = script_id + + @property + def sequence_no(self): + """Gets the sequence_no of this CreateSubtitleFileReq. + + 剧本序号。 > * 剧本序号不填生成所有场景的字幕;如果需要生成单场景的字幕,需要填剧本序号。 + + :return: The sequence_no of this CreateSubtitleFileReq. + :rtype: int + """ + return self._sequence_no + + @sequence_no.setter + def sequence_no(self, sequence_no): + """Sets the sequence_no of this CreateSubtitleFileReq. + + 剧本序号。 > * 剧本序号不填生成所有场景的字幕;如果需要生成单场景的字幕,需要填剧本序号。 + + :param sequence_no: The sequence_no of this CreateSubtitleFileReq. + :type sequence_no: int + """ + self._sequence_no = sequence_no + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateSubtitleFileReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_subtitle_file_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_subtitle_file_request.py new file mode 100644 index 000000000..d78dc9ae8 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_subtitle_file_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSubtitleFileRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'body': 'CreateSubtitleFileReq' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, body=None): + """CreateSubtitleFileRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the CreateSubtitleFileRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateSubtitleFileReq` + """ + + + + self._x_app_user_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this CreateSubtitleFileRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this CreateSubtitleFileRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this CreateSubtitleFileRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this CreateSubtitleFileRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this CreateSubtitleFileRequest. + + :return: The body of this CreateSubtitleFileRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateSubtitleFileReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateSubtitleFileRequest. + + :param body: The body of this CreateSubtitleFileRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateSubtitleFileReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateSubtitleFileRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_subtitle_file_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_subtitle_file_response.py new file mode 100644 index 000000000..5fe043e5b --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_subtitle_file_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSubtitleFileResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, job_id=None, x_request_id=None): + """CreateSubtitleFileResponse + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + :param x_request_id: + :type x_request_id: str + """ + + super(CreateSubtitleFileResponse, self).__init__() + + self._job_id = None + self._x_request_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def job_id(self): + """Gets the job_id of this CreateSubtitleFileResponse. + + 任务ID。 + + :return: The job_id of this CreateSubtitleFileResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateSubtitleFileResponse. + + 任务ID。 + + :param job_id: The job_id of this CreateSubtitleFileResponse. + :type job_id: str + """ + self._job_id = job_id + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateSubtitleFileResponse. + + :return: The x_request_id of this CreateSubtitleFileResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreateSubtitleFileResponse. + + :param x_request_id: The x_request_id of this CreateSubtitleFileResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateSubtitleFileResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_tts_audition_request_body.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_tts_audition_request_body.py index b09885df2..98c7eacef 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_tts_audition_request_body.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_tts_audition_request_body.py @@ -21,7 +21,8 @@ class CreateTtsAuditionRequestBody: 'emotion': 'str', 'speed': 'int', 'pitch': 'int', - 'volume': 'int' + 'volume': 'int', + 'business_type': 'str' } attribute_map = { @@ -29,10 +30,11 @@ class CreateTtsAuditionRequestBody: 'emotion': 'emotion', 'speed': 'speed', 'pitch': 'pitch', - 'volume': 'volume' + 'volume': 'volume', + 'business_type': 'business_type' } - def __init__(self, text=None, emotion=None, speed=None, pitch=None, volume=None): + def __init__(self, text=None, emotion=None, speed=None, pitch=None, volume=None, business_type=None): """CreateTtsAuditionRequestBody The model defined in huaweicloud sdk @@ -47,6 +49,8 @@ class CreateTtsAuditionRequestBody: :type pitch: int :param volume: 音量。 默认值140,最小值90,最大值240。 :type volume: int + :param business_type: 业务场景,多个入口调用试听接口时的业务场景 + :type business_type: str """ @@ -56,6 +60,7 @@ class CreateTtsAuditionRequestBody: self._speed = None self._pitch = None self._volume = None + self._business_type = None self.discriminator = None self.text = text @@ -66,6 +71,8 @@ class CreateTtsAuditionRequestBody: self.pitch = pitch if volume is not None: self.volume = volume + if business_type is not None: + self.business_type = business_type @property def text(self): @@ -177,6 +184,28 @@ class CreateTtsAuditionRequestBody: """ self._volume = volume + @property + def business_type(self): + """Gets the business_type of this CreateTtsAuditionRequestBody. + + 业务场景,多个入口调用试听接口时的业务场景 + + :return: The business_type of this CreateTtsAuditionRequestBody. + :rtype: str + """ + return self._business_type + + @business_type.setter + def business_type(self, business_type): + """Sets the business_type of this CreateTtsAuditionRequestBody. + + 业务场景,多个入口调用试听接口时的业务场景 + + :param business_type: The business_type of this CreateTtsAuditionRequestBody. + :type business_type: str + """ + self._business_type = business_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_welcome_speech_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_welcome_speech_req.py index d7be881d7..5f484d6ef 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_welcome_speech_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_welcome_speech_req.py @@ -18,15 +18,17 @@ class CreateWelcomeSpeechReq: openapi_types = { 'robot_id': 'str', - 'welcome_speech': 'str' + 'welcome_speech': 'str', + 'language': 'LanguageEnum' } attribute_map = { 'robot_id': 'robot_id', - 'welcome_speech': 'welcome_speech' + 'welcome_speech': 'welcome_speech', + 'language': 'language' } - def __init__(self, robot_id=None, welcome_speech=None): + def __init__(self, robot_id=None, welcome_speech=None, language=None): """CreateWelcomeSpeechReq The model defined in huaweicloud sdk @@ -35,16 +37,21 @@ class CreateWelcomeSpeechReq: :type robot_id: str :param welcome_speech: 欢迎词。 :type welcome_speech: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` """ self._robot_id = None self._welcome_speech = None + self._language = None self.discriminator = None self.robot_id = robot_id self.welcome_speech = welcome_speech + if language is not None: + self.language = language @property def robot_id(self): @@ -90,6 +97,24 @@ class CreateWelcomeSpeechReq: """ self._welcome_speech = welcome_speech + @property + def language(self): + """Gets the language of this CreateWelcomeSpeechReq. + + :return: The language of this CreateWelcomeSpeechReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this CreateWelcomeSpeechReq. + + :param language: The language of this CreateWelcomeSpeechReq. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_welcome_speech_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_welcome_speech_response.py index 44df623ff..e724cc05f 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_welcome_speech_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_welcome_speech_response.py @@ -20,6 +20,8 @@ class CreateWelcomeSpeechResponse(SdkResponse): openapi_types = { 'welcome_speech_id': 'str', 'welcome_speech': 'str', + 'enable_welcome_speech': 'bool', + 'language': 'LanguageEnum', 'robot_id': 'str', 'create_time': 'str', 'update_time': 'str', @@ -29,13 +31,15 @@ class CreateWelcomeSpeechResponse(SdkResponse): attribute_map = { 'welcome_speech_id': 'welcome_speech_id', 'welcome_speech': 'welcome_speech', + 'enable_welcome_speech': 'enable_welcome_speech', + 'language': 'language', 'robot_id': 'robot_id', 'create_time': 'create_time', 'update_time': 'update_time', 'x_request_id': 'X-Request-Id' } - def __init__(self, welcome_speech_id=None, welcome_speech=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): + def __init__(self, welcome_speech_id=None, welcome_speech=None, enable_welcome_speech=None, language=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): """CreateWelcomeSpeechResponse The model defined in huaweicloud sdk @@ -44,6 +48,10 @@ class CreateWelcomeSpeechResponse(SdkResponse): :type welcome_speech_id: str :param welcome_speech: 欢迎词。 :type welcome_speech: str + :param enable_welcome_speech: 欢迎词功能开关。 + :type enable_welcome_speech: bool + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` :param robot_id: 应用ID。 :type robot_id: str :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -58,6 +66,8 @@ class CreateWelcomeSpeechResponse(SdkResponse): self._welcome_speech_id = None self._welcome_speech = None + self._enable_welcome_speech = None + self._language = None self._robot_id = None self._create_time = None self._update_time = None @@ -68,6 +78,10 @@ class CreateWelcomeSpeechResponse(SdkResponse): self.welcome_speech_id = welcome_speech_id if welcome_speech is not None: self.welcome_speech = welcome_speech + if enable_welcome_speech is not None: + self.enable_welcome_speech = enable_welcome_speech + if language is not None: + self.language = language if robot_id is not None: self.robot_id = robot_id if create_time is not None: @@ -121,6 +135,46 @@ class CreateWelcomeSpeechResponse(SdkResponse): """ self._welcome_speech = welcome_speech + @property + def enable_welcome_speech(self): + """Gets the enable_welcome_speech of this CreateWelcomeSpeechResponse. + + 欢迎词功能开关。 + + :return: The enable_welcome_speech of this CreateWelcomeSpeechResponse. + :rtype: bool + """ + return self._enable_welcome_speech + + @enable_welcome_speech.setter + def enable_welcome_speech(self, enable_welcome_speech): + """Sets the enable_welcome_speech of this CreateWelcomeSpeechResponse. + + 欢迎词功能开关。 + + :param enable_welcome_speech: The enable_welcome_speech of this CreateWelcomeSpeechResponse. + :type enable_welcome_speech: bool + """ + self._enable_welcome_speech = enable_welcome_speech + + @property + def language(self): + """Gets the language of this CreateWelcomeSpeechResponse. + + :return: The language of this CreateWelcomeSpeechResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this CreateWelcomeSpeechResponse. + + :param language: The language of this CreateWelcomeSpeechResponse. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + @property def robot_id(self): """Gets the robot_id of this CreateWelcomeSpeechResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_pacify_words_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_pacify_words_request.py new file mode 100644 index 000000000..8646c9bb2 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_pacify_words_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePacifyWordsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'pacify_words_id': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'pacify_words_id': 'pacify_words_id' + } + + def __init__(self, x_app_user_id=None, pacify_words_id=None): + """DeletePacifyWordsRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param pacify_words_id: 安抚话术ID。 + :type pacify_words_id: str + """ + + + + self._x_app_user_id = None + self._pacify_words_id = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.pacify_words_id = pacify_words_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this DeletePacifyWordsRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this DeletePacifyWordsRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this DeletePacifyWordsRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this DeletePacifyWordsRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def pacify_words_id(self): + """Gets the pacify_words_id of this DeletePacifyWordsRequest. + + 安抚话术ID。 + + :return: The pacify_words_id of this DeletePacifyWordsRequest. + :rtype: str + """ + return self._pacify_words_id + + @pacify_words_id.setter + def pacify_words_id(self, pacify_words_id): + """Sets the pacify_words_id of this DeletePacifyWordsRequest. + + 安抚话术ID。 + + :param pacify_words_id: The pacify_words_id of this DeletePacifyWordsRequest. + :type pacify_words_id: str + """ + self._pacify_words_id = pacify_words_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePacifyWordsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_pacify_words_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_pacify_words_response.py new file mode 100644 index 000000000..9ad412c84 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_pacify_words_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePacifyWordsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_request_id': 'str' + } + + attribute_map = { + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, x_request_id=None): + """DeletePacifyWordsResponse + + The model defined in huaweicloud sdk + + :param x_request_id: + :type x_request_id: str + """ + + super(DeletePacifyWordsResponse, self).__init__() + + self._x_request_id = None + self.discriminator = None + + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def x_request_id(self): + """Gets the x_request_id of this DeletePacifyWordsResponse. + + :return: The x_request_id of this DeletePacifyWordsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DeletePacifyWordsResponse. + + :param x_request_id: The x_request_id of this DeletePacifyWordsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePacifyWordsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/hot_question_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/hot_question_info.py index 3fee85eb7..47e98626c 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/hot_question_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/hot_question_info.py @@ -19,6 +19,7 @@ class HotQuestionInfo: openapi_types = { 'hot_question_id': 'str', 'hot_question': 'str', + 'language': 'LanguageEnum', 'robot_id': 'str', 'create_time': 'str', 'update_time': 'str' @@ -27,12 +28,13 @@ class HotQuestionInfo: attribute_map = { 'hot_question_id': 'hot_question_id', 'hot_question': 'hot_question', + 'language': 'language', 'robot_id': 'robot_id', 'create_time': 'create_time', 'update_time': 'update_time' } - def __init__(self, hot_question_id=None, hot_question=None, robot_id=None, create_time=None, update_time=None): + def __init__(self, hot_question_id=None, hot_question=None, language=None, robot_id=None, create_time=None, update_time=None): """HotQuestionInfo The model defined in huaweicloud sdk @@ -41,6 +43,8 @@ class HotQuestionInfo: :type hot_question_id: str :param hot_question: 热点问题。 :type hot_question: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` :param robot_id: 机器人ID。 :type robot_id: str :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -53,6 +57,7 @@ class HotQuestionInfo: self._hot_question_id = None self._hot_question = None + self._language = None self._robot_id = None self._create_time = None self._update_time = None @@ -62,6 +67,8 @@ class HotQuestionInfo: self.hot_question_id = hot_question_id if hot_question is not None: self.hot_question = hot_question + if language is not None: + self.language = language if robot_id is not None: self.robot_id = robot_id if create_time is not None: @@ -113,6 +120,24 @@ class HotQuestionInfo: """ self._hot_question = hot_question + @property + def language(self): + """Gets the language of this HotQuestionInfo. + + :return: The language of this HotQuestionInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this HotQuestionInfo. + + :param language: The language of this HotQuestionInfo. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + @property def robot_id(self): """Gets the robot_id of this HotQuestionInfo. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/huawei_ei_cbs.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/huawei_ei_cbs.py index 5a3686812..9328a5d38 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/huawei_ei_cbs.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/huawei_ei_cbs.py @@ -21,7 +21,8 @@ class HuaweiEiCbs: 'region': 'int', 'cbs_project_id': 'str', 'sis_region': 'int', - 'sis_project_id': 'str' + 'sis_project_id': 'str', + 'enable_hot_words': 'bool' } attribute_map = { @@ -29,10 +30,11 @@ class HuaweiEiCbs: 'region': 'region', 'cbs_project_id': 'cbs_project_id', 'sis_region': 'sis_region', - 'sis_project_id': 'sis_project_id' + 'sis_project_id': 'sis_project_id', + 'enable_hot_words': 'enable_hot_words' } - def __init__(self, app_id=None, region=None, cbs_project_id=None, sis_region=None, sis_project_id=None): + def __init__(self, app_id=None, region=None, cbs_project_id=None, sis_region=None, sis_project_id=None, enable_hot_words=None): """HuaweiEiCbs The model defined in huaweicloud sdk @@ -47,6 +49,8 @@ class HuaweiEiCbs: :type sis_region: int :param sis_project_id: SIS所在区域的projectId :type sis_project_id: str + :param enable_hot_words: 是否开启热词 + :type enable_hot_words: bool """ @@ -56,6 +60,7 @@ class HuaweiEiCbs: self._cbs_project_id = None self._sis_region = None self._sis_project_id = None + self._enable_hot_words = None self.discriminator = None if app_id is not None: @@ -68,6 +73,8 @@ class HuaweiEiCbs: self.sis_region = sis_region if sis_project_id is not None: self.sis_project_id = sis_project_id + if enable_hot_words is not None: + self.enable_hot_words = enable_hot_words @property def app_id(self): @@ -179,6 +186,28 @@ class HuaweiEiCbs: """ self._sis_project_id = sis_project_id + @property + def enable_hot_words(self): + """Gets the enable_hot_words of this HuaweiEiCbs. + + 是否开启热词 + + :return: The enable_hot_words of this HuaweiEiCbs. + :rtype: bool + """ + return self._enable_hot_words + + @enable_hot_words.setter + def enable_hot_words(self, enable_hot_words): + """Sets the enable_hot_words of this HuaweiEiCbs. + + 是否开启热词 + + :param enable_hot_words: The enable_hot_words of this HuaweiEiCbs. + :type enable_hot_words: bool + """ + self._enable_hot_words = enable_hot_words + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/knowledge_intent_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/knowledge_intent_info.py index ca9d1d818..052bebe75 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/knowledge_intent_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/knowledge_intent_info.py @@ -41,7 +41,7 @@ class KnowledgeIntentInfo: :param intent_id: 意图ID。 :type intent_id: str - :param name: 你是谁。 + :param name: 主题。 :type name: str :param identify: 意图标识。 :type identify: str @@ -102,7 +102,7 @@ class KnowledgeIntentInfo: def name(self): """Gets the name of this KnowledgeIntentInfo. - 你是谁。 + 主题。 :return: The name of this KnowledgeIntentInfo. :rtype: str @@ -113,7 +113,7 @@ class KnowledgeIntentInfo: def name(self, name): """Sets the name of this KnowledgeIntentInfo. - 你是谁。 + 主题。 :param name: The name of this KnowledgeIntentInfo. :type name: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/language.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/language.py new file mode 100644 index 000000000..140a7b6cb --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/language.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Language: + """ + allowed enum values + """ + UNKNOW = "UNKNOW" + CN = "CN" + EN = "EN" + GER = "GER" + FR = "fr" + KR = "Kr" + POR = "por" + JPN = "JPN" + ITA = "Ita" + ESP = "ESP" + DBH = "DBH" + GT = "GT" + GXH = "GXH" + HBH = "HBH" + SXH = "SXH" + SCH = "SCH" + YY = "YY" + RUSSIAN = "Russian" + FILIPINO = "Filipino" + DUTCH = "Dutch" + INDONESIAN = "Indonesian" + VIETNAMESE = "Vietnamese" + ARABIC = "Arabic" + TURKISH = "Turkish" + MALAY = "Malay" + THAI = "Thai" + FINNISH = "Finnish" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """Language + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Language): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/language_enum.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/language_enum.py index 89c69a533..88923426f 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/language_enum.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/language_enum.py @@ -11,6 +11,8 @@ class LanguageEnum: """ ZH_CN = "zh_CN" EN_US = "en_US" + CN = "CN" + EN = "EN" """ Attributes: openapi_types (dict): The key is attribute name diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_hot_question_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_hot_question_request.py index bf03207d3..3ef1ffb41 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_hot_question_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_hot_question_request.py @@ -21,7 +21,8 @@ class ListHotQuestionRequest: 'offset': 'int', 'limit': 'int', 'sort_dir': 'str', - 'robot_id': 'str' + 'robot_id': 'str', + 'language': 'str' } attribute_map = { @@ -29,10 +30,11 @@ class ListHotQuestionRequest: 'offset': 'offset', 'limit': 'limit', 'sort_dir': 'sort_dir', - 'robot_id': 'robot_id' + 'robot_id': 'robot_id', + 'language': 'language' } - def __init__(self, x_app_user_id=None, offset=None, limit=None, sort_dir=None, robot_id=None): + def __init__(self, x_app_user_id=None, offset=None, limit=None, sort_dir=None, robot_id=None, language=None): """ListHotQuestionRequest The model defined in huaweicloud sdk @@ -47,6 +49,8 @@ class ListHotQuestionRequest: :type sort_dir: str :param robot_id: 机器人ID。 :type robot_id: str + :param language: 智能交互语言 * CN:中文 * EN:英文 + :type language: str """ @@ -56,6 +60,7 @@ class ListHotQuestionRequest: self._limit = None self._sort_dir = None self._robot_id = None + self._language = None self.discriminator = None if x_app_user_id is not None: @@ -67,6 +72,8 @@ class ListHotQuestionRequest: if sort_dir is not None: self.sort_dir = sort_dir self.robot_id = robot_id + if language is not None: + self.language = language @property def x_app_user_id(self): @@ -178,6 +185,28 @@ class ListHotQuestionRequest: """ self._robot_id = robot_id + @property + def language(self): + """Gets the language of this ListHotQuestionRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :return: The language of this ListHotQuestionRequest. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this ListHotQuestionRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :param language: The language of this ListHotQuestionRequest. + :type language: str + """ + self._language = language + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_hot_words_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_hot_words_request.py index 56d6d9a2a..05bfa0ff9 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_hot_words_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_hot_words_request.py @@ -49,7 +49,7 @@ class ListHotWordsRequest: :type robot_id: str :param region: sis服务所在区域 :type region: int - :param language: 智能交互语言 * zh_CN:简体中文 * en_US:英语 + :param language: 智能交互语言 * zh_CN:简体中文(已下线,请使用CN) * en_US:英语(已下线,请使用EN) * CN: 中文 * EN: 英文 :type language: str """ @@ -189,7 +189,7 @@ class ListHotWordsRequest: def language(self): """Gets the language of this ListHotWordsRequest. - 智能交互语言 * zh_CN:简体中文 * en_US:英语 + 智能交互语言 * zh_CN:简体中文(已下线,请使用CN) * en_US:英语(已下线,请使用EN) * CN: 中文 * EN: 英文 :return: The language of this ListHotWordsRequest. :rtype: str @@ -200,7 +200,7 @@ class ListHotWordsRequest: def language(self, language): """Sets the language of this ListHotWordsRequest. - 智能交互语言 * zh_CN:简体中文 * en_US:英语 + 智能交互语言 * zh_CN:简体中文(已下线,请使用CN) * en_US:英语(已下线,请使用EN) * CN: 中文 * EN: 英文 :param language: The language of this ListHotWordsRequest. :type language: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_pacify_words_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_pacify_words_request.py new file mode 100644 index 000000000..b1a5045aa --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_pacify_words_request.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPacifyWordsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'robot_id': 'str', + 'language': 'str', + 'pacify_words_type': 'int', + 'intent': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'offset': 'offset', + 'limit': 'limit', + 'robot_id': 'robot_id', + 'language': 'language', + 'pacify_words_type': 'pacify_words_type', + 'intent': 'intent' + } + + def __init__(self, x_app_user_id=None, offset=None, limit=None, robot_id=None, language=None, pacify_words_type=None, intent=None): + """ListPacifyWordsRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param offset: 偏移量,表示从此偏移量开始查询。 + :type offset: int + :param limit: 每页显示的条目数量。 + :type limit: int + :param robot_id: 应用ID。 + :type robot_id: str + :param language: 智能交互语言 * CN:中文 * EN:英文 + :type language: str + :param pacify_words_type: 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + :type pacify_words_type: int + :param intent: 安抚话术意图 + :type intent: str + """ + + + + self._x_app_user_id = None + self._offset = None + self._limit = None + self._robot_id = None + self._language = None + self._pacify_words_type = None + self._intent = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + self.robot_id = robot_id + if language is not None: + self.language = language + if pacify_words_type is not None: + self.pacify_words_type = pacify_words_type + if intent is not None: + self.intent = intent + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ListPacifyWordsRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this ListPacifyWordsRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ListPacifyWordsRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ListPacifyWordsRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def offset(self): + """Gets the offset of this ListPacifyWordsRequest. + + 偏移量,表示从此偏移量开始查询。 + + :return: The offset of this ListPacifyWordsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListPacifyWordsRequest. + + 偏移量,表示从此偏移量开始查询。 + + :param offset: The offset of this ListPacifyWordsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListPacifyWordsRequest. + + 每页显示的条目数量。 + + :return: The limit of this ListPacifyWordsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListPacifyWordsRequest. + + 每页显示的条目数量。 + + :param limit: The limit of this ListPacifyWordsRequest. + :type limit: int + """ + self._limit = limit + + @property + def robot_id(self): + """Gets the robot_id of this ListPacifyWordsRequest. + + 应用ID。 + + :return: The robot_id of this ListPacifyWordsRequest. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this ListPacifyWordsRequest. + + 应用ID。 + + :param robot_id: The robot_id of this ListPacifyWordsRequest. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def language(self): + """Gets the language of this ListPacifyWordsRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :return: The language of this ListPacifyWordsRequest. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this ListPacifyWordsRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :param language: The language of this ListPacifyWordsRequest. + :type language: str + """ + self._language = language + + @property + def pacify_words_type(self): + """Gets the pacify_words_type of this ListPacifyWordsRequest. + + 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + + :return: The pacify_words_type of this ListPacifyWordsRequest. + :rtype: int + """ + return self._pacify_words_type + + @pacify_words_type.setter + def pacify_words_type(self, pacify_words_type): + """Sets the pacify_words_type of this ListPacifyWordsRequest. + + 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + + :param pacify_words_type: The pacify_words_type of this ListPacifyWordsRequest. + :type pacify_words_type: int + """ + self._pacify_words_type = pacify_words_type + + @property + def intent(self): + """Gets the intent of this ListPacifyWordsRequest. + + 安抚话术意图 + + :return: The intent of this ListPacifyWordsRequest. + :rtype: str + """ + return self._intent + + @intent.setter + def intent(self, intent): + """Sets the intent of this ListPacifyWordsRequest. + + 安抚话术意图 + + :param intent: The intent of this ListPacifyWordsRequest. + :type intent: str + """ + self._intent = intent + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPacifyWordsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_pacify_words_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_pacify_words_response.py new file mode 100644 index 000000000..1066fde21 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_pacify_words_response.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPacifyWordsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'offset': 'int', + 'limit': 'int', + 'count': 'int', + 'data': 'list[PacifyWordsInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'offset': 'offset', + 'limit': 'limit', + 'count': 'count', + 'data': 'data', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, offset=None, limit=None, count=None, data=None, x_request_id=None): + """ListPacifyWordsResponse + + The model defined in huaweicloud sdk + + :param offset: 与第一条数据的偏移量 + :type offset: int + :param limit: 页面大小 + :type limit: int + :param count: 总数量 + :type count: int + :param data: 安抚话术信息 + :type data: list[:class:`huaweicloudsdkmetastudio.v1.PacifyWordsInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListPacifyWordsResponse, self).__init__() + + self._offset = None + self._limit = None + self._count = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if count is not None: + self.count = count + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def offset(self): + """Gets the offset of this ListPacifyWordsResponse. + + 与第一条数据的偏移量 + + :return: The offset of this ListPacifyWordsResponse. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListPacifyWordsResponse. + + 与第一条数据的偏移量 + + :param offset: The offset of this ListPacifyWordsResponse. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListPacifyWordsResponse. + + 页面大小 + + :return: The limit of this ListPacifyWordsResponse. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListPacifyWordsResponse. + + 页面大小 + + :param limit: The limit of this ListPacifyWordsResponse. + :type limit: int + """ + self._limit = limit + + @property + def count(self): + """Gets the count of this ListPacifyWordsResponse. + + 总数量 + + :return: The count of this ListPacifyWordsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListPacifyWordsResponse. + + 总数量 + + :param count: The count of this ListPacifyWordsResponse. + :type count: int + """ + self._count = count + + @property + def data(self): + """Gets the data of this ListPacifyWordsResponse. + + 安抚话术信息 + + :return: The data of this ListPacifyWordsResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.PacifyWordsInfo`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListPacifyWordsResponse. + + 安抚话术信息 + + :param data: The data of this ListPacifyWordsResponse. + :type data: list[:class:`huaweicloudsdkmetastudio.v1.PacifyWordsInfo`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ListPacifyWordsResponse. + + :return: The x_request_id of this ListPacifyWordsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListPacifyWordsResponse. + + :param x_request_id: The x_request_id of this ListPacifyWordsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPacifyWordsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_welcome_speech_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_welcome_speech_request.py index aa2b5aafd..1cd07d8bb 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_welcome_speech_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_welcome_speech_request.py @@ -20,17 +20,19 @@ class ListWelcomeSpeechRequest: 'x_app_user_id': 'str', 'offset': 'int', 'limit': 'int', - 'robot_id': 'str' + 'robot_id': 'str', + 'language': 'str' } attribute_map = { 'x_app_user_id': 'X-App-UserId', 'offset': 'offset', 'limit': 'limit', - 'robot_id': 'robot_id' + 'robot_id': 'robot_id', + 'language': 'language' } - def __init__(self, x_app_user_id=None, offset=None, limit=None, robot_id=None): + def __init__(self, x_app_user_id=None, offset=None, limit=None, robot_id=None, language=None): """ListWelcomeSpeechRequest The model defined in huaweicloud sdk @@ -43,6 +45,8 @@ class ListWelcomeSpeechRequest: :type limit: int :param robot_id: 应用ID。 :type robot_id: str + :param language: 智能交互语言 * CN:中文 * EN:英文 + :type language: str """ @@ -51,6 +55,7 @@ class ListWelcomeSpeechRequest: self._offset = None self._limit = None self._robot_id = None + self._language = None self.discriminator = None if x_app_user_id is not None: @@ -60,6 +65,8 @@ class ListWelcomeSpeechRequest: if limit is not None: self.limit = limit self.robot_id = robot_id + if language is not None: + self.language = language @property def x_app_user_id(self): @@ -149,6 +156,28 @@ class ListWelcomeSpeechRequest: """ self._robot_id = robot_id + @property + def language(self): + """Gets the language of this ListWelcomeSpeechRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :return: The language of this ListWelcomeSpeechRequest. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this ListWelcomeSpeechRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :param language: The language of this ListWelcomeSpeechRequest. + :type language: str + """ + self._language = language + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/mobvoi_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/mobvoi_config.py index e3e6b587f..6dca30e5b 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/mobvoi_config.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/mobvoi_config.py @@ -21,7 +21,8 @@ class MobvoiConfig: 'app_secret': 'str', 'role_id': 'str', 'sis_region': 'int', - 'sis_project_id': 'str' + 'sis_project_id': 'str', + 'enable_hot_words': 'bool' } attribute_map = { @@ -29,10 +30,11 @@ class MobvoiConfig: 'app_secret': 'app_secret', 'role_id': 'role_id', 'sis_region': 'sis_region', - 'sis_project_id': 'sis_project_id' + 'sis_project_id': 'sis_project_id', + 'enable_hot_words': 'enable_hot_words' } - def __init__(self, app_key=None, app_secret=None, role_id=None, sis_region=None, sis_project_id=None): + def __init__(self, app_key=None, app_secret=None, role_id=None, sis_region=None, sis_project_id=None, enable_hot_words=None): """MobvoiConfig The model defined in huaweicloud sdk @@ -47,6 +49,8 @@ class MobvoiConfig: :type sis_region: int :param sis_project_id: SIS所在区域的projectId :type sis_project_id: str + :param enable_hot_words: 是否开启热词 + :type enable_hot_words: bool """ @@ -56,6 +60,7 @@ class MobvoiConfig: self._role_id = None self._sis_region = None self._sis_project_id = None + self._enable_hot_words = None self.discriminator = None if app_key is not None: @@ -68,6 +73,8 @@ class MobvoiConfig: self.sis_region = sis_region if sis_project_id is not None: self.sis_project_id = sis_project_id + if enable_hot_words is not None: + self.enable_hot_words = enable_hot_words @property def app_key(self): @@ -179,6 +186,28 @@ class MobvoiConfig: """ self._sis_project_id = sis_project_id + @property + def enable_hot_words(self): + """Gets the enable_hot_words of this MobvoiConfig. + + 是否开启热词 + + :return: The enable_hot_words of this MobvoiConfig. + :rtype: bool + """ + return self._enable_hot_words + + @enable_hot_words.setter + def enable_hot_words(self, enable_hot_words): + """Sets the enable_hot_words of this MobvoiConfig. + + 是否开启热词 + + :param enable_hot_words: The enable_hot_words of this MobvoiConfig. + :type enable_hot_words: bool + """ + self._enable_hot_words = enable_hot_words + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/pacify_words_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/pacify_words_info.py new file mode 100644 index 000000000..17aee6059 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/pacify_words_info.py @@ -0,0 +1,314 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PacifyWordsInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'pacify_words_id': 'str', + 'pacify_words': 'str', + 'language': 'LanguageEnum', + 'robot_id': 'str', + 'pacify_words_type': 'int', + 'intent': 'str', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'pacify_words_id': 'pacify_words_id', + 'pacify_words': 'pacify_words', + 'language': 'language', + 'robot_id': 'robot_id', + 'pacify_words_type': 'pacify_words_type', + 'intent': 'intent', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, pacify_words_id=None, pacify_words=None, language=None, robot_id=None, pacify_words_type=None, intent=None, create_time=None, update_time=None): + """PacifyWordsInfo + + The model defined in huaweicloud sdk + + :param pacify_words_id: 安抚话术ID。 + :type pacify_words_id: str + :param pacify_words: 安抚话术。 + :type pacify_words: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + :param robot_id: 应用ID。 + :type robot_id: str + :param pacify_words_type: 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + :type pacify_words_type: int + :param intent: 意图名称 + :type intent: str + :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + """ + + + + self._pacify_words_id = None + self._pacify_words = None + self._language = None + self._robot_id = None + self._pacify_words_type = None + self._intent = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if pacify_words_id is not None: + self.pacify_words_id = pacify_words_id + if pacify_words is not None: + self.pacify_words = pacify_words + if language is not None: + self.language = language + if robot_id is not None: + self.robot_id = robot_id + if pacify_words_type is not None: + self.pacify_words_type = pacify_words_type + if intent is not None: + self.intent = intent + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def pacify_words_id(self): + """Gets the pacify_words_id of this PacifyWordsInfo. + + 安抚话术ID。 + + :return: The pacify_words_id of this PacifyWordsInfo. + :rtype: str + """ + return self._pacify_words_id + + @pacify_words_id.setter + def pacify_words_id(self, pacify_words_id): + """Sets the pacify_words_id of this PacifyWordsInfo. + + 安抚话术ID。 + + :param pacify_words_id: The pacify_words_id of this PacifyWordsInfo. + :type pacify_words_id: str + """ + self._pacify_words_id = pacify_words_id + + @property + def pacify_words(self): + """Gets the pacify_words of this PacifyWordsInfo. + + 安抚话术。 + + :return: The pacify_words of this PacifyWordsInfo. + :rtype: str + """ + return self._pacify_words + + @pacify_words.setter + def pacify_words(self, pacify_words): + """Sets the pacify_words of this PacifyWordsInfo. + + 安抚话术。 + + :param pacify_words: The pacify_words of this PacifyWordsInfo. + :type pacify_words: str + """ + self._pacify_words = pacify_words + + @property + def language(self): + """Gets the language of this PacifyWordsInfo. + + :return: The language of this PacifyWordsInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this PacifyWordsInfo. + + :param language: The language of this PacifyWordsInfo. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + + @property + def robot_id(self): + """Gets the robot_id of this PacifyWordsInfo. + + 应用ID。 + + :return: The robot_id of this PacifyWordsInfo. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this PacifyWordsInfo. + + 应用ID。 + + :param robot_id: The robot_id of this PacifyWordsInfo. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def pacify_words_type(self): + """Gets the pacify_words_type of this PacifyWordsInfo. + + 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + + :return: The pacify_words_type of this PacifyWordsInfo. + :rtype: int + """ + return self._pacify_words_type + + @pacify_words_type.setter + def pacify_words_type(self, pacify_words_type): + """Sets the pacify_words_type of this PacifyWordsInfo. + + 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + + :param pacify_words_type: The pacify_words_type of this PacifyWordsInfo. + :type pacify_words_type: int + """ + self._pacify_words_type = pacify_words_type + + @property + def intent(self): + """Gets the intent of this PacifyWordsInfo. + + 意图名称 + + :return: The intent of this PacifyWordsInfo. + :rtype: str + """ + return self._intent + + @intent.setter + def intent(self, intent): + """Sets the intent of this PacifyWordsInfo. + + 意图名称 + + :param intent: The intent of this PacifyWordsInfo. + :type intent: str + """ + self._intent = intent + + @property + def create_time(self): + """Gets the create_time of this PacifyWordsInfo. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this PacifyWordsInfo. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this PacifyWordsInfo. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this PacifyWordsInfo. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this PacifyWordsInfo. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this PacifyWordsInfo. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this PacifyWordsInfo. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this PacifyWordsInfo. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PacifyWordsInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/pacify_words_intent_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/pacify_words_intent_info.py new file mode 100644 index 000000000..c042c1fb5 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/pacify_words_intent_info.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PacifyWordsIntentInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'intent': 'str', + 'desc_cn': 'str', + 'desc_en': 'str' + } + + attribute_map = { + 'intent': 'intent', + 'desc_cn': 'desc_cn', + 'desc_en': 'desc_en' + } + + def __init__(self, intent=None, desc_cn=None, desc_en=None): + """PacifyWordsIntentInfo + + The model defined in huaweicloud sdk + + :param intent: 意图名称 + :type intent: str + :param desc_cn: 意图中文描述 + :type desc_cn: str + :param desc_en: 意图英文描述 + :type desc_en: str + """ + + + + self._intent = None + self._desc_cn = None + self._desc_en = None + self.discriminator = None + + if intent is not None: + self.intent = intent + if desc_cn is not None: + self.desc_cn = desc_cn + if desc_en is not None: + self.desc_en = desc_en + + @property + def intent(self): + """Gets the intent of this PacifyWordsIntentInfo. + + 意图名称 + + :return: The intent of this PacifyWordsIntentInfo. + :rtype: str + """ + return self._intent + + @intent.setter + def intent(self, intent): + """Sets the intent of this PacifyWordsIntentInfo. + + 意图名称 + + :param intent: The intent of this PacifyWordsIntentInfo. + :type intent: str + """ + self._intent = intent + + @property + def desc_cn(self): + """Gets the desc_cn of this PacifyWordsIntentInfo. + + 意图中文描述 + + :return: The desc_cn of this PacifyWordsIntentInfo. + :rtype: str + """ + return self._desc_cn + + @desc_cn.setter + def desc_cn(self, desc_cn): + """Sets the desc_cn of this PacifyWordsIntentInfo. + + 意图中文描述 + + :param desc_cn: The desc_cn of this PacifyWordsIntentInfo. + :type desc_cn: str + """ + self._desc_cn = desc_cn + + @property + def desc_en(self): + """Gets the desc_en of this PacifyWordsIntentInfo. + + 意图英文描述 + + :return: The desc_en of this PacifyWordsIntentInfo. + :rtype: str + """ + return self._desc_en + + @desc_en.setter + def desc_en(self, desc_en): + """Sets the desc_en of this PacifyWordsIntentInfo. + + 意图英文描述 + + :param desc_en: The desc_en of this PacifyWordsIntentInfo. + :type desc_en: str + """ + self._desc_en = desc_en + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PacifyWordsIntentInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_response.py index 43d2113c7..234423913 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_response.py @@ -138,7 +138,7 @@ class Show2dModelTrainingJobResponse(SdkResponse): :type last_update_time: str :param create_time: 创建时间,格式遵循:RFC 3339。 例 “2020-07-30T10:43:17Z” :type create_time: str - :param contact: 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + :param contact: 分身数字人训练任务创建者的手机号。 :type contact: str :param batch_name: 分身数字人训练任务的批次名称。 :type batch_name: str @@ -541,7 +541,7 @@ class Show2dModelTrainingJobResponse(SdkResponse): def contact(self): """Gets the contact of this Show2dModelTrainingJobResponse. - 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + 分身数字人训练任务创建者的手机号。 :return: The contact of this Show2dModelTrainingJobResponse. :rtype: str @@ -552,7 +552,7 @@ class Show2dModelTrainingJobResponse(SdkResponse): def contact(self, contact): """Sets the contact of this Show2dModelTrainingJobResponse. - 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + 分身数字人训练任务创建者的手机号。 :param contact: The contact of this Show2dModelTrainingJobResponse. :type contact: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_async_tts_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_async_tts_job_request.py new file mode 100644 index 000000000..f76808804 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_async_tts_job_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAsyncTtsJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'job_id': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'job_id': 'job_id' + } + + def __init__(self, x_app_user_id=None, job_id=None): + """ShowAsyncTtsJobRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param job_id: 任务ID。 + :type job_id: str + """ + + + + self._x_app_user_id = None + self._job_id = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.job_id = job_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ShowAsyncTtsJobRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this ShowAsyncTtsJobRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ShowAsyncTtsJobRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ShowAsyncTtsJobRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def job_id(self): + """Gets the job_id of this ShowAsyncTtsJobRequest. + + 任务ID。 + + :return: The job_id of this ShowAsyncTtsJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ShowAsyncTtsJobRequest. + + 任务ID。 + + :param job_id: The job_id of this ShowAsyncTtsJobRequest. + :type job_id: str + """ + self._job_id = job_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAsyncTtsJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_async_tts_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_async_tts_job_response.py new file mode 100644 index 000000000..4361de1b7 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_async_tts_job_response.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAsyncTtsJobResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'state': 'str', + 'audio_file_url': 'str', + 'audio_info_file_url': 'str' + } + + attribute_map = { + 'state': 'state', + 'audio_file_url': 'audio_file_url', + 'audio_info_file_url': 'audio_info_file_url' + } + + def __init__(self, state=None, audio_file_url=None, audio_info_file_url=None): + """ShowAsyncTtsJobResponse + + The model defined in huaweicloud sdk + + :param state: 音频文件是否已生成完成。该标记为PROCESSING时,应该每隔3秒再次调用本接口获取音频文件(WAITING 等待中,PROCESSING 处理中,SUCCEED 成功,FAILED 失败) + :type state: str + :param audio_file_url: 音频文件下载链接,有效期为1个小时。 + :type audio_file_url: str + :param audio_info_file_url: 音频信息文件下载链接,有效期为1个小时。 + :type audio_info_file_url: str + """ + + super(ShowAsyncTtsJobResponse, self).__init__() + + self._state = None + self._audio_file_url = None + self._audio_info_file_url = None + self.discriminator = None + + if state is not None: + self.state = state + if audio_file_url is not None: + self.audio_file_url = audio_file_url + if audio_info_file_url is not None: + self.audio_info_file_url = audio_info_file_url + + @property + def state(self): + """Gets the state of this ShowAsyncTtsJobResponse. + + 音频文件是否已生成完成。该标记为PROCESSING时,应该每隔3秒再次调用本接口获取音频文件(WAITING 等待中,PROCESSING 处理中,SUCCEED 成功,FAILED 失败) + + :return: The state of this ShowAsyncTtsJobResponse. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this ShowAsyncTtsJobResponse. + + 音频文件是否已生成完成。该标记为PROCESSING时,应该每隔3秒再次调用本接口获取音频文件(WAITING 等待中,PROCESSING 处理中,SUCCEED 成功,FAILED 失败) + + :param state: The state of this ShowAsyncTtsJobResponse. + :type state: str + """ + self._state = state + + @property + def audio_file_url(self): + """Gets the audio_file_url of this ShowAsyncTtsJobResponse. + + 音频文件下载链接,有效期为1个小时。 + + :return: The audio_file_url of this ShowAsyncTtsJobResponse. + :rtype: str + """ + return self._audio_file_url + + @audio_file_url.setter + def audio_file_url(self, audio_file_url): + """Sets the audio_file_url of this ShowAsyncTtsJobResponse. + + 音频文件下载链接,有效期为1个小时。 + + :param audio_file_url: The audio_file_url of this ShowAsyncTtsJobResponse. + :type audio_file_url: str + """ + self._audio_file_url = audio_file_url + + @property + def audio_info_file_url(self): + """Gets the audio_info_file_url of this ShowAsyncTtsJobResponse. + + 音频信息文件下载链接,有效期为1个小时。 + + :return: The audio_info_file_url of this ShowAsyncTtsJobResponse. + :rtype: str + """ + return self._audio_info_file_url + + @audio_info_file_url.setter + def audio_info_file_url(self, audio_info_file_url): + """Sets the audio_info_file_url of this ShowAsyncTtsJobResponse. + + 音频信息文件下载链接,有效期为1个小时。 + + :param audio_info_file_url: The audio_info_file_url of this ShowAsyncTtsJobResponse. + :type audio_info_file_url: str + """ + self._audio_info_file_url = audio_info_file_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAsyncTtsJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_hot_question_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_hot_question_response.py index 89eb6248c..12cb0e594 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_hot_question_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_hot_question_response.py @@ -20,6 +20,7 @@ class ShowHotQuestionResponse(SdkResponse): openapi_types = { 'hot_question_id': 'str', 'hot_question': 'str', + 'language': 'LanguageEnum', 'robot_id': 'str', 'create_time': 'str', 'update_time': 'str', @@ -29,13 +30,14 @@ class ShowHotQuestionResponse(SdkResponse): attribute_map = { 'hot_question_id': 'hot_question_id', 'hot_question': 'hot_question', + 'language': 'language', 'robot_id': 'robot_id', 'create_time': 'create_time', 'update_time': 'update_time', 'x_request_id': 'X-Request-Id' } - def __init__(self, hot_question_id=None, hot_question=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): + def __init__(self, hot_question_id=None, hot_question=None, language=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): """ShowHotQuestionResponse The model defined in huaweicloud sdk @@ -44,6 +46,8 @@ class ShowHotQuestionResponse(SdkResponse): :type hot_question_id: str :param hot_question: 热点问题。 :type hot_question: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` :param robot_id: 机器人ID。 :type robot_id: str :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -58,6 +62,7 @@ class ShowHotQuestionResponse(SdkResponse): self._hot_question_id = None self._hot_question = None + self._language = None self._robot_id = None self._create_time = None self._update_time = None @@ -68,6 +73,8 @@ class ShowHotQuestionResponse(SdkResponse): self.hot_question_id = hot_question_id if hot_question is not None: self.hot_question = hot_question + if language is not None: + self.language = language if robot_id is not None: self.robot_id = robot_id if create_time is not None: @@ -121,6 +128,24 @@ class ShowHotQuestionResponse(SdkResponse): """ self._hot_question = hot_question + @property + def language(self): + """Gets the language of this ShowHotQuestionResponse. + + :return: The language of this ShowHotQuestionResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this ShowHotQuestionResponse. + + :param language: The language of this ShowHotQuestionResponse. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + @property def robot_id(self): """Gets the robot_id of this ShowHotQuestionResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_knowledge_intent_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_knowledge_intent_response.py index 794096f29..ac07a6e53 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_knowledge_intent_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_knowledge_intent_response.py @@ -44,7 +44,7 @@ class ShowKnowledgeIntentResponse(SdkResponse): :param intent_id: 意图ID。 :type intent_id: str - :param name: 你是谁。 + :param name: 主题。 :type name: str :param identify: 意图标识。 :type identify: str @@ -110,7 +110,7 @@ class ShowKnowledgeIntentResponse(SdkResponse): def name(self): """Gets the name of this ShowKnowledgeIntentResponse. - 你是谁。 + 主题。 :return: The name of this ShowKnowledgeIntentResponse. :rtype: str @@ -121,7 +121,7 @@ class ShowKnowledgeIntentResponse(SdkResponse): def name(self, name): """Sets the name of this ShowKnowledgeIntentResponse. - 你是谁。 + 主题。 :param name: The name of this ShowKnowledgeIntentResponse. :type name: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_intent_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_intent_request.py new file mode 100644 index 000000000..3529dfe2c --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_intent_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPacifyWordsIntentRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'robot_id': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'robot_id': 'robot_id' + } + + def __init__(self, x_app_user_id=None, robot_id=None): + """ShowPacifyWordsIntentRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param robot_id: 应用ID。 + :type robot_id: str + """ + + + + self._x_app_user_id = None + self._robot_id = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.robot_id = robot_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ShowPacifyWordsIntentRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this ShowPacifyWordsIntentRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ShowPacifyWordsIntentRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ShowPacifyWordsIntentRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def robot_id(self): + """Gets the robot_id of this ShowPacifyWordsIntentRequest. + + 应用ID。 + + :return: The robot_id of this ShowPacifyWordsIntentRequest. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this ShowPacifyWordsIntentRequest. + + 应用ID。 + + :param robot_id: The robot_id of this ShowPacifyWordsIntentRequest. + :type robot_id: str + """ + self._robot_id = robot_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPacifyWordsIntentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_intent_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_intent_response.py new file mode 100644 index 000000000..7ec485c17 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_intent_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPacifyWordsIntentResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data': 'list[PacifyWordsIntentInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'data': 'data', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, data=None, x_request_id=None): + """ShowPacifyWordsIntentResponse + + The model defined in huaweicloud sdk + + :param data: 安抚话术意图信息 + :type data: list[:class:`huaweicloudsdkmetastudio.v1.PacifyWordsIntentInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ShowPacifyWordsIntentResponse, self).__init__() + + self._data = None + self._x_request_id = None + self.discriminator = None + + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def data(self): + """Gets the data of this ShowPacifyWordsIntentResponse. + + 安抚话术意图信息 + + :return: The data of this ShowPacifyWordsIntentResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.PacifyWordsIntentInfo`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowPacifyWordsIntentResponse. + + 安抚话术意图信息 + + :param data: The data of this ShowPacifyWordsIntentResponse. + :type data: list[:class:`huaweicloudsdkmetastudio.v1.PacifyWordsIntentInfo`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowPacifyWordsIntentResponse. + + :return: The x_request_id of this ShowPacifyWordsIntentResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowPacifyWordsIntentResponse. + + :param x_request_id: The x_request_id of this ShowPacifyWordsIntentResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPacifyWordsIntentResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_request.py new file mode 100644 index 000000000..8cfe35007 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPacifyWordsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'pacify_words_id': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'pacify_words_id': 'pacify_words_id' + } + + def __init__(self, x_app_user_id=None, pacify_words_id=None): + """ShowPacifyWordsRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param pacify_words_id: 安抚话术ID。 + :type pacify_words_id: str + """ + + + + self._x_app_user_id = None + self._pacify_words_id = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.pacify_words_id = pacify_words_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ShowPacifyWordsRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this ShowPacifyWordsRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ShowPacifyWordsRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ShowPacifyWordsRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def pacify_words_id(self): + """Gets the pacify_words_id of this ShowPacifyWordsRequest. + + 安抚话术ID。 + + :return: The pacify_words_id of this ShowPacifyWordsRequest. + :rtype: str + """ + return self._pacify_words_id + + @pacify_words_id.setter + def pacify_words_id(self, pacify_words_id): + """Sets the pacify_words_id of this ShowPacifyWordsRequest. + + 安抚话术ID。 + + :param pacify_words_id: The pacify_words_id of this ShowPacifyWordsRequest. + :type pacify_words_id: str + """ + self._pacify_words_id = pacify_words_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPacifyWordsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_response.py new file mode 100644 index 000000000..bc7b0b478 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_response.py @@ -0,0 +1,340 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPacifyWordsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'pacify_words_id': 'str', + 'pacify_words': 'str', + 'language': 'LanguageEnum', + 'robot_id': 'str', + 'pacify_words_type': 'int', + 'intent': 'str', + 'create_time': 'str', + 'update_time': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'pacify_words_id': 'pacify_words_id', + 'pacify_words': 'pacify_words', + 'language': 'language', + 'robot_id': 'robot_id', + 'pacify_words_type': 'pacify_words_type', + 'intent': 'intent', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, pacify_words_id=None, pacify_words=None, language=None, robot_id=None, pacify_words_type=None, intent=None, create_time=None, update_time=None, x_request_id=None): + """ShowPacifyWordsResponse + + The model defined in huaweicloud sdk + + :param pacify_words_id: 安抚话术ID。 + :type pacify_words_id: str + :param pacify_words: 安抚话术。 + :type pacify_words: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + :param robot_id: 应用ID。 + :type robot_id: str + :param pacify_words_type: 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + :type pacify_words_type: int + :param intent: 意图名称 + :type intent: str + :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + :param x_request_id: + :type x_request_id: str + """ + + super(ShowPacifyWordsResponse, self).__init__() + + self._pacify_words_id = None + self._pacify_words = None + self._language = None + self._robot_id = None + self._pacify_words_type = None + self._intent = None + self._create_time = None + self._update_time = None + self._x_request_id = None + self.discriminator = None + + if pacify_words_id is not None: + self.pacify_words_id = pacify_words_id + if pacify_words is not None: + self.pacify_words = pacify_words + if language is not None: + self.language = language + if robot_id is not None: + self.robot_id = robot_id + if pacify_words_type is not None: + self.pacify_words_type = pacify_words_type + if intent is not None: + self.intent = intent + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def pacify_words_id(self): + """Gets the pacify_words_id of this ShowPacifyWordsResponse. + + 安抚话术ID。 + + :return: The pacify_words_id of this ShowPacifyWordsResponse. + :rtype: str + """ + return self._pacify_words_id + + @pacify_words_id.setter + def pacify_words_id(self, pacify_words_id): + """Sets the pacify_words_id of this ShowPacifyWordsResponse. + + 安抚话术ID。 + + :param pacify_words_id: The pacify_words_id of this ShowPacifyWordsResponse. + :type pacify_words_id: str + """ + self._pacify_words_id = pacify_words_id + + @property + def pacify_words(self): + """Gets the pacify_words of this ShowPacifyWordsResponse. + + 安抚话术。 + + :return: The pacify_words of this ShowPacifyWordsResponse. + :rtype: str + """ + return self._pacify_words + + @pacify_words.setter + def pacify_words(self, pacify_words): + """Sets the pacify_words of this ShowPacifyWordsResponse. + + 安抚话术。 + + :param pacify_words: The pacify_words of this ShowPacifyWordsResponse. + :type pacify_words: str + """ + self._pacify_words = pacify_words + + @property + def language(self): + """Gets the language of this ShowPacifyWordsResponse. + + :return: The language of this ShowPacifyWordsResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this ShowPacifyWordsResponse. + + :param language: The language of this ShowPacifyWordsResponse. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + + @property + def robot_id(self): + """Gets the robot_id of this ShowPacifyWordsResponse. + + 应用ID。 + + :return: The robot_id of this ShowPacifyWordsResponse. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this ShowPacifyWordsResponse. + + 应用ID。 + + :param robot_id: The robot_id of this ShowPacifyWordsResponse. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def pacify_words_type(self): + """Gets the pacify_words_type of this ShowPacifyWordsResponse. + + 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + + :return: The pacify_words_type of this ShowPacifyWordsResponse. + :rtype: int + """ + return self._pacify_words_type + + @pacify_words_type.setter + def pacify_words_type(self, pacify_words_type): + """Sets the pacify_words_type of this ShowPacifyWordsResponse. + + 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + + :param pacify_words_type: The pacify_words_type of this ShowPacifyWordsResponse. + :type pacify_words_type: int + """ + self._pacify_words_type = pacify_words_type + + @property + def intent(self): + """Gets the intent of this ShowPacifyWordsResponse. + + 意图名称 + + :return: The intent of this ShowPacifyWordsResponse. + :rtype: str + """ + return self._intent + + @intent.setter + def intent(self, intent): + """Sets the intent of this ShowPacifyWordsResponse. + + 意图名称 + + :param intent: The intent of this ShowPacifyWordsResponse. + :type intent: str + """ + self._intent = intent + + @property + def create_time(self): + """Gets the create_time of this ShowPacifyWordsResponse. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this ShowPacifyWordsResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowPacifyWordsResponse. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this ShowPacifyWordsResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ShowPacifyWordsResponse. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this ShowPacifyWordsResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowPacifyWordsResponse. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this ShowPacifyWordsResponse. + :type update_time: str + """ + self._update_time = update_time + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowPacifyWordsResponse. + + :return: The x_request_id of this ShowPacifyWordsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowPacifyWordsResponse. + + :param x_request_id: The x_request_id of this ShowPacifyWordsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPacifyWordsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_switch_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_switch_request.py new file mode 100644 index 000000000..8f2d513d6 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_switch_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPacifyWordsSwitchRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'robot_id': 'str', + 'language': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'robot_id': 'robot_id', + 'language': 'language' + } + + def __init__(self, x_app_user_id=None, robot_id=None, language=None): + """ShowPacifyWordsSwitchRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param robot_id: 应用ID。 + :type robot_id: str + :param language: 智能交互语言 * CN:中文 * EN:英文 + :type language: str + """ + + + + self._x_app_user_id = None + self._robot_id = None + self._language = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.robot_id = robot_id + self.language = language + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ShowPacifyWordsSwitchRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this ShowPacifyWordsSwitchRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ShowPacifyWordsSwitchRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ShowPacifyWordsSwitchRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def robot_id(self): + """Gets the robot_id of this ShowPacifyWordsSwitchRequest. + + 应用ID。 + + :return: The robot_id of this ShowPacifyWordsSwitchRequest. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this ShowPacifyWordsSwitchRequest. + + 应用ID。 + + :param robot_id: The robot_id of this ShowPacifyWordsSwitchRequest. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def language(self): + """Gets the language of this ShowPacifyWordsSwitchRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :return: The language of this ShowPacifyWordsSwitchRequest. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this ShowPacifyWordsSwitchRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :param language: The language of this ShowPacifyWordsSwitchRequest. + :type language: str + """ + self._language = language + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPacifyWordsSwitchRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_switch_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_switch_response.py new file mode 100644 index 000000000..232501b6f --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_switch_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPacifyWordsSwitchResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'enable_pacify_words': 'bool', + 'x_request_id': 'str' + } + + attribute_map = { + 'enable_pacify_words': 'enable_pacify_words', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, enable_pacify_words=None, x_request_id=None): + """ShowPacifyWordsSwitchResponse + + The model defined in huaweicloud sdk + + :param enable_pacify_words: 安抚话术功能开关。 + :type enable_pacify_words: bool + :param x_request_id: + :type x_request_id: str + """ + + super(ShowPacifyWordsSwitchResponse, self).__init__() + + self._enable_pacify_words = None + self._x_request_id = None + self.discriminator = None + + if enable_pacify_words is not None: + self.enable_pacify_words = enable_pacify_words + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def enable_pacify_words(self): + """Gets the enable_pacify_words of this ShowPacifyWordsSwitchResponse. + + 安抚话术功能开关。 + + :return: The enable_pacify_words of this ShowPacifyWordsSwitchResponse. + :rtype: bool + """ + return self._enable_pacify_words + + @enable_pacify_words.setter + def enable_pacify_words(self, enable_pacify_words): + """Sets the enable_pacify_words of this ShowPacifyWordsSwitchResponse. + + 安抚话术功能开关。 + + :param enable_pacify_words: The enable_pacify_words of this ShowPacifyWordsSwitchResponse. + :type enable_pacify_words: bool + """ + self._enable_pacify_words = enable_pacify_words + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowPacifyWordsSwitchResponse. + + :return: The x_request_id of this ShowPacifyWordsSwitchResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowPacifyWordsSwitchResponse. + + :param x_request_id: The x_request_id of this ShowPacifyWordsSwitchResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPacifyWordsSwitchResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_trigger_time_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_trigger_time_request.py new file mode 100644 index 000000000..35e673605 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_trigger_time_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPacifyWordsTriggerTimeRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'robot_id': 'str', + 'language': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'robot_id': 'robot_id', + 'language': 'language' + } + + def __init__(self, x_app_user_id=None, robot_id=None, language=None): + """ShowPacifyWordsTriggerTimeRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param robot_id: 应用ID。 + :type robot_id: str + :param language: 智能交互语言 * CN:中文 * EN:英文 + :type language: str + """ + + + + self._x_app_user_id = None + self._robot_id = None + self._language = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.robot_id = robot_id + self.language = language + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ShowPacifyWordsTriggerTimeRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this ShowPacifyWordsTriggerTimeRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ShowPacifyWordsTriggerTimeRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ShowPacifyWordsTriggerTimeRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def robot_id(self): + """Gets the robot_id of this ShowPacifyWordsTriggerTimeRequest. + + 应用ID。 + + :return: The robot_id of this ShowPacifyWordsTriggerTimeRequest. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this ShowPacifyWordsTriggerTimeRequest. + + 应用ID。 + + :param robot_id: The robot_id of this ShowPacifyWordsTriggerTimeRequest. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def language(self): + """Gets the language of this ShowPacifyWordsTriggerTimeRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :return: The language of this ShowPacifyWordsTriggerTimeRequest. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this ShowPacifyWordsTriggerTimeRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :param language: The language of this ShowPacifyWordsTriggerTimeRequest. + :type language: str + """ + self._language = language + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPacifyWordsTriggerTimeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_trigger_time_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_trigger_time_response.py new file mode 100644 index 000000000..8757b2376 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_pacify_words_trigger_time_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPacifyWordsTriggerTimeResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'trigger_time': 'int', + 'x_request_id': 'str' + } + + attribute_map = { + 'trigger_time': 'trigger_time', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, trigger_time=None, x_request_id=None): + """ShowPacifyWordsTriggerTimeResponse + + The model defined in huaweicloud sdk + + :param trigger_time: 安抚话术等待触发时长,单位毫秒 + :type trigger_time: int + :param x_request_id: + :type x_request_id: str + """ + + super(ShowPacifyWordsTriggerTimeResponse, self).__init__() + + self._trigger_time = None + self._x_request_id = None + self.discriminator = None + + if trigger_time is not None: + self.trigger_time = trigger_time + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def trigger_time(self): + """Gets the trigger_time of this ShowPacifyWordsTriggerTimeResponse. + + 安抚话术等待触发时长,单位毫秒 + + :return: The trigger_time of this ShowPacifyWordsTriggerTimeResponse. + :rtype: int + """ + return self._trigger_time + + @trigger_time.setter + def trigger_time(self, trigger_time): + """Sets the trigger_time of this ShowPacifyWordsTriggerTimeResponse. + + 安抚话术等待触发时长,单位毫秒 + + :param trigger_time: The trigger_time of this ShowPacifyWordsTriggerTimeResponse. + :type trigger_time: int + """ + self._trigger_time = trigger_time + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowPacifyWordsTriggerTimeResponse. + + :return: The x_request_id of this ShowPacifyWordsTriggerTimeResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowPacifyWordsTriggerTimeResponse. + + :param x_request_id: The x_request_id of this ShowPacifyWordsTriggerTimeResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPacifyWordsTriggerTimeResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_request.py index 418b83069..84e14bee8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_request.py @@ -35,7 +35,7 @@ class ShowSmartChatJobRequest: :param x_app_user_id: 第三方用户ID。不允许输入中文。 :type x_app_user_id: str - :param room_id: 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。 + :param room_id: 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :type room_id: str :param job_id: 任务ID。 :type job_id: str @@ -79,7 +79,7 @@ class ShowSmartChatJobRequest: def room_id(self): """Gets the room_id of this ShowSmartChatJobRequest. - 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。 + 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :return: The room_id of this ShowSmartChatJobRequest. :rtype: str @@ -90,7 +90,7 @@ class ShowSmartChatJobRequest: def room_id(self, room_id): """Sets the room_id of this ShowSmartChatJobRequest. - 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。 + 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :param room_id: The room_id of this ShowSmartChatJobRequest. :type room_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_response.py index 343176b80..9bc2cd801 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_response.py @@ -29,11 +29,13 @@ class ShowSmartChatJobResponse(SdkResponse): 'rtc_room_info': 'RTCRoomInfoList', 'chat_subtitle_config': 'SmartChatSubtitleConfig', 'video_config': 'SmartChatVideoConfig', + 'voice_config_list': 'list[SmartChatVoiceConfig]', 'chat_state': 'int', 'language': 'LanguageEnum', 'chat_video_type': 'str', 'chat_access_address': 'str', 'is_transparent': 'bool', + 'default_language': 'str', 'x_request_id': 'str' } @@ -49,15 +51,17 @@ class ShowSmartChatJobResponse(SdkResponse): 'rtc_room_info': 'rtc_room_info', 'chat_subtitle_config': 'chat_subtitle_config', 'video_config': 'video_config', + 'voice_config_list': 'voice_config_list', 'chat_state': 'chat_state', 'language': 'language', 'chat_video_type': 'chat_video_type', 'chat_access_address': 'chat_access_address', 'is_transparent': 'is_transparent', + 'default_language': 'default_language', 'x_request_id': 'X-Request-Id' } - def __init__(self, job_id=None, state=None, duration=None, start_time=None, end_time=None, error_info=None, create_time=None, lastupdate_time=None, rtc_room_info=None, chat_subtitle_config=None, video_config=None, chat_state=None, language=None, chat_video_type=None, chat_access_address=None, is_transparent=None, x_request_id=None): + def __init__(self, job_id=None, state=None, duration=None, start_time=None, end_time=None, error_info=None, create_time=None, lastupdate_time=None, rtc_room_info=None, chat_subtitle_config=None, video_config=None, voice_config_list=None, chat_state=None, language=None, chat_video_type=None, chat_access_address=None, is_transparent=None, default_language=None, x_request_id=None): """ShowSmartChatJobResponse The model defined in huaweicloud sdk @@ -84,6 +88,8 @@ class ShowSmartChatJobResponse(SdkResponse): :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.SmartChatSubtitleConfig` :param video_config: :type video_config: :class:`huaweicloudsdkmetastudio.v1.SmartChatVideoConfig` + :param voice_config_list: 语音配置参数列表。 + :type voice_config_list: list[:class:`huaweicloudsdkmetastudio.v1.SmartChatVoiceConfig`] :param chat_state: 数字人智能交互对话的状态。 0: 等待建链 1: 等待关闭链路 2: 建链成功 3: 进入休眠 4: 等待休眠 :type chat_state: int :param language: @@ -94,6 +100,8 @@ class ShowSmartChatJobResponse(SdkResponse): :type chat_access_address: str :param is_transparent: 是否透明背景 :type is_transparent: bool + :param default_language: 默认语言,智能交互接口使用。默认值CN。 * CN:中文。 * EN:英文。 + :type default_language: str :param x_request_id: :type x_request_id: str """ @@ -111,11 +119,13 @@ class ShowSmartChatJobResponse(SdkResponse): self._rtc_room_info = None self._chat_subtitle_config = None self._video_config = None + self._voice_config_list = None self._chat_state = None self._language = None self._chat_video_type = None self._chat_access_address = None self._is_transparent = None + self._default_language = None self._x_request_id = None self.discriminator = None @@ -141,6 +151,8 @@ class ShowSmartChatJobResponse(SdkResponse): self.chat_subtitle_config = chat_subtitle_config if video_config is not None: self.video_config = video_config + if voice_config_list is not None: + self.voice_config_list = voice_config_list if chat_state is not None: self.chat_state = chat_state if language is not None: @@ -151,6 +163,8 @@ class ShowSmartChatJobResponse(SdkResponse): self.chat_access_address = chat_access_address if is_transparent is not None: self.is_transparent = is_transparent + if default_language is not None: + self.default_language = default_language if x_request_id is not None: self.x_request_id = x_request_id @@ -380,6 +394,28 @@ class ShowSmartChatJobResponse(SdkResponse): """ self._video_config = video_config + @property + def voice_config_list(self): + """Gets the voice_config_list of this ShowSmartChatJobResponse. + + 语音配置参数列表。 + + :return: The voice_config_list of this ShowSmartChatJobResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.SmartChatVoiceConfig`] + """ + return self._voice_config_list + + @voice_config_list.setter + def voice_config_list(self, voice_config_list): + """Sets the voice_config_list of this ShowSmartChatJobResponse. + + 语音配置参数列表。 + + :param voice_config_list: The voice_config_list of this ShowSmartChatJobResponse. + :type voice_config_list: list[:class:`huaweicloudsdkmetastudio.v1.SmartChatVoiceConfig`] + """ + self._voice_config_list = voice_config_list + @property def chat_state(self): """Gets the chat_state of this ShowSmartChatJobResponse. @@ -486,6 +522,28 @@ class ShowSmartChatJobResponse(SdkResponse): """ self._is_transparent = is_transparent + @property + def default_language(self): + """Gets the default_language of this ShowSmartChatJobResponse. + + 默认语言,智能交互接口使用。默认值CN。 * CN:中文。 * EN:英文。 + + :return: The default_language of this ShowSmartChatJobResponse. + :rtype: str + """ + return self._default_language + + @default_language.setter + def default_language(self, default_language): + """Sets the default_language of this ShowSmartChatJobResponse. + + 默认语言,智能交互接口使用。默认值CN。 * CN:中文。 * EN:英文。 + + :param default_language: The default_language of this ShowSmartChatJobResponse. + :type default_language: str + """ + self._default_language = default_language + @property def x_request_id(self): """Gets the x_request_id of this ShowSmartChatJobResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_subtitle_file_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_subtitle_file_request.py new file mode 100644 index 000000000..e2a675298 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_subtitle_file_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowSubtitleFileRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str', + 'x_app_user_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'x_app_user_id': 'X-App-UserId' + } + + def __init__(self, job_id=None, x_app_user_id=None): + """ShowSubtitleFileRequest + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + """ + + + + self._job_id = None + self._x_app_user_id = None + self.discriminator = None + + self.job_id = job_id + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + + @property + def job_id(self): + """Gets the job_id of this ShowSubtitleFileRequest. + + 任务ID。 + + :return: The job_id of this ShowSubtitleFileRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ShowSubtitleFileRequest. + + 任务ID。 + + :param job_id: The job_id of this ShowSubtitleFileRequest. + :type job_id: str + """ + self._job_id = job_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ShowSubtitleFileRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this ShowSubtitleFileRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ShowSubtitleFileRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ShowSubtitleFileRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowSubtitleFileRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_subtitle_file_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_subtitle_file_response.py new file mode 100644 index 000000000..590aeadb7 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_subtitle_file_response.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowSubtitleFileResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_state': 'str', + 'subtitle_file_info': 'list[SubtitleFileDetail]', + 'x_request_id': 'str' + } + + attribute_map = { + 'job_state': 'job_state', + 'subtitle_file_info': 'subtitle_file_info', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, job_state=None, subtitle_file_info=None, x_request_id=None): + """ShowSubtitleFileResponse + + The model defined in huaweicloud sdk + + :param job_state: 字幕文件所有任务状态。 * GENERATING:字幕文件任务生成中。 * GENERATED:字幕文件生成结束。 + :type job_state: str + :param subtitle_file_info: 字幕文件列表。 + :type subtitle_file_info: list[:class:`huaweicloudsdkmetastudio.v1.SubtitleFileDetail`] + :param x_request_id: + :type x_request_id: str + """ + + super(ShowSubtitleFileResponse, self).__init__() + + self._job_state = None + self._subtitle_file_info = None + self._x_request_id = None + self.discriminator = None + + if job_state is not None: + self.job_state = job_state + if subtitle_file_info is not None: + self.subtitle_file_info = subtitle_file_info + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def job_state(self): + """Gets the job_state of this ShowSubtitleFileResponse. + + 字幕文件所有任务状态。 * GENERATING:字幕文件任务生成中。 * GENERATED:字幕文件生成结束。 + + :return: The job_state of this ShowSubtitleFileResponse. + :rtype: str + """ + return self._job_state + + @job_state.setter + def job_state(self, job_state): + """Sets the job_state of this ShowSubtitleFileResponse. + + 字幕文件所有任务状态。 * GENERATING:字幕文件任务生成中。 * GENERATED:字幕文件生成结束。 + + :param job_state: The job_state of this ShowSubtitleFileResponse. + :type job_state: str + """ + self._job_state = job_state + + @property + def subtitle_file_info(self): + """Gets the subtitle_file_info of this ShowSubtitleFileResponse. + + 字幕文件列表。 + + :return: The subtitle_file_info of this ShowSubtitleFileResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.SubtitleFileDetail`] + """ + return self._subtitle_file_info + + @subtitle_file_info.setter + def subtitle_file_info(self, subtitle_file_info): + """Sets the subtitle_file_info of this ShowSubtitleFileResponse. + + 字幕文件列表。 + + :param subtitle_file_info: The subtitle_file_info of this ShowSubtitleFileResponse. + :type subtitle_file_info: list[:class:`huaweicloudsdkmetastudio.v1.SubtitleFileDetail`] + """ + self._subtitle_file_info = subtitle_file_info + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowSubtitleFileResponse. + + :return: The x_request_id of this ShowSubtitleFileResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowSubtitleFileResponse. + + :param x_request_id: The x_request_id of this ShowSubtitleFileResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowSubtitleFileResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_welcome_speech_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_welcome_speech_response.py index 9e920da04..536eac889 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_welcome_speech_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_welcome_speech_response.py @@ -20,6 +20,8 @@ class ShowWelcomeSpeechResponse(SdkResponse): openapi_types = { 'welcome_speech_id': 'str', 'welcome_speech': 'str', + 'enable_welcome_speech': 'bool', + 'language': 'LanguageEnum', 'robot_id': 'str', 'create_time': 'str', 'update_time': 'str', @@ -29,13 +31,15 @@ class ShowWelcomeSpeechResponse(SdkResponse): attribute_map = { 'welcome_speech_id': 'welcome_speech_id', 'welcome_speech': 'welcome_speech', + 'enable_welcome_speech': 'enable_welcome_speech', + 'language': 'language', 'robot_id': 'robot_id', 'create_time': 'create_time', 'update_time': 'update_time', 'x_request_id': 'X-Request-Id' } - def __init__(self, welcome_speech_id=None, welcome_speech=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): + def __init__(self, welcome_speech_id=None, welcome_speech=None, enable_welcome_speech=None, language=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): """ShowWelcomeSpeechResponse The model defined in huaweicloud sdk @@ -44,6 +48,10 @@ class ShowWelcomeSpeechResponse(SdkResponse): :type welcome_speech_id: str :param welcome_speech: 欢迎词。 :type welcome_speech: str + :param enable_welcome_speech: 欢迎词功能开关。 + :type enable_welcome_speech: bool + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` :param robot_id: 应用ID。 :type robot_id: str :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -58,6 +66,8 @@ class ShowWelcomeSpeechResponse(SdkResponse): self._welcome_speech_id = None self._welcome_speech = None + self._enable_welcome_speech = None + self._language = None self._robot_id = None self._create_time = None self._update_time = None @@ -68,6 +78,10 @@ class ShowWelcomeSpeechResponse(SdkResponse): self.welcome_speech_id = welcome_speech_id if welcome_speech is not None: self.welcome_speech = welcome_speech + if enable_welcome_speech is not None: + self.enable_welcome_speech = enable_welcome_speech + if language is not None: + self.language = language if robot_id is not None: self.robot_id = robot_id if create_time is not None: @@ -121,6 +135,46 @@ class ShowWelcomeSpeechResponse(SdkResponse): """ self._welcome_speech = welcome_speech + @property + def enable_welcome_speech(self): + """Gets the enable_welcome_speech of this ShowWelcomeSpeechResponse. + + 欢迎词功能开关。 + + :return: The enable_welcome_speech of this ShowWelcomeSpeechResponse. + :rtype: bool + """ + return self._enable_welcome_speech + + @enable_welcome_speech.setter + def enable_welcome_speech(self, enable_welcome_speech): + """Sets the enable_welcome_speech of this ShowWelcomeSpeechResponse. + + 欢迎词功能开关。 + + :param enable_welcome_speech: The enable_welcome_speech of this ShowWelcomeSpeechResponse. + :type enable_welcome_speech: bool + """ + self._enable_welcome_speech = enable_welcome_speech + + @property + def language(self): + """Gets the language of this ShowWelcomeSpeechResponse. + + :return: The language of this ShowWelcomeSpeechResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this ShowWelcomeSpeechResponse. + + :param language: The language of this ShowWelcomeSpeechResponse. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + @property def robot_id(self): """Gets the robot_id of this ShowWelcomeSpeechResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_welcome_speech_switch_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_welcome_speech_switch_request.py index 4d2a64476..70743f1d7 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_welcome_speech_switch_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_welcome_speech_switch_request.py @@ -18,15 +18,17 @@ class ShowWelcomeSpeechSwitchRequest: openapi_types = { 'x_app_user_id': 'str', - 'robot_id': 'str' + 'robot_id': 'str', + 'language': 'str' } attribute_map = { 'x_app_user_id': 'X-App-UserId', - 'robot_id': 'robot_id' + 'robot_id': 'robot_id', + 'language': 'language' } - def __init__(self, x_app_user_id=None, robot_id=None): + def __init__(self, x_app_user_id=None, robot_id=None, language=None): """ShowWelcomeSpeechSwitchRequest The model defined in huaweicloud sdk @@ -35,17 +37,22 @@ class ShowWelcomeSpeechSwitchRequest: :type x_app_user_id: str :param robot_id: 应用ID。 :type robot_id: str + :param language: 智能交互语言 * CN:中文 * EN:英文 + :type language: str """ self._x_app_user_id = None self._robot_id = None + self._language = None self.discriminator = None if x_app_user_id is not None: self.x_app_user_id = x_app_user_id self.robot_id = robot_id + if language is not None: + self.language = language @property def x_app_user_id(self): @@ -91,6 +98,28 @@ class ShowWelcomeSpeechSwitchRequest: """ self._robot_id = robot_id + @property + def language(self): + """Gets the language of this ShowWelcomeSpeechSwitchRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :return: The language of this ShowWelcomeSpeechSwitchRequest. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this ShowWelcomeSpeechSwitchRequest. + + 智能交互语言 * CN:中文 * EN:英文 + + :param language: The language of this ShowWelcomeSpeechSwitchRequest. + :type language: str + """ + self._language = language + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_chat_voice_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_chat_voice_config.py new file mode 100644 index 000000000..c686929da --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_chat_voice_config.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SmartChatVoiceConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'voice_asset_id': 'str', + 'speed': 'int', + 'pitch': 'int', + 'volume': 'int', + 'provider': 'str', + 'language': 'str', + 'language_desc': 'str' + } + + attribute_map = { + 'voice_asset_id': 'voice_asset_id', + 'speed': 'speed', + 'pitch': 'pitch', + 'volume': 'volume', + 'provider': 'provider', + 'language': 'language', + 'language_desc': 'language_desc' + } + + def __init__(self, voice_asset_id=None, speed=None, pitch=None, volume=None, provider=None, language=None, language_desc=None): + """SmartChatVoiceConfig + + The model defined in huaweicloud sdk + + :param voice_asset_id: 语音合成特征字符串 + :type voice_asset_id: str + :param speed: 语速。默认值100,最小值50,最大值200。 > 当取值为“100”时,表示一个成年人正常的语速,约为250字/分钟。 + :type speed: int + :param pitch: 音高。默认值100,最小值50,最大值200。 + :type pitch: int + :param volume: 音量。默认值140,最小值90,最大值240。 + :type volume: int + :param provider: 第三方TTS供应商类型。 * XIMALAYA:喜马拉雅TTS * HUAWEI_EI:EI TTS * MOBVOI:出门问问TTS + :type provider: str + :param language: 语言类型。默认值CN。 * CN:中文。 * EN:英文。 + :type language: str + :param language_desc: 语言描述。 + :type language_desc: str + """ + + + + self._voice_asset_id = None + self._speed = None + self._pitch = None + self._volume = None + self._provider = None + self._language = None + self._language_desc = None + self.discriminator = None + + if voice_asset_id is not None: + self.voice_asset_id = voice_asset_id + if speed is not None: + self.speed = speed + if pitch is not None: + self.pitch = pitch + if volume is not None: + self.volume = volume + if provider is not None: + self.provider = provider + if language is not None: + self.language = language + if language_desc is not None: + self.language_desc = language_desc + + @property + def voice_asset_id(self): + """Gets the voice_asset_id of this SmartChatVoiceConfig. + + 语音合成特征字符串 + + :return: The voice_asset_id of this SmartChatVoiceConfig. + :rtype: str + """ + return self._voice_asset_id + + @voice_asset_id.setter + def voice_asset_id(self, voice_asset_id): + """Sets the voice_asset_id of this SmartChatVoiceConfig. + + 语音合成特征字符串 + + :param voice_asset_id: The voice_asset_id of this SmartChatVoiceConfig. + :type voice_asset_id: str + """ + self._voice_asset_id = voice_asset_id + + @property + def speed(self): + """Gets the speed of this SmartChatVoiceConfig. + + 语速。默认值100,最小值50,最大值200。 > 当取值为“100”时,表示一个成年人正常的语速,约为250字/分钟。 + + :return: The speed of this SmartChatVoiceConfig. + :rtype: int + """ + return self._speed + + @speed.setter + def speed(self, speed): + """Sets the speed of this SmartChatVoiceConfig. + + 语速。默认值100,最小值50,最大值200。 > 当取值为“100”时,表示一个成年人正常的语速,约为250字/分钟。 + + :param speed: The speed of this SmartChatVoiceConfig. + :type speed: int + """ + self._speed = speed + + @property + def pitch(self): + """Gets the pitch of this SmartChatVoiceConfig. + + 音高。默认值100,最小值50,最大值200。 + + :return: The pitch of this SmartChatVoiceConfig. + :rtype: int + """ + return self._pitch + + @pitch.setter + def pitch(self, pitch): + """Sets the pitch of this SmartChatVoiceConfig. + + 音高。默认值100,最小值50,最大值200。 + + :param pitch: The pitch of this SmartChatVoiceConfig. + :type pitch: int + """ + self._pitch = pitch + + @property + def volume(self): + """Gets the volume of this SmartChatVoiceConfig. + + 音量。默认值140,最小值90,最大值240。 + + :return: The volume of this SmartChatVoiceConfig. + :rtype: int + """ + return self._volume + + @volume.setter + def volume(self, volume): + """Sets the volume of this SmartChatVoiceConfig. + + 音量。默认值140,最小值90,最大值240。 + + :param volume: The volume of this SmartChatVoiceConfig. + :type volume: int + """ + self._volume = volume + + @property + def provider(self): + """Gets the provider of this SmartChatVoiceConfig. + + 第三方TTS供应商类型。 * XIMALAYA:喜马拉雅TTS * HUAWEI_EI:EI TTS * MOBVOI:出门问问TTS + + :return: The provider of this SmartChatVoiceConfig. + :rtype: str + """ + return self._provider + + @provider.setter + def provider(self, provider): + """Sets the provider of this SmartChatVoiceConfig. + + 第三方TTS供应商类型。 * XIMALAYA:喜马拉雅TTS * HUAWEI_EI:EI TTS * MOBVOI:出门问问TTS + + :param provider: The provider of this SmartChatVoiceConfig. + :type provider: str + """ + self._provider = provider + + @property + def language(self): + """Gets the language of this SmartChatVoiceConfig. + + 语言类型。默认值CN。 * CN:中文。 * EN:英文。 + + :return: The language of this SmartChatVoiceConfig. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this SmartChatVoiceConfig. + + 语言类型。默认值CN。 * CN:中文。 * EN:英文。 + + :param language: The language of this SmartChatVoiceConfig. + :type language: str + """ + self._language = language + + @property + def language_desc(self): + """Gets the language_desc of this SmartChatVoiceConfig. + + 语言描述。 + + :return: The language_desc of this SmartChatVoiceConfig. + :rtype: str + """ + return self._language_desc + + @language_desc.setter + def language_desc(self, language_desc): + """Sets the language_desc of this SmartChatVoiceConfig. + + 语言描述。 + + :param language_desc: The language_desc of this SmartChatVoiceConfig. + :type language_desc: str + """ + self._language_desc = language_desc + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SmartChatVoiceConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_request.py index 58b21d1cf..4ce2d44ac 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_request.py @@ -37,9 +37,9 @@ class StartSmartChatJobRequest: :param x_app_user_id: 第三方用户ID。不允许输入中文。 :type x_app_user_id: str - :param room_id: 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。 + :param room_id: 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :type room_id: str - :param robot_id: 应用ID,获取方法请参考[[创建应用](https://support.huaweicloud.com/api-metastudio/CreateRobot.html)](tag:hc,hk)[“创建应用”](tag:cmcc)。 + :param robot_id: 应用ID,获取方法请参考[创建应用](CreateRobot.xml)。 :type robot_id: str :param body: Body of the StartSmartChatJobRequest :type body: :class:`huaweicloudsdkmetastudio.v1.SmartChatJobsReq` @@ -86,7 +86,7 @@ class StartSmartChatJobRequest: def room_id(self): """Gets the room_id of this StartSmartChatJobRequest. - 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。 + 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :return: The room_id of this StartSmartChatJobRequest. :rtype: str @@ -97,7 +97,7 @@ class StartSmartChatJobRequest: def room_id(self, room_id): """Sets the room_id of this StartSmartChatJobRequest. - 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。 + 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :param room_id: The room_id of this StartSmartChatJobRequest. :type room_id: str @@ -108,7 +108,7 @@ class StartSmartChatJobRequest: def robot_id(self): """Gets the robot_id of this StartSmartChatJobRequest. - 应用ID,获取方法请参考[[创建应用](https://support.huaweicloud.com/api-metastudio/CreateRobot.html)](tag:hc,hk)[“创建应用”](tag:cmcc)。 + 应用ID,获取方法请参考[创建应用](CreateRobot.xml)。 :return: The robot_id of this StartSmartChatJobRequest. :rtype: str @@ -119,7 +119,7 @@ class StartSmartChatJobRequest: def robot_id(self, robot_id): """Sets the robot_id of this StartSmartChatJobRequest. - 应用ID,获取方法请参考[[创建应用](https://support.huaweicloud.com/api-metastudio/CreateRobot.html)](tag:hc,hk)[“创建应用”](tag:cmcc)。 + 应用ID,获取方法请参考[创建应用](CreateRobot.xml)。 :param robot_id: The robot_id of this StartSmartChatJobRequest. :type robot_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_response.py index e8d2d56f8..44f725986 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_response.py @@ -23,10 +23,12 @@ class StartSmartChatJobResponse(SdkResponse): 'rtc_room_info': 'RTCRoomInfoList', 'chat_subtitle_config': 'SmartChatSubtitleConfig', 'video_config': 'SmartChatVideoConfig', + 'voice_config_list': 'list[SmartChatVoiceConfig]', 'chat_video_type': 'str', 'region': 'str', 'chat_access_address': 'str', 'is_transparent': 'bool', + 'default_language': 'str', 'x_request_id': 'str' } @@ -36,14 +38,16 @@ class StartSmartChatJobResponse(SdkResponse): 'rtc_room_info': 'rtc_room_info', 'chat_subtitle_config': 'chat_subtitle_config', 'video_config': 'video_config', + 'voice_config_list': 'voice_config_list', 'chat_video_type': 'chat_video_type', 'region': 'region', 'chat_access_address': 'chat_access_address', 'is_transparent': 'is_transparent', + 'default_language': 'default_language', 'x_request_id': 'X-Request-Id' } - def __init__(self, job_id=None, language=None, rtc_room_info=None, chat_subtitle_config=None, video_config=None, chat_video_type=None, region=None, chat_access_address=None, is_transparent=None, x_request_id=None): + def __init__(self, job_id=None, language=None, rtc_room_info=None, chat_subtitle_config=None, video_config=None, voice_config_list=None, chat_video_type=None, region=None, chat_access_address=None, is_transparent=None, default_language=None, x_request_id=None): """StartSmartChatJobResponse The model defined in huaweicloud sdk @@ -58,6 +62,8 @@ class StartSmartChatJobResponse(SdkResponse): :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.SmartChatSubtitleConfig` :param video_config: :type video_config: :class:`huaweicloudsdkmetastudio.v1.SmartChatVideoConfig` + :param voice_config_list: 语音配置参数列表。 + :type voice_config_list: list[:class:`huaweicloudsdkmetastudio.v1.SmartChatVoiceConfig`] :param chat_video_type: 智能交互对话端配置。 * COMPUTER: 电脑端 * MOBILE: 手机端 * HUB: 大屏 :type chat_video_type: str :param region: 算力所在region。 * cn-north-4: 北京4 * cn-southwest-2: 贵阳1 @@ -66,6 +72,8 @@ class StartSmartChatJobResponse(SdkResponse): :type chat_access_address: str :param is_transparent: 是否透明背景 :type is_transparent: bool + :param default_language: 默认语言,智能交互接口使用。默认值CN。 * CN:中文。 * EN:英文。 + :type default_language: str :param x_request_id: :type x_request_id: str """ @@ -77,10 +85,12 @@ class StartSmartChatJobResponse(SdkResponse): self._rtc_room_info = None self._chat_subtitle_config = None self._video_config = None + self._voice_config_list = None self._chat_video_type = None self._region = None self._chat_access_address = None self._is_transparent = None + self._default_language = None self._x_request_id = None self.discriminator = None @@ -94,6 +104,8 @@ class StartSmartChatJobResponse(SdkResponse): self.chat_subtitle_config = chat_subtitle_config if video_config is not None: self.video_config = video_config + if voice_config_list is not None: + self.voice_config_list = voice_config_list if chat_video_type is not None: self.chat_video_type = chat_video_type if region is not None: @@ -102,6 +114,8 @@ class StartSmartChatJobResponse(SdkResponse): self.chat_access_address = chat_access_address if is_transparent is not None: self.is_transparent = is_transparent + if default_language is not None: + self.default_language = default_language if x_request_id is not None: self.x_request_id = x_request_id @@ -199,6 +213,28 @@ class StartSmartChatJobResponse(SdkResponse): """ self._video_config = video_config + @property + def voice_config_list(self): + """Gets the voice_config_list of this StartSmartChatJobResponse. + + 语音配置参数列表。 + + :return: The voice_config_list of this StartSmartChatJobResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.SmartChatVoiceConfig`] + """ + return self._voice_config_list + + @voice_config_list.setter + def voice_config_list(self, voice_config_list): + """Sets the voice_config_list of this StartSmartChatJobResponse. + + 语音配置参数列表。 + + :param voice_config_list: The voice_config_list of this StartSmartChatJobResponse. + :type voice_config_list: list[:class:`huaweicloudsdkmetastudio.v1.SmartChatVoiceConfig`] + """ + self._voice_config_list = voice_config_list + @property def chat_video_type(self): """Gets the chat_video_type of this StartSmartChatJobResponse. @@ -287,6 +323,28 @@ class StartSmartChatJobResponse(SdkResponse): """ self._is_transparent = is_transparent + @property + def default_language(self): + """Gets the default_language of this StartSmartChatJobResponse. + + 默认语言,智能交互接口使用。默认值CN。 * CN:中文。 * EN:英文。 + + :return: The default_language of this StartSmartChatJobResponse. + :rtype: str + """ + return self._default_language + + @default_language.setter + def default_language(self, default_language): + """Sets the default_language of this StartSmartChatJobResponse. + + 默认语言,智能交互接口使用。默认值CN。 * CN:中文。 * EN:英文。 + + :param default_language: The default_language of this StartSmartChatJobResponse. + :type default_language: str + """ + self._default_language = default_language + @property def x_request_id(self): """Gets the x_request_id of this StartSmartChatJobResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_request.py index 96f0bd564..aba66ffa2 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_request.py @@ -35,7 +35,7 @@ class StopSmartChatJobRequest: :param x_app_user_id: 第三方用户ID。不允许输入中文。 :type x_app_user_id: str - :param room_id: 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。 + :param room_id: 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :type room_id: str :param job_id: 任务ID。 :type job_id: str @@ -79,7 +79,7 @@ class StopSmartChatJobRequest: def room_id(self): """Gets the room_id of this StopSmartChatJobRequest. - 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。 + 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :return: The room_id of this StopSmartChatJobRequest. :rtype: str @@ -90,7 +90,7 @@ class StopSmartChatJobRequest: def room_id(self, room_id): """Sets the room_id of this StopSmartChatJobRequest. - 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。 + 智能交互对话ID,获取方法请参考[创建智能交互对话直播间](CreateSmartChatRoom.xml)。 :param room_id: The room_id of this StopSmartChatJobRequest. :type room_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/subtitle_file_detail.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/subtitle_file_detail.py new file mode 100644 index 000000000..6c04b5186 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/subtitle_file_detail.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SubtitleFileDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'sequence_no': 'int', + 'subtitle_file_state': 'str', + 'subtitle_file_download_url': 'str', + 'subtitle_file_upload_url': 'str', + 'generate_time': 'str' + } + + attribute_map = { + 'sequence_no': 'sequence_no', + 'subtitle_file_state': 'subtitle_file_state', + 'subtitle_file_download_url': 'subtitle_file_download_url', + 'subtitle_file_upload_url': 'subtitle_file_upload_url', + 'generate_time': 'generate_time' + } + + def __init__(self, sequence_no=None, subtitle_file_state=None, subtitle_file_download_url=None, subtitle_file_upload_url=None, generate_time=None): + """SubtitleFileDetail + + The model defined in huaweicloud sdk + + :param sequence_no: 剧本序号。 + :type sequence_no: int + :param subtitle_file_state: 字幕文件生成状态。 * GENERATING:字幕文件生成中。 * GENERATE_SUCCEED:字幕文件生成成功。 * GENERATE_FAILED:字幕文件生成失败。 + :type subtitle_file_state: str + :param subtitle_file_download_url: 字幕文件下载链接。 + :type subtitle_file_download_url: str + :param subtitle_file_upload_url: 字幕文件上传链接。 + :type subtitle_file_upload_url: str + :param generate_time: 字幕文件生成时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type generate_time: str + """ + + + + self._sequence_no = None + self._subtitle_file_state = None + self._subtitle_file_download_url = None + self._subtitle_file_upload_url = None + self._generate_time = None + self.discriminator = None + + if sequence_no is not None: + self.sequence_no = sequence_no + if subtitle_file_state is not None: + self.subtitle_file_state = subtitle_file_state + if subtitle_file_download_url is not None: + self.subtitle_file_download_url = subtitle_file_download_url + if subtitle_file_upload_url is not None: + self.subtitle_file_upload_url = subtitle_file_upload_url + if generate_time is not None: + self.generate_time = generate_time + + @property + def sequence_no(self): + """Gets the sequence_no of this SubtitleFileDetail. + + 剧本序号。 + + :return: The sequence_no of this SubtitleFileDetail. + :rtype: int + """ + return self._sequence_no + + @sequence_no.setter + def sequence_no(self, sequence_no): + """Sets the sequence_no of this SubtitleFileDetail. + + 剧本序号。 + + :param sequence_no: The sequence_no of this SubtitleFileDetail. + :type sequence_no: int + """ + self._sequence_no = sequence_no + + @property + def subtitle_file_state(self): + """Gets the subtitle_file_state of this SubtitleFileDetail. + + 字幕文件生成状态。 * GENERATING:字幕文件生成中。 * GENERATE_SUCCEED:字幕文件生成成功。 * GENERATE_FAILED:字幕文件生成失败。 + + :return: The subtitle_file_state of this SubtitleFileDetail. + :rtype: str + """ + return self._subtitle_file_state + + @subtitle_file_state.setter + def subtitle_file_state(self, subtitle_file_state): + """Sets the subtitle_file_state of this SubtitleFileDetail. + + 字幕文件生成状态。 * GENERATING:字幕文件生成中。 * GENERATE_SUCCEED:字幕文件生成成功。 * GENERATE_FAILED:字幕文件生成失败。 + + :param subtitle_file_state: The subtitle_file_state of this SubtitleFileDetail. + :type subtitle_file_state: str + """ + self._subtitle_file_state = subtitle_file_state + + @property + def subtitle_file_download_url(self): + """Gets the subtitle_file_download_url of this SubtitleFileDetail. + + 字幕文件下载链接。 + + :return: The subtitle_file_download_url of this SubtitleFileDetail. + :rtype: str + """ + return self._subtitle_file_download_url + + @subtitle_file_download_url.setter + def subtitle_file_download_url(self, subtitle_file_download_url): + """Sets the subtitle_file_download_url of this SubtitleFileDetail. + + 字幕文件下载链接。 + + :param subtitle_file_download_url: The subtitle_file_download_url of this SubtitleFileDetail. + :type subtitle_file_download_url: str + """ + self._subtitle_file_download_url = subtitle_file_download_url + + @property + def subtitle_file_upload_url(self): + """Gets the subtitle_file_upload_url of this SubtitleFileDetail. + + 字幕文件上传链接。 + + :return: The subtitle_file_upload_url of this SubtitleFileDetail. + :rtype: str + """ + return self._subtitle_file_upload_url + + @subtitle_file_upload_url.setter + def subtitle_file_upload_url(self, subtitle_file_upload_url): + """Sets the subtitle_file_upload_url of this SubtitleFileDetail. + + 字幕文件上传链接。 + + :param subtitle_file_upload_url: The subtitle_file_upload_url of this SubtitleFileDetail. + :type subtitle_file_upload_url: str + """ + self._subtitle_file_upload_url = subtitle_file_upload_url + + @property + def generate_time(self): + """Gets the generate_time of this SubtitleFileDetail. + + 字幕文件生成时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The generate_time of this SubtitleFileDetail. + :rtype: str + """ + return self._generate_time + + @generate_time.setter + def generate_time(self, generate_time): + """Sets the generate_time of this SubtitleFileDetail. + + 字幕文件生成时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param generate_time: The generate_time of this SubtitleFileDetail. + :type generate_time: str + """ + self._generate_time = generate_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SubtitleFileDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/third_party_model_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/third_party_model_config.py index d8b278a9a..8fb78223d 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/third_party_model_config.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/third_party_model_config.py @@ -23,7 +23,8 @@ class ThirdPartyModelConfig: 'is_stream': 'bool', 'chat_rounds': 'int', 'sis_region': 'int', - 'sis_project_id': 'str' + 'sis_project_id': 'str', + 'enable_hot_words': 'bool' } attribute_map = { @@ -33,10 +34,11 @@ class ThirdPartyModelConfig: 'is_stream': 'is_stream', 'chat_rounds': 'chat_rounds', 'sis_region': 'sis_region', - 'sis_project_id': 'sis_project_id' + 'sis_project_id': 'sis_project_id', + 'enable_hot_words': 'enable_hot_words' } - def __init__(self, app_id=None, app_key=None, llm_url=None, is_stream=None, chat_rounds=None, sis_region=None, sis_project_id=None): + def __init__(self, app_id=None, app_key=None, llm_url=None, is_stream=None, chat_rounds=None, sis_region=None, sis_project_id=None, enable_hot_words=None): """ThirdPartyModelConfig The model defined in huaweicloud sdk @@ -55,6 +57,8 @@ class ThirdPartyModelConfig: :type sis_region: int :param sis_project_id: SIS所在区域的projectId :type sis_project_id: str + :param enable_hot_words: 是否开启热词 + :type enable_hot_words: bool """ @@ -66,6 +70,7 @@ class ThirdPartyModelConfig: self._chat_rounds = None self._sis_region = None self._sis_project_id = None + self._enable_hot_words = None self.discriminator = None if app_id is not None: @@ -82,6 +87,8 @@ class ThirdPartyModelConfig: self.sis_region = sis_region if sis_project_id is not None: self.sis_project_id = sis_project_id + if enable_hot_words is not None: + self.enable_hot_words = enable_hot_words @property def app_id(self): @@ -237,6 +244,28 @@ class ThirdPartyModelConfig: """ self._sis_project_id = sis_project_id + @property + def enable_hot_words(self): + """Gets the enable_hot_words of this ThirdPartyModelConfig. + + 是否开启热词 + + :return: The enable_hot_words of this ThirdPartyModelConfig. + :rtype: bool + """ + return self._enable_hot_words + + @enable_hot_words.setter + def enable_hot_words(self, enable_hot_words): + """Sets the enable_hot_words of this ThirdPartyModelConfig. + + 是否开启热词 + + :param enable_hot_words: The enable_hot_words of this ThirdPartyModelConfig. + :type enable_hot_words: bool + """ + self._enable_hot_words = enable_hot_words + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_job_basic_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_job_basic_info.py index 3eef8008d..a0cd5aab2 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_job_basic_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/training_job_basic_info.py @@ -77,7 +77,7 @@ class TrainingJobBasicInfo: :type last_update_time: str :param create_time: 创建时间,格式遵循:RFC 3339。 例 “2020-07-30T10:43:17Z” :type create_time: str - :param contact: 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + :param contact: 分身数字人训练任务创建者的手机号。 :type contact: str :param batch_name: 分身数字人训练任务的批次名称。 :type batch_name: str @@ -330,7 +330,7 @@ class TrainingJobBasicInfo: def contact(self): """Gets the contact of this TrainingJobBasicInfo. - 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + 分身数字人训练任务创建者的手机号。 :return: The contact of this TrainingJobBasicInfo. :rtype: str @@ -341,7 +341,7 @@ class TrainingJobBasicInfo: def contact(self, contact): """Sets the contact of this TrainingJobBasicInfo. - 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + 分身数字人训练任务创建者的手机号。 :param contact: The contact of this TrainingJobBasicInfo. :type contact: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_req.py index 5b156e685..3e8278da5 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_req.py @@ -53,7 +53,7 @@ class Update2dModelTrainingJobReq: :param name: 分身数字人模型名称。该名称会作为资产库中分身数字人模型资产名称。 :type name: str - :param contact: 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + :param contact: 分身数字人训练任务创建者的手机号。 :type contact: str :param command_message: 命令类型: * UPDATE_VIDEO: 更新视频 * UPLOAD_VIDEO:上传视频 * CONFIRM_ACTION_VIDEO: 确认动作编排视频 * GET_ACTION_VIDEO_MULTIPART: 获取动作编排视频分片 :type command_message: str @@ -144,7 +144,7 @@ class Update2dModelTrainingJobReq: def contact(self): """Gets the contact of this Update2dModelTrainingJobReq. - 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + 分身数字人训练任务创建者的手机号。 :return: The contact of this Update2dModelTrainingJobReq. :rtype: str @@ -155,7 +155,7 @@ class Update2dModelTrainingJobReq: def contact(self, contact): """Sets the contact of this Update2dModelTrainingJobReq. - 分身数字人训练任务创建者联系方式,如手机或邮箱等。 + 分身数字人训练任务创建者的手机号。 :param contact: The contact of this Update2dModelTrainingJobReq. :type contact: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_hot_question_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_hot_question_response.py index e90ef53d8..d80e9224e 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_hot_question_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_hot_question_response.py @@ -20,6 +20,7 @@ class UpdateHotQuestionResponse(SdkResponse): openapi_types = { 'hot_question_id': 'str', 'hot_question': 'str', + 'language': 'LanguageEnum', 'robot_id': 'str', 'create_time': 'str', 'update_time': 'str', @@ -29,13 +30,14 @@ class UpdateHotQuestionResponse(SdkResponse): attribute_map = { 'hot_question_id': 'hot_question_id', 'hot_question': 'hot_question', + 'language': 'language', 'robot_id': 'robot_id', 'create_time': 'create_time', 'update_time': 'update_time', 'x_request_id': 'X-Request-Id' } - def __init__(self, hot_question_id=None, hot_question=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): + def __init__(self, hot_question_id=None, hot_question=None, language=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): """UpdateHotQuestionResponse The model defined in huaweicloud sdk @@ -44,6 +46,8 @@ class UpdateHotQuestionResponse(SdkResponse): :type hot_question_id: str :param hot_question: 热点问题。 :type hot_question: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` :param robot_id: 机器人ID。 :type robot_id: str :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -58,6 +62,7 @@ class UpdateHotQuestionResponse(SdkResponse): self._hot_question_id = None self._hot_question = None + self._language = None self._robot_id = None self._create_time = None self._update_time = None @@ -68,6 +73,8 @@ class UpdateHotQuestionResponse(SdkResponse): self.hot_question_id = hot_question_id if hot_question is not None: self.hot_question = hot_question + if language is not None: + self.language = language if robot_id is not None: self.robot_id = robot_id if create_time is not None: @@ -121,6 +128,24 @@ class UpdateHotQuestionResponse(SdkResponse): """ self._hot_question = hot_question + @property + def language(self): + """Gets the language of this UpdateHotQuestionResponse. + + :return: The language of this UpdateHotQuestionResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this UpdateHotQuestionResponse. + + :param language: The language of this UpdateHotQuestionResponse. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + @property def robot_id(self): """Gets the robot_id of this UpdateHotQuestionResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_req.py new file mode 100644 index 000000000..c7457a16c --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_req.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePacifyWordsReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'pacify_words': 'str' + } + + attribute_map = { + 'pacify_words': 'pacify_words' + } + + def __init__(self, pacify_words=None): + """UpdatePacifyWordsReq + + The model defined in huaweicloud sdk + + :param pacify_words: 安抚话术。 + :type pacify_words: str + """ + + + + self._pacify_words = None + self.discriminator = None + + self.pacify_words = pacify_words + + @property + def pacify_words(self): + """Gets the pacify_words of this UpdatePacifyWordsReq. + + 安抚话术。 + + :return: The pacify_words of this UpdatePacifyWordsReq. + :rtype: str + """ + return self._pacify_words + + @pacify_words.setter + def pacify_words(self, pacify_words): + """Sets the pacify_words of this UpdatePacifyWordsReq. + + 安抚话术。 + + :param pacify_words: The pacify_words of this UpdatePacifyWordsReq. + :type pacify_words: str + """ + self._pacify_words = pacify_words + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePacifyWordsReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_request.py new file mode 100644 index 000000000..63ecb8855 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePacifyWordsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'pacify_words_id': 'str', + 'body': 'UpdatePacifyWordsReq' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'pacify_words_id': 'pacify_words_id', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, pacify_words_id=None, body=None): + """UpdatePacifyWordsRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param pacify_words_id: 安抚话术ID。 + :type pacify_words_id: str + :param body: Body of the UpdatePacifyWordsRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsReq` + """ + + + + self._x_app_user_id = None + self._pacify_words_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.pacify_words_id = pacify_words_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this UpdatePacifyWordsRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this UpdatePacifyWordsRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this UpdatePacifyWordsRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this UpdatePacifyWordsRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def pacify_words_id(self): + """Gets the pacify_words_id of this UpdatePacifyWordsRequest. + + 安抚话术ID。 + + :return: The pacify_words_id of this UpdatePacifyWordsRequest. + :rtype: str + """ + return self._pacify_words_id + + @pacify_words_id.setter + def pacify_words_id(self, pacify_words_id): + """Sets the pacify_words_id of this UpdatePacifyWordsRequest. + + 安抚话术ID。 + + :param pacify_words_id: The pacify_words_id of this UpdatePacifyWordsRequest. + :type pacify_words_id: str + """ + self._pacify_words_id = pacify_words_id + + @property + def body(self): + """Gets the body of this UpdatePacifyWordsRequest. + + :return: The body of this UpdatePacifyWordsRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePacifyWordsRequest. + + :param body: The body of this UpdatePacifyWordsRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePacifyWordsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_response.py new file mode 100644 index 000000000..be9adad25 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_response.py @@ -0,0 +1,340 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePacifyWordsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'pacify_words_id': 'str', + 'pacify_words': 'str', + 'language': 'LanguageEnum', + 'robot_id': 'str', + 'pacify_words_type': 'int', + 'intent': 'str', + 'create_time': 'str', + 'update_time': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'pacify_words_id': 'pacify_words_id', + 'pacify_words': 'pacify_words', + 'language': 'language', + 'robot_id': 'robot_id', + 'pacify_words_type': 'pacify_words_type', + 'intent': 'intent', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, pacify_words_id=None, pacify_words=None, language=None, robot_id=None, pacify_words_type=None, intent=None, create_time=None, update_time=None, x_request_id=None): + """UpdatePacifyWordsResponse + + The model defined in huaweicloud sdk + + :param pacify_words_id: 安抚话术ID。 + :type pacify_words_id: str + :param pacify_words: 安抚话术。 + :type pacify_words: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + :param robot_id: 应用ID。 + :type robot_id: str + :param pacify_words_type: 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + :type pacify_words_type: int + :param intent: 意图名称 + :type intent: str + :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + :param x_request_id: + :type x_request_id: str + """ + + super(UpdatePacifyWordsResponse, self).__init__() + + self._pacify_words_id = None + self._pacify_words = None + self._language = None + self._robot_id = None + self._pacify_words_type = None + self._intent = None + self._create_time = None + self._update_time = None + self._x_request_id = None + self.discriminator = None + + if pacify_words_id is not None: + self.pacify_words_id = pacify_words_id + if pacify_words is not None: + self.pacify_words = pacify_words + if language is not None: + self.language = language + if robot_id is not None: + self.robot_id = robot_id + if pacify_words_type is not None: + self.pacify_words_type = pacify_words_type + if intent is not None: + self.intent = intent + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def pacify_words_id(self): + """Gets the pacify_words_id of this UpdatePacifyWordsResponse. + + 安抚话术ID。 + + :return: The pacify_words_id of this UpdatePacifyWordsResponse. + :rtype: str + """ + return self._pacify_words_id + + @pacify_words_id.setter + def pacify_words_id(self, pacify_words_id): + """Sets the pacify_words_id of this UpdatePacifyWordsResponse. + + 安抚话术ID。 + + :param pacify_words_id: The pacify_words_id of this UpdatePacifyWordsResponse. + :type pacify_words_id: str + """ + self._pacify_words_id = pacify_words_id + + @property + def pacify_words(self): + """Gets the pacify_words of this UpdatePacifyWordsResponse. + + 安抚话术。 + + :return: The pacify_words of this UpdatePacifyWordsResponse. + :rtype: str + """ + return self._pacify_words + + @pacify_words.setter + def pacify_words(self, pacify_words): + """Sets the pacify_words of this UpdatePacifyWordsResponse. + + 安抚话术。 + + :param pacify_words: The pacify_words of this UpdatePacifyWordsResponse. + :type pacify_words: str + """ + self._pacify_words = pacify_words + + @property + def language(self): + """Gets the language of this UpdatePacifyWordsResponse. + + :return: The language of this UpdatePacifyWordsResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this UpdatePacifyWordsResponse. + + :param language: The language of this UpdatePacifyWordsResponse. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + + @property + def robot_id(self): + """Gets the robot_id of this UpdatePacifyWordsResponse. + + 应用ID。 + + :return: The robot_id of this UpdatePacifyWordsResponse. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this UpdatePacifyWordsResponse. + + 应用ID。 + + :param robot_id: The robot_id of this UpdatePacifyWordsResponse. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def pacify_words_type(self): + """Gets the pacify_words_type of this UpdatePacifyWordsResponse. + + 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + + :return: The pacify_words_type of this UpdatePacifyWordsResponse. + :rtype: int + """ + return self._pacify_words_type + + @pacify_words_type.setter + def pacify_words_type(self, pacify_words_type): + """Sets the pacify_words_type of this UpdatePacifyWordsResponse. + + 安抚话术类型 > 0:通用安抚话术, 1:基于意图匹配安抚话术 + + :param pacify_words_type: The pacify_words_type of this UpdatePacifyWordsResponse. + :type pacify_words_type: int + """ + self._pacify_words_type = pacify_words_type + + @property + def intent(self): + """Gets the intent of this UpdatePacifyWordsResponse. + + 意图名称 + + :return: The intent of this UpdatePacifyWordsResponse. + :rtype: str + """ + return self._intent + + @intent.setter + def intent(self, intent): + """Sets the intent of this UpdatePacifyWordsResponse. + + 意图名称 + + :param intent: The intent of this UpdatePacifyWordsResponse. + :type intent: str + """ + self._intent = intent + + @property + def create_time(self): + """Gets the create_time of this UpdatePacifyWordsResponse. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this UpdatePacifyWordsResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this UpdatePacifyWordsResponse. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this UpdatePacifyWordsResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this UpdatePacifyWordsResponse. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this UpdatePacifyWordsResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this UpdatePacifyWordsResponse. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this UpdatePacifyWordsResponse. + :type update_time: str + """ + self._update_time = update_time + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdatePacifyWordsResponse. + + :return: The x_request_id of this UpdatePacifyWordsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this UpdatePacifyWordsResponse. + + :param x_request_id: The x_request_id of this UpdatePacifyWordsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePacifyWordsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_switch_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_switch_req.py new file mode 100644 index 000000000..c973887aa --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_switch_req.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePacifyWordsSwitchReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'robot_id': 'str', + 'language': 'LanguageEnum', + 'enable_pacify_words': 'bool' + } + + attribute_map = { + 'robot_id': 'robot_id', + 'language': 'language', + 'enable_pacify_words': 'enable_pacify_words' + } + + def __init__(self, robot_id=None, language=None, enable_pacify_words=None): + """UpdatePacifyWordsSwitchReq + + The model defined in huaweicloud sdk + + :param robot_id: 应用ID。 + :type robot_id: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + :param enable_pacify_words: 安抚话术功能开关。 + :type enable_pacify_words: bool + """ + + + + self._robot_id = None + self._language = None + self._enable_pacify_words = None + self.discriminator = None + + self.robot_id = robot_id + self.language = language + self.enable_pacify_words = enable_pacify_words + + @property + def robot_id(self): + """Gets the robot_id of this UpdatePacifyWordsSwitchReq. + + 应用ID。 + + :return: The robot_id of this UpdatePacifyWordsSwitchReq. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this UpdatePacifyWordsSwitchReq. + + 应用ID。 + + :param robot_id: The robot_id of this UpdatePacifyWordsSwitchReq. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def language(self): + """Gets the language of this UpdatePacifyWordsSwitchReq. + + :return: The language of this UpdatePacifyWordsSwitchReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this UpdatePacifyWordsSwitchReq. + + :param language: The language of this UpdatePacifyWordsSwitchReq. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + + @property + def enable_pacify_words(self): + """Gets the enable_pacify_words of this UpdatePacifyWordsSwitchReq. + + 安抚话术功能开关。 + + :return: The enable_pacify_words of this UpdatePacifyWordsSwitchReq. + :rtype: bool + """ + return self._enable_pacify_words + + @enable_pacify_words.setter + def enable_pacify_words(self, enable_pacify_words): + """Sets the enable_pacify_words of this UpdatePacifyWordsSwitchReq. + + 安抚话术功能开关。 + + :param enable_pacify_words: The enable_pacify_words of this UpdatePacifyWordsSwitchReq. + :type enable_pacify_words: bool + """ + self._enable_pacify_words = enable_pacify_words + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePacifyWordsSwitchReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_switch_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_switch_request.py new file mode 100644 index 000000000..7e092e12b --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_switch_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePacifyWordsSwitchRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'body': 'UpdatePacifyWordsSwitchReq' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, body=None): + """UpdatePacifyWordsSwitchRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the UpdatePacifyWordsSwitchRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsSwitchReq` + """ + + + + self._x_app_user_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this UpdatePacifyWordsSwitchRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this UpdatePacifyWordsSwitchRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this UpdatePacifyWordsSwitchRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this UpdatePacifyWordsSwitchRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this UpdatePacifyWordsSwitchRequest. + + :return: The body of this UpdatePacifyWordsSwitchRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsSwitchReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePacifyWordsSwitchRequest. + + :param body: The body of this UpdatePacifyWordsSwitchRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsSwitchReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePacifyWordsSwitchRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_switch_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_switch_response.py new file mode 100644 index 000000000..c71244d8c --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_switch_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePacifyWordsSwitchResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_request_id': 'str' + } + + attribute_map = { + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, x_request_id=None): + """UpdatePacifyWordsSwitchResponse + + The model defined in huaweicloud sdk + + :param x_request_id: + :type x_request_id: str + """ + + super(UpdatePacifyWordsSwitchResponse, self).__init__() + + self._x_request_id = None + self.discriminator = None + + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdatePacifyWordsSwitchResponse. + + :return: The x_request_id of this UpdatePacifyWordsSwitchResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this UpdatePacifyWordsSwitchResponse. + + :param x_request_id: The x_request_id of this UpdatePacifyWordsSwitchResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePacifyWordsSwitchResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_trigger_time_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_trigger_time_req.py new file mode 100644 index 000000000..e951fe98d --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_trigger_time_req.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePacifyWordsTriggerTimeReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'robot_id': 'str', + 'language': 'LanguageEnum', + 'trigger_time': 'int' + } + + attribute_map = { + 'robot_id': 'robot_id', + 'language': 'language', + 'trigger_time': 'trigger_time' + } + + def __init__(self, robot_id=None, language=None, trigger_time=None): + """UpdatePacifyWordsTriggerTimeReq + + The model defined in huaweicloud sdk + + :param robot_id: 应用ID。 + :type robot_id: str + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + :param trigger_time: 安抚话术等待触发时长,单位毫秒 + :type trigger_time: int + """ + + + + self._robot_id = None + self._language = None + self._trigger_time = None + self.discriminator = None + + self.robot_id = robot_id + self.language = language + self.trigger_time = trigger_time + + @property + def robot_id(self): + """Gets the robot_id of this UpdatePacifyWordsTriggerTimeReq. + + 应用ID。 + + :return: The robot_id of this UpdatePacifyWordsTriggerTimeReq. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this UpdatePacifyWordsTriggerTimeReq. + + 应用ID。 + + :param robot_id: The robot_id of this UpdatePacifyWordsTriggerTimeReq. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def language(self): + """Gets the language of this UpdatePacifyWordsTriggerTimeReq. + + :return: The language of this UpdatePacifyWordsTriggerTimeReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this UpdatePacifyWordsTriggerTimeReq. + + :param language: The language of this UpdatePacifyWordsTriggerTimeReq. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + + @property + def trigger_time(self): + """Gets the trigger_time of this UpdatePacifyWordsTriggerTimeReq. + + 安抚话术等待触发时长,单位毫秒 + + :return: The trigger_time of this UpdatePacifyWordsTriggerTimeReq. + :rtype: int + """ + return self._trigger_time + + @trigger_time.setter + def trigger_time(self, trigger_time): + """Sets the trigger_time of this UpdatePacifyWordsTriggerTimeReq. + + 安抚话术等待触发时长,单位毫秒 + + :param trigger_time: The trigger_time of this UpdatePacifyWordsTriggerTimeReq. + :type trigger_time: int + """ + self._trigger_time = trigger_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePacifyWordsTriggerTimeReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_trigger_time_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_trigger_time_request.py new file mode 100644 index 000000000..ee1880b55 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_trigger_time_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePacifyWordsTriggerTimeRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'body': 'UpdatePacifyWordsTriggerTimeReq' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, body=None): + """UpdatePacifyWordsTriggerTimeRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the UpdatePacifyWordsTriggerTimeRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsTriggerTimeReq` + """ + + + + self._x_app_user_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this UpdatePacifyWordsTriggerTimeRequest. + + 第三方用户ID。不允许输入中文。 + + :return: The x_app_user_id of this UpdatePacifyWordsTriggerTimeRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this UpdatePacifyWordsTriggerTimeRequest. + + 第三方用户ID。不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this UpdatePacifyWordsTriggerTimeRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this UpdatePacifyWordsTriggerTimeRequest. + + :return: The body of this UpdatePacifyWordsTriggerTimeRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsTriggerTimeReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePacifyWordsTriggerTimeRequest. + + :param body: The body of this UpdatePacifyWordsTriggerTimeRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.UpdatePacifyWordsTriggerTimeReq` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePacifyWordsTriggerTimeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_trigger_time_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_trigger_time_response.py new file mode 100644 index 000000000..fffaa7ea1 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_pacify_words_trigger_time_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePacifyWordsTriggerTimeResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_request_id': 'str' + } + + attribute_map = { + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, x_request_id=None): + """UpdatePacifyWordsTriggerTimeResponse + + The model defined in huaweicloud sdk + + :param x_request_id: + :type x_request_id: str + """ + + super(UpdatePacifyWordsTriggerTimeResponse, self).__init__() + + self._x_request_id = None + self.discriminator = None + + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdatePacifyWordsTriggerTimeResponse. + + :return: The x_request_id of this UpdatePacifyWordsTriggerTimeResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this UpdatePacifyWordsTriggerTimeResponse. + + :param x_request_id: The x_request_id of this UpdatePacifyWordsTriggerTimeResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePacifyWordsTriggerTimeResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_req.py index 9f2206e27..37d2993c2 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_req.py @@ -17,29 +17,36 @@ class UpdateWelcomeSpeechReq: sensitive_list = [] openapi_types = { - 'welcome_speech': 'str' + 'welcome_speech': 'str', + 'enable_welcome_speech': 'bool' } attribute_map = { - 'welcome_speech': 'welcome_speech' + 'welcome_speech': 'welcome_speech', + 'enable_welcome_speech': 'enable_welcome_speech' } - def __init__(self, welcome_speech=None): + def __init__(self, welcome_speech=None, enable_welcome_speech=None): """UpdateWelcomeSpeechReq The model defined in huaweicloud sdk :param welcome_speech: 欢迎词。 :type welcome_speech: str + :param enable_welcome_speech: 欢迎词功能开关。 + :type enable_welcome_speech: bool """ self._welcome_speech = None + self._enable_welcome_speech = None self.discriminator = None if welcome_speech is not None: self.welcome_speech = welcome_speech + if enable_welcome_speech is not None: + self.enable_welcome_speech = enable_welcome_speech @property def welcome_speech(self): @@ -63,6 +70,28 @@ class UpdateWelcomeSpeechReq: """ self._welcome_speech = welcome_speech + @property + def enable_welcome_speech(self): + """Gets the enable_welcome_speech of this UpdateWelcomeSpeechReq. + + 欢迎词功能开关。 + + :return: The enable_welcome_speech of this UpdateWelcomeSpeechReq. + :rtype: bool + """ + return self._enable_welcome_speech + + @enable_welcome_speech.setter + def enable_welcome_speech(self, enable_welcome_speech): + """Sets the enable_welcome_speech of this UpdateWelcomeSpeechReq. + + 欢迎词功能开关。 + + :param enable_welcome_speech: The enable_welcome_speech of this UpdateWelcomeSpeechReq. + :type enable_welcome_speech: bool + """ + self._enable_welcome_speech = enable_welcome_speech + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_response.py index 494dbe111..2c0c7b853 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_response.py @@ -20,6 +20,8 @@ class UpdateWelcomeSpeechResponse(SdkResponse): openapi_types = { 'welcome_speech_id': 'str', 'welcome_speech': 'str', + 'enable_welcome_speech': 'bool', + 'language': 'LanguageEnum', 'robot_id': 'str', 'create_time': 'str', 'update_time': 'str', @@ -29,13 +31,15 @@ class UpdateWelcomeSpeechResponse(SdkResponse): attribute_map = { 'welcome_speech_id': 'welcome_speech_id', 'welcome_speech': 'welcome_speech', + 'enable_welcome_speech': 'enable_welcome_speech', + 'language': 'language', 'robot_id': 'robot_id', 'create_time': 'create_time', 'update_time': 'update_time', 'x_request_id': 'X-Request-Id' } - def __init__(self, welcome_speech_id=None, welcome_speech=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): + def __init__(self, welcome_speech_id=None, welcome_speech=None, enable_welcome_speech=None, language=None, robot_id=None, create_time=None, update_time=None, x_request_id=None): """UpdateWelcomeSpeechResponse The model defined in huaweicloud sdk @@ -44,6 +48,10 @@ class UpdateWelcomeSpeechResponse(SdkResponse): :type welcome_speech_id: str :param welcome_speech: 欢迎词。 :type welcome_speech: str + :param enable_welcome_speech: 欢迎词功能开关。 + :type enable_welcome_speech: bool + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` :param robot_id: 应用ID。 :type robot_id: str :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -58,6 +66,8 @@ class UpdateWelcomeSpeechResponse(SdkResponse): self._welcome_speech_id = None self._welcome_speech = None + self._enable_welcome_speech = None + self._language = None self._robot_id = None self._create_time = None self._update_time = None @@ -68,6 +78,10 @@ class UpdateWelcomeSpeechResponse(SdkResponse): self.welcome_speech_id = welcome_speech_id if welcome_speech is not None: self.welcome_speech = welcome_speech + if enable_welcome_speech is not None: + self.enable_welcome_speech = enable_welcome_speech + if language is not None: + self.language = language if robot_id is not None: self.robot_id = robot_id if create_time is not None: @@ -121,6 +135,46 @@ class UpdateWelcomeSpeechResponse(SdkResponse): """ self._welcome_speech = welcome_speech + @property + def enable_welcome_speech(self): + """Gets the enable_welcome_speech of this UpdateWelcomeSpeechResponse. + + 欢迎词功能开关。 + + :return: The enable_welcome_speech of this UpdateWelcomeSpeechResponse. + :rtype: bool + """ + return self._enable_welcome_speech + + @enable_welcome_speech.setter + def enable_welcome_speech(self, enable_welcome_speech): + """Sets the enable_welcome_speech of this UpdateWelcomeSpeechResponse. + + 欢迎词功能开关。 + + :param enable_welcome_speech: The enable_welcome_speech of this UpdateWelcomeSpeechResponse. + :type enable_welcome_speech: bool + """ + self._enable_welcome_speech = enable_welcome_speech + + @property + def language(self): + """Gets the language of this UpdateWelcomeSpeechResponse. + + :return: The language of this UpdateWelcomeSpeechResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this UpdateWelcomeSpeechResponse. + + :param language: The language of this UpdateWelcomeSpeechResponse. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + @property def robot_id(self): """Gets the robot_id of this UpdateWelcomeSpeechResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_switch_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_switch_req.py index ffcf82aab..8d0e91ce1 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_switch_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_welcome_speech_switch_req.py @@ -18,15 +18,17 @@ class UpdateWelcomeSpeechSwitchReq: openapi_types = { 'robot_id': 'str', - 'enable_welcome_speech': 'bool' + 'enable_welcome_speech': 'bool', + 'language': 'LanguageEnum' } attribute_map = { 'robot_id': 'robot_id', - 'enable_welcome_speech': 'enable_welcome_speech' + 'enable_welcome_speech': 'enable_welcome_speech', + 'language': 'language' } - def __init__(self, robot_id=None, enable_welcome_speech=None): + def __init__(self, robot_id=None, enable_welcome_speech=None, language=None): """UpdateWelcomeSpeechSwitchReq The model defined in huaweicloud sdk @@ -35,16 +37,21 @@ class UpdateWelcomeSpeechSwitchReq: :type robot_id: str :param enable_welcome_speech: 欢迎词功能开关。 :type enable_welcome_speech: bool + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` """ self._robot_id = None self._enable_welcome_speech = None + self._language = None self.discriminator = None self.robot_id = robot_id self.enable_welcome_speech = enable_welcome_speech + if language is not None: + self.language = language @property def robot_id(self): @@ -90,6 +97,24 @@ class UpdateWelcomeSpeechSwitchReq: """ self._enable_welcome_speech = enable_welcome_speech + @property + def language(self): + """Gets the language of this UpdateWelcomeSpeechSwitchReq. + + :return: The language of this UpdateWelcomeSpeechSwitchReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this UpdateWelcomeSpeechSwitchReq. + + :param language: The language of this UpdateWelcomeSpeechSwitchReq. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_model_asset_meta.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_model_asset_meta.py index 5d8225171..f245a61a5 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_model_asset_meta.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_model_asset_meta.py @@ -21,6 +21,7 @@ class VoiceModelAssetMeta: 'model_type': 'str', 'sex': 'str', 'language': 'str', + 'languages': 'list[Language]', 'speed_ratio': 'float', 'volume_ratio': 'float', 'is_realtime_voice': 'bool', @@ -36,6 +37,7 @@ class VoiceModelAssetMeta: 'model_type': 'model_type', 'sex': 'sex', 'language': 'language', + 'languages': 'languages', 'speed_ratio': 'speed_ratio', 'volume_ratio': 'volume_ratio', 'is_realtime_voice': 'is_realtime_voice', @@ -46,7 +48,7 @@ class VoiceModelAssetMeta: 'is_flexus': 'is_flexus' } - def __init__(self, order=None, model_type=None, sex=None, language=None, speed_ratio=None, volume_ratio=None, is_realtime_voice=None, style=None, voice_capability=None, external_voice_meta=None, is_support_vc_process=None, is_flexus=None): + def __init__(self, order=None, model_type=None, sex=None, language=None, languages=None, speed_ratio=None, volume_ratio=None, is_realtime_voice=None, style=None, voice_capability=None, external_voice_meta=None, is_support_vc_process=None, is_flexus=None): """VoiceModelAssetMeta The model defined in huaweicloud sdk @@ -59,6 +61,8 @@ class VoiceModelAssetMeta: :type sex: str :param language: **参数解释**: 声音语言。 **约束限制**: 不涉及。 **取值范围**: * UNKNOW:未知 * CN:中文 * EN:英文 * GER:德语 * fr:法语 * Kr:韩语 * por:葡萄牙语 * JPN:日语 * Ita:意大利语 * ESP:西班牙语 * DBH:东北话 * GT:港台 * GXH:广西话 * HBH:湖北话 * SXH:陕西话 * SCH:四川话 * YY:粤语 * Russian: 俄罗斯语 * Filipino: 菲律宾语 * Dutch: 荷兰语 * Indonesian: 印尼语 * Vietnamese: 越南语 * Arabic: 阿拉伯语 * Turkish: 土耳其语 * Malay: 马来语 * Thai: 泰语 * Finnish: 芬兰语 :type language: str + :param languages: + :type languages: list[:class:`huaweicloudsdkmetastudio.v1.Language`] :param speed_ratio: **参数解释**: 语速缩放比例。 **约束限制**: 不涉及 :type speed_ratio: float :param volume_ratio: **参数解释**: 音量缩放比例。 **约束限制**: 不涉及 @@ -83,6 +87,7 @@ class VoiceModelAssetMeta: self._model_type = None self._sex = None self._language = None + self._languages = None self._speed_ratio = None self._volume_ratio = None self._is_realtime_voice = None @@ -101,6 +106,8 @@ class VoiceModelAssetMeta: self.sex = sex if language is not None: self.language = language + if languages is not None: + self.languages = languages if speed_ratio is not None: self.speed_ratio = speed_ratio if volume_ratio is not None: @@ -206,6 +213,24 @@ class VoiceModelAssetMeta: """ self._language = language + @property + def languages(self): + """Gets the languages of this VoiceModelAssetMeta. + + :return: The languages of this VoiceModelAssetMeta. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.Language`] + """ + return self._languages + + @languages.setter + def languages(self, languages): + """Sets the languages of this VoiceModelAssetMeta. + + :param languages: The languages of this VoiceModelAssetMeta. + :type languages: list[:class:`huaweicloudsdkmetastudio.v1.Language`] + """ + self._languages = languages + @property def speed_ratio(self): """Gets the speed_ratio of this VoiceModelAssetMeta. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/welcome_speech_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/welcome_speech_info.py index 63971dfd7..78a038c1f 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/welcome_speech_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/welcome_speech_info.py @@ -19,6 +19,8 @@ class WelcomeSpeechInfo: openapi_types = { 'welcome_speech_id': 'str', 'welcome_speech': 'str', + 'enable_welcome_speech': 'bool', + 'language': 'LanguageEnum', 'robot_id': 'str', 'create_time': 'str', 'update_time': 'str' @@ -27,12 +29,14 @@ class WelcomeSpeechInfo: attribute_map = { 'welcome_speech_id': 'welcome_speech_id', 'welcome_speech': 'welcome_speech', + 'enable_welcome_speech': 'enable_welcome_speech', + 'language': 'language', 'robot_id': 'robot_id', 'create_time': 'create_time', 'update_time': 'update_time' } - def __init__(self, welcome_speech_id=None, welcome_speech=None, robot_id=None, create_time=None, update_time=None): + def __init__(self, welcome_speech_id=None, welcome_speech=None, enable_welcome_speech=None, language=None, robot_id=None, create_time=None, update_time=None): """WelcomeSpeechInfo The model defined in huaweicloud sdk @@ -41,6 +45,10 @@ class WelcomeSpeechInfo: :type welcome_speech_id: str :param welcome_speech: 欢迎词。 :type welcome_speech: str + :param enable_welcome_speech: 欢迎词功能开关。 + :type enable_welcome_speech: bool + :param language: + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` :param robot_id: 应用ID。 :type robot_id: str :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -53,6 +61,8 @@ class WelcomeSpeechInfo: self._welcome_speech_id = None self._welcome_speech = None + self._enable_welcome_speech = None + self._language = None self._robot_id = None self._create_time = None self._update_time = None @@ -62,6 +72,10 @@ class WelcomeSpeechInfo: self.welcome_speech_id = welcome_speech_id if welcome_speech is not None: self.welcome_speech = welcome_speech + if enable_welcome_speech is not None: + self.enable_welcome_speech = enable_welcome_speech + if language is not None: + self.language = language if robot_id is not None: self.robot_id = robot_id if create_time is not None: @@ -113,6 +127,46 @@ class WelcomeSpeechInfo: """ self._welcome_speech = welcome_speech + @property + def enable_welcome_speech(self): + """Gets the enable_welcome_speech of this WelcomeSpeechInfo. + + 欢迎词功能开关。 + + :return: The enable_welcome_speech of this WelcomeSpeechInfo. + :rtype: bool + """ + return self._enable_welcome_speech + + @enable_welcome_speech.setter + def enable_welcome_speech(self, enable_welcome_speech): + """Sets the enable_welcome_speech of this WelcomeSpeechInfo. + + 欢迎词功能开关。 + + :param enable_welcome_speech: The enable_welcome_speech of this WelcomeSpeechInfo. + :type enable_welcome_speech: bool + """ + self._enable_welcome_speech = enable_welcome_speech + + @property + def language(self): + """Gets the language of this WelcomeSpeechInfo. + + :return: The language of this WelcomeSpeechInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this WelcomeSpeechInfo. + + :param language: The language of this WelcomeSpeechInfo. + :type language: :class:`huaweicloudsdkmetastudio.v1.LanguageEnum` + """ + self._language = language + @property def robot_id(self): """Gets the robot_id of this WelcomeSpeechInfo. diff --git a/huaweicloud-sdk-metastudio/requirements.txt b/huaweicloud-sdk-metastudio/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-metastudio/requirements.txt +++ b/huaweicloud-sdk-metastudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-metastudio/setup.py b/huaweicloud-sdk-metastudio/setup.py index 0888e3890..028965a1b 100644 --- a/huaweicloud-sdk-metastudio/setup.py +++ b/huaweicloud-sdk-metastudio/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmetastudio" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 7257c456f..593c4b408 100644 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 496549a72..144c4415a 100644 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/create_scaling_policy_response.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/create_scaling_policy_response.py index 2ba8e06ad..7a1e5b7e4 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/create_scaling_policy_response.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/create_scaling_policy_response.py @@ -18,47 +18,51 @@ class CreateScalingPolicyResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'body': 'str' + 'result': 'str' } attribute_map = { - 'body': 'body' + 'result': 'result' } - def __init__(self, body=None): + def __init__(self, result=None): """CreateScalingPolicyResponse The model defined in huaweicloud sdk - :param body: - :type body: str + :param result: 操作结果。 - succeeded:操作成功 - 操作失败时返回的错误码信息如[错误码](https://support.huaweicloud.com/api-mrs/ErrorCode.html)所示。 + :type result: str """ super(CreateScalingPolicyResponse, self).__init__() - self._body = None + self._result = None self.discriminator = None - if body is not None: - self.body = body + if result is not None: + self.result = result @property - def body(self): - """Gets the body of this CreateScalingPolicyResponse. + def result(self): + """Gets the result of this CreateScalingPolicyResponse. - :return: The body of this CreateScalingPolicyResponse. + 操作结果。 - succeeded:操作成功 - 操作失败时返回的错误码信息如[错误码](https://support.huaweicloud.com/api-mrs/ErrorCode.html)所示。 + + :return: The result of this CreateScalingPolicyResponse. :rtype: str """ - return self._body + return self._result - @body.setter - def body(self, body): - """Sets the body of this CreateScalingPolicyResponse. + @result.setter + def result(self, result): + """Sets the result of this CreateScalingPolicyResponse. - :param body: The body of this CreateScalingPolicyResponse. - :type body: str + 操作结果。 - succeeded:操作成功 - 操作失败时返回的错误码信息如[错误码](https://support.huaweicloud.com/api-mrs/ErrorCode.html)所示。 + + :param result: The result of this CreateScalingPolicyResponse. + :type result: str """ - self._body = body + self._result = result def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index 859e85cf3..5c1b1a45a 100644 --- a/huaweicloud-sdk-mrs/setup.py +++ b/huaweicloud-sdk-mrs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmrs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-msgsms/requirements.txt b/huaweicloud-sdk-msgsms/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-msgsms/requirements.txt +++ b/huaweicloud-sdk-msgsms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-msgsms/setup.py b/huaweicloud-sdk-msgsms/setup.py index f38cc5b4c..7bf71261b 100644 --- a/huaweicloud-sdk-msgsms/setup.py +++ b/huaweicloud-sdk-msgsms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmsgsms" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mssi/requirements.txt b/huaweicloud-sdk-mssi/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-mssi/requirements.txt +++ b/huaweicloud-sdk-mssi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-mssi/setup.py b/huaweicloud-sdk-mssi/setup.py index 8f55356c9..2a987b20a 100644 --- a/huaweicloud-sdk-mssi/setup.py +++ b/huaweicloud-sdk-mssi/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmssi" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index da304e0e8..61ac847e6 100644 --- a/huaweicloud-sdk-nat/setup.py +++ b/huaweicloud-sdk-nat/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdknat" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index f86c2cb41..ad581d0b4 100644 --- a/huaweicloud-sdk-nlp/setup.py +++ b/huaweicloud-sdk-nlp/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdknlp" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-obs/requirements.txt b/huaweicloud-sdk-obs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-obs/requirements.txt +++ b/huaweicloud-sdk-obs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-obs/setup.py b/huaweicloud-sdk-obs/setup.py index d8a2f93da..cfed96e03 100644 --- a/huaweicloud-sdk-obs/setup.py +++ b/huaweicloud-sdk-obs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkobs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index 9db03830d..062fe8516 100644 --- a/huaweicloud-sdk-ocr/setup.py +++ b/huaweicloud-sdk-ocr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkocr" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-octopus/requirements.txt b/huaweicloud-sdk-octopus/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-octopus/requirements.txt +++ b/huaweicloud-sdk-octopus/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-octopus/setup.py b/huaweicloud-sdk-octopus/setup.py index a3fd694e6..8d9ca34e0 100644 --- a/huaweicloud-sdk-octopus/setup.py +++ b/huaweicloud-sdk-octopus/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkoctopus" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index 8bcd1c251..a85c67f0d 100644 --- a/huaweicloud-sdk-oms/setup.py +++ b/huaweicloud-sdk-oms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkoms" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-optverse/requirements.txt b/huaweicloud-sdk-optverse/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-optverse/requirements.txt +++ b/huaweicloud-sdk-optverse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-optverse/setup.py b/huaweicloud-sdk-optverse/setup.py index c0909114b..e61940b4a 100644 --- a/huaweicloud-sdk-optverse/setup.py +++ b/huaweicloud-sdk-optverse/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkoptverse" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-organizations/requirements.txt b/huaweicloud-sdk-organizations/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-organizations/requirements.txt +++ b/huaweicloud-sdk-organizations/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-organizations/setup.py b/huaweicloud-sdk-organizations/setup.py index 12edaae5f..5d68edf1a 100644 --- a/huaweicloud-sdk-organizations/setup.py +++ b/huaweicloud-sdk-organizations/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkorganizations" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-orgid/requirements.txt b/huaweicloud-sdk-orgid/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-orgid/requirements.txt +++ b/huaweicloud-sdk-orgid/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-orgid/setup.py b/huaweicloud-sdk-orgid/setup.py index 9f7b30ab9..76b61ff39 100644 --- a/huaweicloud-sdk-orgid/setup.py +++ b/huaweicloud-sdk-orgid/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkorgid" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oroas/requirements.txt b/huaweicloud-sdk-oroas/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-oroas/requirements.txt +++ b/huaweicloud-sdk-oroas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-oroas/setup.py b/huaweicloud-sdk-oroas/setup.py index 6ebc09f30..be7d9a909 100644 --- a/huaweicloud-sdk-oroas/setup.py +++ b/huaweicloud-sdk-oroas/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkoroas" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 4ffe08ca1..0d4a833c7 100644 --- a/huaweicloud-sdk-osm/setup.py +++ b/huaweicloud-sdk-osm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkosm" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-pangulargemodels/requirements.txt b/huaweicloud-sdk-pangulargemodels/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-pangulargemodels/requirements.txt +++ b/huaweicloud-sdk-pangulargemodels/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-pangulargemodels/setup.py b/huaweicloud-sdk-pangulargemodels/setup.py index 60cc5bc34..41be51441 100644 --- a/huaweicloud-sdk-pangulargemodels/setup.py +++ b/huaweicloud-sdk-pangulargemodels/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkpangulargemodels" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index 6f7413252..93c8365ea 100644 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index 939f3d581..668e6f2a4 100644 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ram/requirements.txt b/huaweicloud-sdk-ram/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ram/requirements.txt +++ b/huaweicloud-sdk-ram/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ram/setup.py b/huaweicloud-sdk-ram/setup.py index 0c77d4034..6cd0b9ef1 100644 --- a/huaweicloud-sdk-ram/setup.py +++ b/huaweicloud-sdk-ram/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkram" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 7173be060..94aea5322 100644 --- a/huaweicloud-sdk-rds/setup.py +++ b/huaweicloud-sdk-rds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrds" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index 89384bac7..2bf43fa18 100644 --- a/huaweicloud-sdk-res/setup.py +++ b/huaweicloud-sdk-res/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkres" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/__init__.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/__init__.py index 01f6575af..101bf99eb 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/__init__.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/__init__.py @@ -13,6 +13,7 @@ from huaweicloudsdkrgc.v1.model.create_account_response import CreateAccountResp from huaweicloudsdkrgc.v1.model.create_managed_account_request import CreateManagedAccountRequest from huaweicloudsdkrgc.v1.model.disable_control_request import DisableControlRequest from huaweicloudsdkrgc.v1.model.disable_control_response import DisableControlResponse +from huaweicloudsdkrgc.v1.model.enable_control_parameters import EnableControlParameters from huaweicloudsdkrgc.v1.model.enable_control_request import EnableControlRequest from huaweicloudsdkrgc.v1.model.enable_control_response import EnableControlResponse from huaweicloudsdkrgc.v1.model.enabled_control import EnabledControl diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/__init__.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/__init__.py index 10e45a1a8..e47fd2230 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/__init__.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/__init__.py @@ -11,6 +11,7 @@ from huaweicloudsdkrgc.v1.model.create_account_response import CreateAccountResp from huaweicloudsdkrgc.v1.model.create_managed_account_request import CreateManagedAccountRequest from huaweicloudsdkrgc.v1.model.disable_control_request import DisableControlRequest from huaweicloudsdkrgc.v1.model.disable_control_response import DisableControlResponse +from huaweicloudsdkrgc.v1.model.enable_control_parameters import EnableControlParameters from huaweicloudsdkrgc.v1.model.enable_control_request import EnableControlRequest from huaweicloudsdkrgc.v1.model.enable_control_response import EnableControlResponse from huaweicloudsdkrgc.v1.model.enabled_control import EnabledControl diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_operate_req_body.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_operate_req_body.py index f152b3636..2fa5cbb99 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_operate_req_body.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_operate_req_body.py @@ -18,15 +18,17 @@ class ControlOperateReqBody: openapi_types = { 'identifier': 'str', - 'target_identifier': 'str' + 'target_identifier': 'str', + 'parameters': 'list[EnableControlParameters]' } attribute_map = { 'identifier': 'identifier', - 'target_identifier': 'target_identifier' + 'target_identifier': 'target_identifier', + 'parameters': 'parameters' } - def __init__(self, identifier=None, target_identifier=None): + def __init__(self, identifier=None, target_identifier=None, parameters=None): """ControlOperateReqBody The model defined in huaweicloud sdk @@ -35,16 +37,21 @@ class ControlOperateReqBody: :type identifier: str :param target_identifier: 组织单元的ID信息。 :type target_identifier: str + :param parameters: 策略参数。 + :type parameters: list[:class:`huaweicloudsdkrgc.v1.EnableControlParameters`] """ self._identifier = None self._target_identifier = None + self._parameters = None self.discriminator = None self.identifier = identifier self.target_identifier = target_identifier + if parameters is not None: + self.parameters = parameters @property def identifier(self): @@ -90,6 +97,28 @@ class ControlOperateReqBody: """ self._target_identifier = target_identifier + @property + def parameters(self): + """Gets the parameters of this ControlOperateReqBody. + + 策略参数。 + + :return: The parameters of this ControlOperateReqBody. + :rtype: list[:class:`huaweicloudsdkrgc.v1.EnableControlParameters`] + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this ControlOperateReqBody. + + 策略参数。 + + :param parameters: The parameters of this ControlOperateReqBody. + :type parameters: list[:class:`huaweicloudsdkrgc.v1.EnableControlParameters`] + """ + self._parameters = parameters + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enable_control_parameters.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enable_control_parameters.py new file mode 100644 index 000000000..4721f67f5 --- /dev/null +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enable_control_parameters.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EnableControlParameters: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'value': 'object' + } + + attribute_map = { + 'key': 'key', + 'value': 'value' + } + + def __init__(self, key=None, value=None): + """EnableControlParameters + + The model defined in huaweicloud sdk + + :param key: 策略参数名称。 + :type key: str + :param value: 策略参数的值。 + :type value: object + """ + + + + self._key = None + self._value = None + self.discriminator = None + + self.key = key + self.value = value + + @property + def key(self): + """Gets the key of this EnableControlParameters. + + 策略参数名称。 + + :return: The key of this EnableControlParameters. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this EnableControlParameters. + + 策略参数名称。 + + :param key: The key of this EnableControlParameters. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this EnableControlParameters. + + 策略参数的值。 + + :return: The value of this EnableControlParameters. + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this EnableControlParameters. + + 策略参数的值。 + + :param value: The value of this EnableControlParameters. + :type value: object + """ + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EnableControlParameters): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rgc/requirements.txt b/huaweicloud-sdk-rgc/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-rgc/requirements.txt +++ b/huaweicloud-sdk-rgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-rgc/setup.py b/huaweicloud-sdk-rgc/setup.py index f8bb0224e..6b704ae86 100644 --- a/huaweicloud-sdk-rgc/setup.py +++ b/huaweicloud-sdk-rgc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrgc" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index b08bc2557..a3623e605 100644 --- a/huaweicloud-sdk-rms/setup.py +++ b/huaweicloud-sdk-rms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrms" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index f95eb8b9a..4577b5063 100644 --- a/huaweicloud-sdk-rocketmq/setup.py +++ b/huaweicloud-sdk-rocketmq/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrocketmq" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index ccd1ac47d..cf3ee125c 100644 --- a/huaweicloud-sdk-roma/setup.py +++ b/huaweicloud-sdk-roma/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkroma" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index eef076cf0..3ce228b43 100644 --- a/huaweicloud-sdk-sa/setup.py +++ b/huaweicloud-sdk-sa/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksa" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index c150d610b..895324ade 100644 --- a/huaweicloud-sdk-scm/setup.py +++ b/huaweicloud-sdk-scm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkscm" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index d40018a15..0b2691818 100644 --- a/huaweicloud-sdk-sdrs/setup.py +++ b/huaweicloud-sdk-sdrs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksdrs" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v1/region/secmaster_region.py b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v1/region/secmaster_region.py index 9320114eb..98e42a5bf 100644 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v1/region/secmaster_region.py +++ b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v1/region/secmaster_region.py @@ -46,6 +46,10 @@ class SecMasterRegion: "https://secmaster.tr-west-1.myhuaweicloud.com") AF_NORTH_1 = Region("af-north-1", "https://secmaster.af-north-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://secmaster.af-south-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://secmaster.la-south-2.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, @@ -68,6 +72,8 @@ class SecMasterRegion: "ap-southeast-4": AP_SOUTHEAST_4, "tr-west-1": TR_WEST_1, "af-north-1": AF_NORTH_1, + "af-south-1": AF_SOUTH_1, + "la-south-2": LA_SOUTH_2, } @classmethod diff --git a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py index 9320114eb..98e42a5bf 100644 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py +++ b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py @@ -46,6 +46,10 @@ class SecMasterRegion: "https://secmaster.tr-west-1.myhuaweicloud.com") AF_NORTH_1 = Region("af-north-1", "https://secmaster.af-north-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://secmaster.af-south-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://secmaster.la-south-2.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, @@ -68,6 +72,8 @@ class SecMasterRegion: "ap-southeast-4": AP_SOUTHEAST_4, "tr-west-1": TR_WEST_1, "af-north-1": AF_NORTH_1, + "af-south-1": AF_SOUTH_1, + "la-south-2": LA_SOUTH_2, } @classmethod diff --git a/huaweicloud-sdk-secmaster/requirements.txt b/huaweicloud-sdk-secmaster/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-secmaster/requirements.txt +++ b/huaweicloud-sdk-secmaster/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-secmaster/setup.py b/huaweicloud-sdk-secmaster/setup.py index ddb83cb49..d5604dc6b 100644 --- a/huaweicloud-sdk-secmaster/setup.py +++ b/huaweicloud-sdk-secmaster/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksecmaster" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index 787856f73..30ffd3dc0 100644 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index 9a79eac92..c892ff8c1 100644 --- a/huaweicloud-sdk-sfsturbo/setup.py +++ b/huaweicloud-sdk-sfsturbo/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksfsturbo" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index 54fc77d6a..8547216ee 100644 --- a/huaweicloud-sdk-sis/setup.py +++ b/huaweicloud-sdk-sis/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksis" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index 261e9f916..edb20cdf5 100644 --- a/huaweicloud-sdk-smn/setup.py +++ b/huaweicloud-sdk-smn/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksmn" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index ff4c274a0..6a6f144c6 100644 --- a/huaweicloud-sdk-sms/setup.py +++ b/huaweicloud-sdk-sms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksms" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sts/requirements.txt b/huaweicloud-sdk-sts/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-sts/requirements.txt +++ b/huaweicloud-sdk-sts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-sts/setup.py b/huaweicloud-sdk-sts/setup.py index 68398907e..5af8d522b 100644 --- a/huaweicloud-sdk-sts/setup.py +++ b/huaweicloud-sdk-sts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksts" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index 354639b35..84ab1f25b 100644 --- a/huaweicloud-sdk-swr/setup.py +++ b/huaweicloud-sdk-swr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkswr" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tics/requirements.txt b/huaweicloud-sdk-tics/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-tics/requirements.txt +++ b/huaweicloud-sdk-tics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-tics/setup.py b/huaweicloud-sdk-tics/setup.py index 03f4401d5..a9bdea427 100644 --- a/huaweicloud-sdk-tics/setup.py +++ b/huaweicloud-sdk-tics/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdktics" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index 27a9d2f97..55089c41f 100644 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index 3f77ccb2a..1f1db2019 100644 --- a/huaweicloud-sdk-ugo/setup.py +++ b/huaweicloud-sdk-ugo/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkugo" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index ee99391d6..2583b278a 100644 --- a/huaweicloud-sdk-vas/setup.py +++ b/huaweicloud-sdk-vas/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvas" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index 744ef27b9..5adea35f6 100644 --- a/huaweicloud-sdk-vcm/setup.py +++ b/huaweicloud-sdk-vcm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvcm" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_process_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_process_req.py index 7bd24f0d1..2666e7b38 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_process_req.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/asset_process_req.py @@ -18,7 +18,6 @@ class AssetProcessReq: openapi_types = { 'asset_id': 'str', - 'hls_storage_type': 'str', 'template_group_name': 'str', 'auto_encrypt': 'int', 'thumbnail': 'Thumbnail', @@ -27,23 +26,20 @@ class AssetProcessReq: attribute_map = { 'asset_id': 'asset_id', - 'hls_storage_type': 'hls_storage_type', 'template_group_name': 'template_group_name', 'auto_encrypt': 'auto_encrypt', 'thumbnail': 'thumbnail', 'subtitle_id': 'subtitle_id' } - def __init__(self, asset_id=None, hls_storage_type=None, template_group_name=None, auto_encrypt=None, thumbnail=None, subtitle_id=None): + def __init__(self, asset_id=None, template_group_name=None, auto_encrypt=None, thumbnail=None, subtitle_id=None): """AssetProcessReq The model defined in huaweicloud sdk :param asset_id: 媒资ID。 :type asset_id: str - :param hls_storage_type: hls的音视频流存储方式。 取值如下: - composite:存储在同一文件中。 - separate:存储在不同文件中。 - :type hls_storage_type: str - :param template_group_name: 转码模板组名称。 若不为空,则使用指定的转码模板对上传的音视频进行转码,您可以在视频点播控制台配置转码模板,具体请参见[转码设置](https://support.huaweicloud.com/usermanual-vod/vod_01_0072.html)。 + :param template_group_name: 转码模板组名称。 若不为空,则使用指定的转码模板对上传的音视频进行转码,您可以在视频点播控制台配置转码模板,具体请参见[转码设置](https://support.huaweicloud.com/usermanual-vod/vod_01_0072.html)。 :type template_group_name: str :param auto_encrypt: 是否自动加密。 取值如下: - 0:表示不加密。 - 1:表示需要加密。 默认值:0。 加密与转码必须要一起进行,当需要加密时,转码参数不能为空,且转码输出格式必须要为HLS。 :type auto_encrypt: int @@ -56,7 +52,6 @@ class AssetProcessReq: self._asset_id = None - self._hls_storage_type = None self._template_group_name = None self._auto_encrypt = None self._thumbnail = None @@ -64,8 +59,6 @@ class AssetProcessReq: self.discriminator = None self.asset_id = asset_id - if hls_storage_type is not None: - self.hls_storage_type = hls_storage_type if template_group_name is not None: self.template_group_name = template_group_name if auto_encrypt is not None: @@ -97,33 +90,11 @@ class AssetProcessReq: """ self._asset_id = asset_id - @property - def hls_storage_type(self): - """Gets the hls_storage_type of this AssetProcessReq. - - hls的音视频流存储方式。 取值如下: - composite:存储在同一文件中。 - separate:存储在不同文件中。 - - :return: The hls_storage_type of this AssetProcessReq. - :rtype: str - """ - return self._hls_storage_type - - @hls_storage_type.setter - def hls_storage_type(self, hls_storage_type): - """Sets the hls_storage_type of this AssetProcessReq. - - hls的音视频流存储方式。 取值如下: - composite:存储在同一文件中。 - separate:存储在不同文件中。 - - :param hls_storage_type: The hls_storage_type of this AssetProcessReq. - :type hls_storage_type: str - """ - self._hls_storage_type = hls_storage_type - @property def template_group_name(self): """Gets the template_group_name of this AssetProcessReq. - 转码模板组名称。 若不为空,则使用指定的转码模板对上传的音视频进行转码,您可以在视频点播控制台配置转码模板,具体请参见[转码设置](https://support.huaweicloud.com/usermanual-vod/vod_01_0072.html)。 + 转码模板组名称。 若不为空,则使用指定的转码模板对上传的音视频进行转码,您可以在视频点播控制台配置转码模板,具体请参见[转码设置](https://support.huaweicloud.com/usermanual-vod/vod_01_0072.html)。 :return: The template_group_name of this AssetProcessReq. :rtype: str @@ -134,7 +105,7 @@ class AssetProcessReq: def template_group_name(self, template_group_name): """Sets the template_group_name of this AssetProcessReq. - 转码模板组名称。 若不为空,则使用指定的转码模板对上传的音视频进行转码,您可以在视频点播控制台配置转码模板,具体请参见[转码设置](https://support.huaweicloud.com/usermanual-vod/vod_01_0072.html)。 + 转码模板组名称。 若不为空,则使用指定的转码模板对上传的音视频进行转码,您可以在视频点播控制台配置转码模板,具体请参见[转码设置](https://support.huaweicloud.com/usermanual-vod/vod_01_0072.html)。 :param template_group_name: The template_group_name of this AssetProcessReq. :type template_group_name: str diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/common.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/common.py index 23ae9abe9..506d71582 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/common.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/common.py @@ -37,9 +37,9 @@ class Common: The model defined in huaweicloud sdk - :param pvc: pvc开关。 + :param pvc: 高清低码开关。 :type pvc: str - :param pvc_version: pvc版本。 + :param pvc_version: 高清低码版本。 :type pvc_version: str :param video_codec: 视频编码格式。 :type video_codec: str @@ -72,7 +72,7 @@ class Common: def pvc(self): """Gets the pvc of this Common. - pvc开关。 + 高清低码开关。 :return: The pvc of this Common. :rtype: str @@ -83,7 +83,7 @@ class Common: def pvc(self, pvc): """Sets the pvc of this Common. - pvc开关。 + 高清低码开关。 :param pvc: The pvc of this Common. :type pvc: str @@ -94,7 +94,7 @@ class Common: def pvc_version(self): """Gets the pvc_version of this Common. - pvc版本。 + 高清低码版本。 :return: The pvc_version of this Common. :rtype: str @@ -105,7 +105,7 @@ class Common: def pvc_version(self, pvc_version): """Sets the pvc_version of this Common. - pvc版本。 + 高清低码版本。 :param pvc_version: The pvc_version of this Common. :type pvc_version: str diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/common_info.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/common_info.py index 3c36b0e79..4ddcc20b5 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/common_info.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/common_info.py @@ -24,7 +24,11 @@ class CommonInfo: 'format': 'str', 'hls_interval': 'int', 'upsample': 'bool', - 'adaptation': 'str' + 'adaptation': 'str', + 'preset': 'int', + 'max_iframes_interval': 'int', + 'hls_audio_separate': 'bool', + 'hls_segment_type': 'str' } attribute_map = { @@ -35,15 +39,19 @@ class CommonInfo: 'format': 'format', 'hls_interval': 'hls_interval', 'upsample': 'upsample', - 'adaptation': 'adaptation' + 'adaptation': 'adaptation', + 'preset': 'preset', + 'max_iframes_interval': 'max_iframes_interval', + 'hls_audio_separate': 'hls_audio_separate', + 'hls_segment_type': 'hls_segment_type' } - def __init__(self, pvc=None, video_codec=None, audio_codec=None, is_black_cut=None, format=None, hls_interval=None, upsample=None, adaptation=None): + def __init__(self, pvc=None, video_codec=None, audio_codec=None, is_black_cut=None, format=None, hls_interval=None, upsample=None, adaptation=None, preset=None, max_iframes_interval=None, hls_audio_separate=None, hls_segment_type=None): """CommonInfo The model defined in huaweicloud sdk - :param pvc: pvc开关<br/> + :param pvc: 高清低码开关<br/> :type pvc: bool :param video_codec: 视频编码格式<br/> :type video_codec: str @@ -59,6 +67,14 @@ class CommonInfo: :type upsample: bool :param adaptation: SHORT:短边自适应<br/> LONG:长边自适应<br/> NONE:宽高自适应<br/> :type adaptation: str + :param preset: 编码质量等级,取值[0,2] 0表示当前现网方式默认方式,1表示转码效率优先,2表示转码质量优先。<br/> + :type preset: int + :param max_iframes_interval: I帧最大间隔,取值范围:[2,10]。默认值:5,单位秒。<br/> + :type max_iframes_interval: int + :param hls_audio_separate: 转码后音频是否独立存储。<br/> + :type hls_audio_separate: bool + :param hls_segment_type: 分片的封装格式,目前支持TS和FMP4,默认TS格式。 + :type hls_segment_type: str """ @@ -71,6 +87,10 @@ class CommonInfo: self._hls_interval = None self._upsample = None self._adaptation = None + self._preset = None + self._max_iframes_interval = None + self._hls_audio_separate = None + self._hls_segment_type = None self.discriminator = None self.pvc = pvc @@ -80,17 +100,26 @@ class CommonInfo: if is_black_cut is not None: self.is_black_cut = is_black_cut self.format = format - self.hls_interval = hls_interval + if hls_interval is not None: + self.hls_interval = hls_interval if upsample is not None: self.upsample = upsample if adaptation is not None: self.adaptation = adaptation + if preset is not None: + self.preset = preset + if max_iframes_interval is not None: + self.max_iframes_interval = max_iframes_interval + if hls_audio_separate is not None: + self.hls_audio_separate = hls_audio_separate + if hls_segment_type is not None: + self.hls_segment_type = hls_segment_type @property def pvc(self): """Gets the pvc of this CommonInfo. - pvc开关
+ 高清低码开关
:return: The pvc of this CommonInfo. :rtype: bool @@ -101,7 +130,7 @@ class CommonInfo: def pvc(self, pvc): """Sets the pvc of this CommonInfo. - pvc开关
+ 高清低码开关
:param pvc: The pvc of this CommonInfo. :type pvc: bool @@ -262,6 +291,94 @@ class CommonInfo: """ self._adaptation = adaptation + @property + def preset(self): + """Gets the preset of this CommonInfo. + + 编码质量等级,取值[0,2] 0表示当前现网方式默认方式,1表示转码效率优先,2表示转码质量优先。
+ + :return: The preset of this CommonInfo. + :rtype: int + """ + return self._preset + + @preset.setter + def preset(self, preset): + """Sets the preset of this CommonInfo. + + 编码质量等级,取值[0,2] 0表示当前现网方式默认方式,1表示转码效率优先,2表示转码质量优先。
+ + :param preset: The preset of this CommonInfo. + :type preset: int + """ + self._preset = preset + + @property + def max_iframes_interval(self): + """Gets the max_iframes_interval of this CommonInfo. + + I帧最大间隔,取值范围:[2,10]。默认值:5,单位秒。
+ + :return: The max_iframes_interval of this CommonInfo. + :rtype: int + """ + return self._max_iframes_interval + + @max_iframes_interval.setter + def max_iframes_interval(self, max_iframes_interval): + """Sets the max_iframes_interval of this CommonInfo. + + I帧最大间隔,取值范围:[2,10]。默认值:5,单位秒。
+ + :param max_iframes_interval: The max_iframes_interval of this CommonInfo. + :type max_iframes_interval: int + """ + self._max_iframes_interval = max_iframes_interval + + @property + def hls_audio_separate(self): + """Gets the hls_audio_separate of this CommonInfo. + + 转码后音频是否独立存储。
+ + :return: The hls_audio_separate of this CommonInfo. + :rtype: bool + """ + return self._hls_audio_separate + + @hls_audio_separate.setter + def hls_audio_separate(self, hls_audio_separate): + """Sets the hls_audio_separate of this CommonInfo. + + 转码后音频是否独立存储。
+ + :param hls_audio_separate: The hls_audio_separate of this CommonInfo. + :type hls_audio_separate: bool + """ + self._hls_audio_separate = hls_audio_separate + + @property + def hls_segment_type(self): + """Gets the hls_segment_type of this CommonInfo. + + 分片的封装格式,目前支持TS和FMP4,默认TS格式。 + + :return: The hls_segment_type of this CommonInfo. + :rtype: str + """ + return self._hls_segment_type + + @hls_segment_type.setter + def hls_segment_type(self, hls_segment_type): + """Sets the hls_segment_type of this CommonInfo. + + 分片的封装格式,目前支持TS和FMP4,默认TS格式。 + + :param hls_segment_type: The hls_segment_type of this CommonInfo. + :type hls_segment_type: str + """ + self._hls_segment_type = hls_segment_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_upload_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_upload_req.py index 13ee1b8b1..0bbcd525f 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_upload_req.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/create_asset_by_file_upload_req.py @@ -81,7 +81,7 @@ class CreateAssetByFileUploadReq: :type subtitles: list[:class:`huaweicloudsdkvod.v1.Subtitle`] :param tags: 视频标签。 单个标签不超过16个字节,最多不超过16个标签。 多个用逗号分隔,UTF8编码。 :type tags: str - :param auto_publish: 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + :param auto_publish: 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :type auto_publish: int :param template_group_name: 转码模板组名称。 若不为空,则使用指定的转码模板对上传的音视频进行转码,您可以在视频点播控制台配置转码模板,具体请参见[转码设置](https://support.huaweicloud.com/usermanual-vod/vod_01_0072.html)。 > 若同时设置了“**template_group_name**”和“**workflow_name**”字段,则“**template_group_name**”字段生效。 :type template_group_name: str @@ -374,7 +374,7 @@ class CreateAssetByFileUploadReq: def auto_publish(self): """Gets the auto_publish of this CreateAssetByFileUploadReq. - 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :return: The auto_publish of this CreateAssetByFileUploadReq. :rtype: int @@ -385,7 +385,7 @@ class CreateAssetByFileUploadReq: def auto_publish(self, auto_publish): """Sets the auto_publish of this CreateAssetByFileUploadReq. - 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :param auto_publish: The auto_publish of this CreateAssetByFileUploadReq. :type auto_publish: int diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/meta_data.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/meta_data.py index 114e68a06..9b609ae3e 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/meta_data.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/meta_data.py @@ -23,6 +23,7 @@ class MetaData: 'video_size': 'int', 'width': 'int', 'hight': 'int', + 'height': 'int', 'bit_rate': 'int', 'frame_rate': 'int', 'quality': 'str', @@ -36,13 +37,14 @@ class MetaData: 'video_size': 'video_size', 'width': 'width', 'hight': 'hight', + 'height': 'height', 'bit_rate': 'bit_rate', 'frame_rate': 'frame_rate', 'quality': 'quality', 'audio_channels': 'audio_channels' } - def __init__(self, pack_type=None, codec=None, duration=None, video_size=None, width=None, hight=None, bit_rate=None, frame_rate=None, quality=None, audio_channels=None): + def __init__(self, pack_type=None, codec=None, duration=None, video_size=None, width=None, hight=None, height=None, bit_rate=None, frame_rate=None, quality=None, audio_channels=None): """MetaData The model defined in huaweicloud sdk @@ -57,8 +59,10 @@ class MetaData: :type video_size: int :param width: 视频宽度(单位:像素)。 - 编码为H.264的取值范围:[32,3840]之间2的倍数。 - 编码为H.265的取值范围:[320,3840]之间4的倍数。 :type width: int - :param hight: 视频高度(单位:像素)。 - 编码为H.264的取值范围:[32,2160]之间2的倍数 。 - 编码为H.265的取值范围:[240,2160]之间4的倍数。 + :param hight: 视频高度(单位:像素)。该字段会逐渐废弃,请使用height字段。 - 编码为H.264的取值范围:[32,2160]之间2的倍数 。 - 编码为H.265的取值范围:[240,2160]之间4的倍数。 :type hight: int + :param height: 视频高度(单位:像素)。 - 编码为H.264的取值范围:[32,2160]之间2的倍数 。 - 编码为H.265的取值范围:[240,2160]之间4的倍数。 + :type height: int :param bit_rate: 视频平均码率。 :type bit_rate: int :param frame_rate: 帧率(单位:帧每秒)。 取值如下: - FRAMERATE_AUTO = 1, - FRAMERATE_10 = 2, - FRAMERATE_15 = 3, - FRAMERATE_2397 = 4, // 23.97 fps - FRAMERATE_24 = 5, - FRAMERATE_25 = 6, - FRAMERATE_2997 = 7, // 29.97 fps - FRAMERATE_30 = 8, - FRAMERATE_50 = 9, - FRAMERATE_60 = 10 默认值:1。 单位:帧每秒。 @@ -77,6 +81,7 @@ class MetaData: self._video_size = None self._width = None self._hight = None + self._height = None self._bit_rate = None self._frame_rate = None self._quality = None @@ -95,6 +100,8 @@ class MetaData: self.width = width if hight is not None: self.hight = hight + if height is not None: + self.height = height if bit_rate is not None: self.bit_rate = bit_rate if frame_rate is not None: @@ -218,7 +225,7 @@ class MetaData: def hight(self): """Gets the hight of this MetaData. - 视频高度(单位:像素)。 - 编码为H.264的取值范围:[32,2160]之间2的倍数 。 - 编码为H.265的取值范围:[240,2160]之间4的倍数。 + 视频高度(单位:像素)。该字段会逐渐废弃,请使用height字段。 - 编码为H.264的取值范围:[32,2160]之间2的倍数 。 - 编码为H.265的取值范围:[240,2160]之间4的倍数。 :return: The hight of this MetaData. :rtype: int @@ -229,13 +236,35 @@ class MetaData: def hight(self, hight): """Sets the hight of this MetaData. - 视频高度(单位:像素)。 - 编码为H.264的取值范围:[32,2160]之间2的倍数 。 - 编码为H.265的取值范围:[240,2160]之间4的倍数。 + 视频高度(单位:像素)。该字段会逐渐废弃,请使用height字段。 - 编码为H.264的取值范围:[32,2160]之间2的倍数 。 - 编码为H.265的取值范围:[240,2160]之间4的倍数。 :param hight: The hight of this MetaData. :type hight: int """ self._hight = hight + @property + def height(self): + """Gets the height of this MetaData. + + 视频高度(单位:像素)。 - 编码为H.264的取值范围:[32,2160]之间2的倍数 。 - 编码为H.265的取值范围:[240,2160]之间4的倍数。 + + :return: The height of this MetaData. + :rtype: int + """ + return self._height + + @height.setter + def height(self, height): + """Sets the height of this MetaData. + + 视频高度(单位:像素)。 - 编码为H.264的取值范围:[32,2160]之间2的倍数 。 - 编码为H.265的取值范围:[240,2160]之间4的倍数。 + + :param height: The height of this MetaData. + :type height: int + """ + self._height = height + @property def bit_rate(self): """Gets the bit_rate of this MetaData. diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_req.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_req.py index bd4727271..a7ef32487 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_req.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_asset_from_obs_req.py @@ -69,7 +69,7 @@ class PublishAssetFromObsReq: :type category_id: int :param tags: 视频标签。 单个标签不超过16个字节,最多不超过16个标签。 多个用逗号分隔,UTF8编码。 :type tags: str - :param auto_publish: 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + :param auto_publish: 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :type auto_publish: int :param template_group_name: 转码模板组名称。 若不为空,则使用指定的转码模板对上传的音视频进行转码,您可以在视频点播控制台配置转码模板,具体请参见[转码设置](https://support.huaweicloud.com/usermanual-vod/vod_01_0072.html)。 > 若同时设置了“**template_group_name**”和“**workflow_name**”字段,则“**template_group_name**”字段生效。 :type template_group_name: str @@ -257,7 +257,7 @@ class PublishAssetFromObsReq: def auto_publish(self): """Gets the auto_publish of this PublishAssetFromObsReq. - 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :return: The auto_publish of this PublishAssetFromObsReq. :rtype: int @@ -268,7 +268,7 @@ class PublishAssetFromObsReq: def auto_publish(self, auto_publish): """Sets the auto_publish of this PublishAssetFromObsReq. - 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :param auto_publish: The auto_publish of this PublishAssetFromObsReq. :type auto_publish: int diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/subtitle.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/subtitle.py index 0a38bbe78..44d9ce0c3 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/subtitle.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/subtitle.py @@ -20,6 +20,7 @@ class Subtitle: 'id': 'int', 'type': 'str', 'language': 'str', + 'name': 'str', 'md5': 'str', 'description': 'str' } @@ -28,11 +29,12 @@ class Subtitle: 'id': 'id', 'type': 'type', 'language': 'language', + 'name': 'name', 'md5': 'md5', 'description': 'description' } - def __init__(self, id=None, type=None, language=None, md5=None, description=None): + def __init__(self, id=None, type=None, language=None, name=None, md5=None, description=None): """Subtitle The model defined in huaweicloud sdk @@ -43,6 +45,8 @@ class Subtitle: :type type: str :param language: 字幕语言类型。 取值如下: - CN:表示中文字幕。 - EN:表示英文字幕。 :type language: str + :param name: subtitle name + :type name: str :param md5: 字幕文件的MD5值。 :type md5: str :param description: 字幕描述。 @@ -54,6 +58,7 @@ class Subtitle: self._id = None self._type = None self._language = None + self._name = None self._md5 = None self._description = None self.discriminator = None @@ -61,6 +66,8 @@ class Subtitle: self.id = id self.type = type self.language = language + if name is not None: + self.name = name if md5 is not None: self.md5 = md5 if description is not None: @@ -132,6 +139,28 @@ class Subtitle: """ self._language = language + @property + def name(self): + """Gets the name of this Subtitle. + + subtitle name + + :return: The name of this Subtitle. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Subtitle. + + subtitle name + + :param name: The name of this Subtitle. + :type name: str + """ + self._name = name + @property def md5(self): """Gets the md5 of this Subtitle. diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url.py index 1cd40fc8f..72452e01c 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/upload_meta_data_by_url.py @@ -65,7 +65,7 @@ class UploadMetaDataByUrl: :type category_id: int :param tags: 视频标签。 单个标签不超过16个字节,最多不超过16个标签。 多个用逗号分隔,UTF8编码。 :type tags: str - :param auto_publish: 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + :param auto_publish: 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :type auto_publish: int :param template_group_name: 转码模板组名称。 若不为空,则使用指定的转码模板对上传的音视频进行转码,您可以在视频点播控制台配置转码模板,具体请参见[转码设置](https://support.huaweicloud.com/usermanual-vod/vod_01_0072.html)。 >若同时设置了“**template_group_name**”和“**workflow_name**”字段,则“**template_group_name**”字段生效。 :type template_group_name: str @@ -258,7 +258,7 @@ class UploadMetaDataByUrl: def auto_publish(self): """Gets the auto_publish of this UploadMetaDataByUrl. - 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :return: The auto_publish of this UploadMetaDataByUrl. :rtype: int @@ -269,7 +269,7 @@ class UploadMetaDataByUrl: def auto_publish(self, auto_publish): """Sets the auto_publish of this UploadMetaDataByUrl. - 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :param auto_publish: The auto_publish of this UploadMetaDataByUrl. :type auto_publish: int diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/video_type_ref.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/video_type_ref.py index 03a77247a..283cd618c 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/video_type_ref.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/video_type_ref.py @@ -61,7 +61,7 @@ class VideoTypeRef: :type category_id: int :param tags: 视频标签。 单个标签不超过16个字节,最多不超过16个标签。 多个用逗号分隔,UTF8编码。 :type tags: str - :param auto_publish: 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + :param auto_publish: 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :type auto_publish: int :param template_group_name: 转码模板组名称。 若不为空,则使用指定的转码模板对上传的音视频进行转码,您可以在视频点播控制台配置转码模板,具体请参见[转码设置](https://support.huaweicloud.com/usermanual-vod/vod_01_0072.html)。 > 若同时设置了“**template_group_name**”和“**workflow_name**”字段,则“**template_group_name**”字段生效。 :type template_group_name: str @@ -230,7 +230,7 @@ class VideoTypeRef: def auto_publish(self): """Gets the auto_publish of this VideoTypeRef. - 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :return: The auto_publish of this VideoTypeRef. :rtype: int @@ -241,7 +241,7 @@ class VideoTypeRef: def auto_publish(self, auto_publish): """Sets the auto_publish of this VideoTypeRef. - 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:0。 + 是否自动发布。 取值如下: - 0:表示不自动发布。 - 1:表示自动发布。 默认值:1。 :param auto_publish: The auto_publish of this VideoTypeRef. :type auto_publish: int diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_async_client.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_async_client.py index bf04800cd..87e154907 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_async_client.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_async_client.py @@ -2964,7 +2964,7 @@ class VodAsyncClient(Client): def show_vod_statistics_async(self, request): """查询源站统计信息 - 查询点播源站的统计数据,包括流量、存储空间、转码时长。 + 查询点播源站的统计数据,包括存储空间、转码时长。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_client.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_client.py index 5abceea25..b411e3c07 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_client.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/vod_client.py @@ -2964,7 +2964,7 @@ class VodClient(Client): def show_vod_statistics(self, request): """查询源站统计信息 - 查询点播源站的统计数据,包括流量、存储空间、转码时长。 + 查询点播源站的统计数据,包括存储空间、转码时长。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index 501bc97af..37ac12cff 100644 --- a/huaweicloud-sdk-vod/setup.py +++ b/huaweicloud-sdk-vod/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvod" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 89dbd341a..81e117dd2 100644 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index 186bc2c3d..133986766 100644 --- a/huaweicloud-sdk-vpcep/setup.py +++ b/huaweicloud-sdk-vpcep/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpcep" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpn/requirements.txt b/huaweicloud-sdk-vpn/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-vpn/requirements.txt +++ b/huaweicloud-sdk-vpn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-vpn/setup.py b/huaweicloud-sdk-vpn/setup.py index 1159a99aa..89d1f9c72 100644 --- a/huaweicloud-sdk-vpn/setup.py +++ b/huaweicloud-sdk-vpn/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpn" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 2377e5afb..567de666e 100644 --- a/huaweicloud-sdk-waf/setup.py +++ b/huaweicloud-sdk-waf/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkwaf" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index 5f3d8b814..246596f95 100644 --- a/huaweicloud-sdk-workspace/setup.py +++ b/huaweicloud-sdk-workspace/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspace" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspaceapp/requirements.txt b/huaweicloud-sdk-workspaceapp/requirements.txt index e6666c3ca..71909c82b 100644 --- a/huaweicloud-sdk-workspaceapp/requirements.txt +++ b/huaweicloud-sdk-workspaceapp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.122 \ No newline at end of file +huaweicloudsdkcore >= 3.1.123 \ No newline at end of file diff --git a/huaweicloud-sdk-workspaceapp/setup.py b/huaweicloud-sdk-workspaceapp/setup.py index 974521473..e14835c00 100644 --- a/huaweicloud-sdk-workspaceapp/setup.py +++ b/huaweicloud-sdk-workspaceapp/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspaceapp" -VERSION = "3.1.122" +VERSION = "3.1.123" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.122"] +REQUIRES = ["huaweicloudsdkcore>=3.1.123"] OPTIONS = { 'bdist_wheel': {