diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dc006b4da..43a419c46f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,431 @@ +# 3.1.72 2023-12-14 + +### HuaweiCloud SDK BMS + +- _Features_ + - Support the API `DeleteBaremetalServer` +- _Bug Fix_ + - None +- _Change_ + - **CreateBareMetalServers** + - changes of request param + - `+ server.root_volume.volumetype: enum value [GPSSD]` + - `+ server.data_volumes.volumetype: enum value [GPSSD]` + +### HuaweiCloud SDK CAE + +- _Features_ + - Support the APIs `ShowMonitorSystem`, `CreateMonitorSystem`, `UpdateMonitorSystem` +- _Bug Fix_ + - None +- _Change_ + - **ListComponentConfigurations** + - changes of response param + - `+ items.data.spec.instrumentation` + - `+ items.data.spec.apm_application` + - `+ items.data.spec.type` + - `+ items.data.spec.app_name` + - `+ items.data.spec.instance_name` + - `+ items.data.spec.env_name` + - `- items.data.spec.image_pull_policy: enum value [Always,IfNotPresent]` + - **CreateComponentConfiguration** + - changes of request param + - `+ items.data.spec.instrumentation` + - `+ items.data.spec.apm_application` + - `+ items.data.spec.type` + - `+ items.data.spec.app_name` + - `+ items.data.spec.instance_name` + - `+ items.data.spec.env_name` + - `- items.data.spec.image_pull_policy: enum value [Always,IfNotPresent]` + +### HuaweiCloud SDK CES + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListAlarmTemplates** + - changes of request param + - `+ template_type: enum value [system_event,custom_event,system_custom_event]` + - **CreateAlarmTemplate** + - changes of request param + - `+ template_type` + - `+ policies.period: enum value [0]` + - **UpdateAlarmTemplate** + - changes of request param + - `+ policies.period: enum value [0]` + +### HuaweiCloud SDK CFW + +- _Features_ + - Support the APIs `CreateFirewall`, `ListJob`, `DeleteFirewall` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK CloudTable + +- _Features_ + - Support the API `CreateCloudTableCluster` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK CodeArtsPipeline + +- _Features_ + - Support the API `ShowPipelineDetail` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK Config + +- _Features_ + - Support the following APIs: + - `ListTrackedResources` + - `CountTrackedResources` + - `ListTrackedResourceTags` + - `CollectTrackedResourcesSummary` + - `ShowTrackedResourceDetail` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DLI + +- _Features_ + - Support the APIs `DeleteRouteFromEnhancedConnection`, `CreateRouteToEnhancedConnection` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DWS + +- _Features_ + - Support the following APIs: + - `ListLogicalClusterVolumes` + - `ResizeClusterWithExistedNodes` + - `RestartLogicalCluster` + - `ListTopoRings` + - `UpdateLogicalCluster` + - `DeleteLogicalCluster` + - `EnableLogicalCluster` + - `ListClusterNodes` + - `ConvertToLogicalCluster` + - `RestoreRedistribution` + - `StopRedistribution` + - `ListLogicalClusterTasks` + - `ListLogicalClusters` + - `CreateLogicalCluster` + - `DeleteClusterNodes` + - `ListLogicalClusterRings` + - `ListLtsLogs` + - `ListQueries` + - `ListTablesStatistic` + - `ShowQueryDetail` + - `DisableLtsLogs` + - `EnableLtsLogs` +- _Bug Fix_ + - None +- _Change_ + - **ListHostDisk** + - changes of request param + - `+ instance_id` + - changes of response param + - `+ instance_id` + +### HuaweiCloud SDK FunctionGraph + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowResInstanceInfo** + - changes of response param + - `+ resources.resource_detail.detailId` + - `- resources.resource_detail.resource_id` + - `- resources.resource_detail.func_urn` + - `- resources.resource_detail.func_name` + - `- resources.resource_detail.domain_id` + - `- resources.resource_detail.namespace` + - `- resources.resource_detail.project_name` + - `- resources.resource_detail.package` + - `- resources.resource_detail.runtime` + - `- resources.resource_detail.timeout` + - `- resources.resource_detail.handler` + - `- resources.resource_detail.memory_size` + - `- resources.resource_detail.gpu_memory` + - `- resources.resource_detail.cpu` + - `- resources.resource_detail.code_type` + - `- resources.resource_detail.code_url` + - `- resources.resource_detail.code_filename` + - `- resources.resource_detail.code_size` + - `- resources.resource_detail.user_data` + - `- resources.resource_detail.encrypted_user_data` + - `- resources.resource_detail.digest` + - `- resources.resource_detail.version` + - `- resources.resource_detail.image_name` + - `- resources.resource_detail.xrole` + - `- resources.resource_detail.app_xrole` + - `- resources.resource_detail.description` + - `- resources.resource_detail.last_modified` + - `- resources.resource_detail.func_vpc_id` + - `- resources.resource_detail.strategy_config` + - `- resources.resource_detail.extend_config` + - `- resources.resource_detail.initializer_handler` + - `- resources.resource_detail.initializer_timeout` + - `- resources.resource_detail.pre_stop_handler` + - `- resources.resource_detail.pre_stop_timeout` + - `- resources.resource_detail.enterprise_project_id` + - `- resources.resource_detail.long_time` + - `- resources.resource_detail.log_group_id` + - `- resources.resource_detail.log_stream_id` + - `- resources.resource_detail.type` + - `- resources.resource_detail.fail_count` + - `- resources.resource_detail.is_bridge_function` + - `- resources.resource_detail.bind_bridge_funcUrns` + - `* resources.resource_detail: object -> object` + +### HuaweiCloud SDK IoTDA + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateAsyncCommand** + - changes of request param + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **ShowAsyncDeviceCommand** + - changes of request param + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **BroadcastMessage** + - changes of request param + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **CreateCommand** + - changes of request param + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **ListProperties** + - changes of request param + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - changes of response param + - `+ request_id` + - **UpdateProperties** + - changes of request param + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - changes of response param + - `+ request_id` + - **CloseDeviceTunnel** + - changes of request param + - `+ Sp-Auth-Token` + - **DeleteDeviceTunnel** + - changes of request param + - `+ Sp-Auth-Token` + - **ShowDeviceTunnel** + - changes of request param + - `+ Sp-Auth-Token` + - **AddTunnel** + - changes of request param + - `+ Sp-Auth-Token` + - **ListDeviceTunnels** + - changes of request param + - `+ Sp-Auth-Token` + - **ShowDeviceMessage** + - changes of request param + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **CreateMessage** + - changes of request param + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **ListDeviceMessages** + - changes of request param + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + +### HuaweiCloud SDK Live + +- _Features_ + - Support the following APIs: + - `ListDelayConfig` + - `UpdateDelayConfig` + - `ShowPullSourcesConfig` + - `UpdatePullSourcesConfig` + - `ListGeoBlockingConfig` + - `UpdateGeoBlockingConfig` + - `CreateUrlAuthchain` + - `ListIpAuthList` + - `UpdateIpAuthList` + - `ListPublishTemplate` + - `UpdatePublishTemplate` + - `DeletePublishTemplate` +- _Bug Fix_ + - None +- _Change_ + - **ListRecordContents** + - changes of request param + - `+ record_type: enum value [PLAN_RECORD,ON_DEMAND_RECORD]` + - changes of response param + - `- record_contents.record_type: enum value [PLAN_RECORD,ON_DEMAND_RECORD]` + +### HuaweiCloud SDK LTS + +- _Features_ + - Support the API `CreateAgencyAccess` +- _Bug Fix_ + - None +- _Change_ + - **ListSqlAlarmRules** + - changes of response param + - `+ sql_alarm_rules.is_css_sql` + - `+ sql_alarm_rules.notification_frequency` + - `+ sql_alarm_rules.alarm_action_rule_name` + - `+ sql_alarm_rules.status: enum value [RUNNING 启用,STOPPING 停止]` + - `- sql_alarm_rules.status: enum value [RUNNING,STOPPING]` + - `* sql_alarm_rules.frequency: object -> object` + - **UpdateSqlAlarmRule** + - changes of request param + - `+ is_css_sql` + - `+ notification_frequency` + - `+ alarm_action_rule_name` + - `* frequency: object -> object` + - changes of response param + - `+ is_css_sql` + - `+ alarm_action_rule_name` + - `+ notification_frequency` + - `+ language: enum value [zh-cn,en-us]` + - `* frequency: object -> object` + - **CreateSqlAlarmRule** + - changes of request param + - `+ is_css_sql` + - `+ notification_frequency` + - `+ alarm_action_rule_name` + - `* frequency: object -> object` + - **ListKeywordsAlarmRules** + - changes of response param + - `+ keywords_alarm_rules.notification_frequency` + - `+ keywords_alarm_rules.alarm_action_rule_name` + - `+ keywords_alarm_rules.status: enum value [RUNNING 启用,STOPPING 停止]` + - `- keywords_alarm_rules.status: enum value [RUNNING,STOPPING]` + - **UpdateKeywordsAlarmRule** + - changes of request param + - `+ notification_frequency` + - `+ alarm_action_rule_name` + - changes of response param + - `+ alarm_action_rule_name` + - `+ notification_frequency` + - `+ language: enum value [zh-cn,en-us]` + - `- keywords_requests.search_time_range_unit: enum value [minute]` + - `* keywords_requests: list -> list` + - `* frequency: object -> object` + - **CreateKeywordsAlarmRule** + - changes of request param + - `+ notification_frequency` + - `+ alarm_action_rule_name` + - `+ keywords_alarm_level: enum value [Critical]` + - `- keywords_alarm_level: enum value [CRITICAL]` + +### HuaweiCloud SDK MRS + +- _Features_ + - Support the API `ShowMrsVersionMetadata`, `SwitchClusterTags`, `ShowTagStatus`, `ShowTagQuota` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK NAT + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateNatGatewayTag** + - changes of request param + - `+ tag.key` + - `+ tag.value` + - `* tag: object -> object` + +### HuaweiCloud SDK RDS + +- _Features_ + - Support the APIs `ListLogLtsConfigs`, `SetLogLtsConfigs`, `DeleteLogLtsConfigs` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK RocketMQ + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateRocketMqMigrationTask** + - changes of request param + - `+ topicConfigTable` + - `+ subscriptionGroupTable` + - `+ vhosts` + - `+ queues` + - `+ exchanges` + - `+ bindings` + - `* body: map -> object` + +### HuaweiCloud SDK SecMaster + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListAlerts** + - changes of request param + - `* condition.conditions.data: list -> list` + - `* condition.logics: list -> list` + - **ListIncidents** + - changes of request param + - `* condition.conditions.data: list -> list` + - `* condition.logics: list -> list` + - **ListIndicators** + - changes of request param + - `* condition: string -> object` + - **ListDataobjectRelations** + - changes of request param + - `* condition.conditions.data: list -> list` + - `* condition.logics: list -> list` + +### HuaweiCloud SDK SMS + +- _Features_ + - Support the APIs `ShowConsistencyResult`, `UpdateConsistencyResult` +- _Bug Fix_ + - None +- _Change_ + - **UpdateTaskStatus** + - changes of request param + - `+ is_need_consistency_check` + - **ListServers** + - changes of request param + - `+ is_consistency_result_exist` + - changes of response param + - `+ source_servers.is_consistency_result_exist` + # 3.1.71 2023-12-07 ### HuaweiCloud SDK AOS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 402904ca62..be64747d33 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,431 @@ +# 3.1.72 2023-12-14 + +### HuaweiCloud SDK BMS + +- _新增特性_ + - 支持接口`DeleteBaremetalServer` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateBareMetalServers** + - 请求参数变更 + - `+ server.root_volume.volumetype: enum value [GPSSD]` + - `+ server.data_volumes.volumetype: enum value [GPSSD]` + +### HuaweiCloud SDK CAE + +- _新增特性_ + - 支持接口`ShowMonitorSystem`、`CreateMonitorSystem`、`UpdateMonitorSystem` +- _解决问题_ + - 无 +- _特性变更_ + - **ListComponentConfigurations** + - 响应参数变更 + - `+ items.data.spec.instrumentation` + - `+ items.data.spec.apm_application` + - `+ items.data.spec.type` + - `+ items.data.spec.app_name` + - `+ items.data.spec.instance_name` + - `+ items.data.spec.env_name` + - `- items.data.spec.image_pull_policy: enum value [Always,IfNotPresent]` + - **CreateComponentConfiguration** + - 请求参数变更 + - `+ items.data.spec.instrumentation` + - `+ items.data.spec.apm_application` + - `+ items.data.spec.type` + - `+ items.data.spec.app_name` + - `+ items.data.spec.instance_name` + - `+ items.data.spec.env_name` + - `- items.data.spec.image_pull_policy: enum value [Always,IfNotPresent]` + +### HuaweiCloud SDK CES + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListAlarmTemplates** + - 请求参数变更 + - `+ template_type: enum value [system_event,custom_event,system_custom_event]` + - **CreateAlarmTemplate** + - 请求参数变更 + - `+ template_type` + - `+ policies.period: enum value [0]` + - **UpdateAlarmTemplate** + - 请求参数变更 + - `+ policies.period: enum value [0]` + +### HuaweiCloud SDK CFW + +- _新增特性_ + - 支持接口`CreateFirewall`、`ListJob`、`DeleteFirewall` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK CloudTable + +- _新增特性_ + - 支持接口`CreateCloudTableCluster` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK CodeArtsPipeline + +- _新增特性_ + - 支持接口`ShowPipelineDetail` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK Config + +- _新增特性_ + - 支持以下接口: + - `ListTrackedResources` + - `CountTrackedResources` + - `ListTrackedResourceTags` + - `CollectTrackedResourcesSummary` + - `ShowTrackedResourceDetail` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DLI + +- _新增特性_ + - 支持接口`DeleteRouteFromEnhancedConnection`、`CreateRouteToEnhancedConnection` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DWS + +- _新增特性_ + - 支持以下接口: + - `ListLogicalClusterVolumes` + - `ResizeClusterWithExistedNodes` + - `RestartLogicalCluster` + - `ListTopoRings` + - `UpdateLogicalCluster` + - `DeleteLogicalCluster` + - `EnableLogicalCluster` + - `ListClusterNodes` + - `ConvertToLogicalCluster` + - `RestoreRedistribution` + - `StopRedistribution` + - `ListLogicalClusterTasks` + - `ListLogicalClusters` + - `CreateLogicalCluster` + - `DeleteClusterNodes` + - `ListLogicalClusterRings` + - `ListLtsLogs` + - `ListQueries` + - `ListTablesStatistic` + - `ShowQueryDetail` + - `DisableLtsLogs` + - `EnableLtsLogs` +- _解决问题_ + - 无 +- _特性变更_ + - **ListHostDisk** + - 请求参数变更 + - `+ instance_id` + - 响应参数变更 + - `+ instance_id` + +### HuaweiCloud SDK FunctionGraph + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowResInstanceInfo** + - 响应参数变更 + - `+ resources.resource_detail.detailId` + - `- resources.resource_detail.resource_id` + - `- resources.resource_detail.func_urn` + - `- resources.resource_detail.func_name` + - `- resources.resource_detail.domain_id` + - `- resources.resource_detail.namespace` + - `- resources.resource_detail.project_name` + - `- resources.resource_detail.package` + - `- resources.resource_detail.runtime` + - `- resources.resource_detail.timeout` + - `- resources.resource_detail.handler` + - `- resources.resource_detail.memory_size` + - `- resources.resource_detail.gpu_memory` + - `- resources.resource_detail.cpu` + - `- resources.resource_detail.code_type` + - `- resources.resource_detail.code_url` + - `- resources.resource_detail.code_filename` + - `- resources.resource_detail.code_size` + - `- resources.resource_detail.user_data` + - `- resources.resource_detail.encrypted_user_data` + - `- resources.resource_detail.digest` + - `- resources.resource_detail.version` + - `- resources.resource_detail.image_name` + - `- resources.resource_detail.xrole` + - `- resources.resource_detail.app_xrole` + - `- resources.resource_detail.description` + - `- resources.resource_detail.last_modified` + - `- resources.resource_detail.func_vpc_id` + - `- resources.resource_detail.strategy_config` + - `- resources.resource_detail.extend_config` + - `- resources.resource_detail.initializer_handler` + - `- resources.resource_detail.initializer_timeout` + - `- resources.resource_detail.pre_stop_handler` + - `- resources.resource_detail.pre_stop_timeout` + - `- resources.resource_detail.enterprise_project_id` + - `- resources.resource_detail.long_time` + - `- resources.resource_detail.log_group_id` + - `- resources.resource_detail.log_stream_id` + - `- resources.resource_detail.type` + - `- resources.resource_detail.fail_count` + - `- resources.resource_detail.is_bridge_function` + - `- resources.resource_detail.bind_bridge_funcUrns` + - `* resources.resource_detail: object -> object` + +### HuaweiCloud SDK IoTDA + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateAsyncCommand** + - 请求参数变更 + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **ShowAsyncDeviceCommand** + - 请求参数变更 + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **BroadcastMessage** + - 请求参数变更 + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **CreateCommand** + - 请求参数变更 + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **ListProperties** + - 请求参数变更 + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - 响应参数变更 + - `+ request_id` + - **UpdateProperties** + - 请求参数变更 + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - 响应参数变更 + - `+ request_id` + - **CloseDeviceTunnel** + - 请求参数变更 + - `+ Sp-Auth-Token` + - **DeleteDeviceTunnel** + - 请求参数变更 + - `+ Sp-Auth-Token` + - **ShowDeviceTunnel** + - 请求参数变更 + - `+ Sp-Auth-Token` + - **AddTunnel** + - 请求参数变更 + - `+ Sp-Auth-Token` + - **ListDeviceTunnels** + - 请求参数变更 + - `+ Sp-Auth-Token` + - **ShowDeviceMessage** + - 请求参数变更 + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **CreateMessage** + - 请求参数变更 + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + - **ListDeviceMessages** + - 请求参数变更 + - `+ Stage-Auth-Token` + - `+ Sp-Auth-Token` + +### HuaweiCloud SDK Live + +- _新增特性_ + - 支持以下接口: + - `ListDelayConfig` + - `UpdateDelayConfig` + - `ShowPullSourcesConfig` + - `UpdatePullSourcesConfig` + - `ListGeoBlockingConfig` + - `UpdateGeoBlockingConfig` + - `CreateUrlAuthchain` + - `ListIpAuthList` + - `UpdateIpAuthList` + - `ListPublishTemplate` + - `UpdatePublishTemplate` + - `DeletePublishTemplate` +- _解决问题_ + - 无 +- _特性变更_ + - **ListRecordContents** + - 请求参数变更 + - `+ record_type: enum value [PLAN_RECORD,ON_DEMAND_RECORD]` + - 响应参数变更 + - `- record_contents.record_type: enum value [PLAN_RECORD,ON_DEMAND_RECORD]` + +### HuaweiCloud SDK LTS + +- _新增特性_ + - 支持接口`CreateAgencyAccess` +- _解决问题_ + - 无 +- _特性变更_ + - **ListSqlAlarmRules** + - 响应参数变更 + - `+ sql_alarm_rules.is_css_sql` + - `+ sql_alarm_rules.notification_frequency` + - `+ sql_alarm_rules.alarm_action_rule_name` + - `+ sql_alarm_rules.status: enum value [RUNNING 启用,STOPPING 停止]` + - `- sql_alarm_rules.status: enum value [RUNNING,STOPPING]` + - `* sql_alarm_rules.frequency: object -> object` + - **UpdateSqlAlarmRule** + - 请求参数变更 + - `+ is_css_sql` + - `+ notification_frequency` + - `+ alarm_action_rule_name` + - `* frequency: object -> object` + - 响应参数变更 + - `+ is_css_sql` + - `+ alarm_action_rule_name` + - `+ notification_frequency` + - `+ language: enum value [zh-cn,en-us]` + - `* frequency: object -> object` + - **CreateSqlAlarmRule** + - 请求参数变更 + - `+ is_css_sql` + - `+ notification_frequency` + - `+ alarm_action_rule_name` + - `* frequency: object -> object` + - **ListKeywordsAlarmRules** + - 响应参数变更 + - `+ keywords_alarm_rules.notification_frequency` + - `+ keywords_alarm_rules.alarm_action_rule_name` + - `+ keywords_alarm_rules.status: enum value [RUNNING 启用,STOPPING 停止]` + - `- keywords_alarm_rules.status: enum value [RUNNING,STOPPING]` + - **UpdateKeywordsAlarmRule** + - 请求参数变更 + - `+ notification_frequency` + - `+ alarm_action_rule_name` + - 响应参数变更 + - `+ alarm_action_rule_name` + - `+ notification_frequency` + - `+ language: enum value [zh-cn,en-us]` + - `- keywords_requests.search_time_range_unit: enum value [minute]` + - `* keywords_requests: list -> list` + - `* frequency: object -> object` + - **CreateKeywordsAlarmRule** + - 请求参数变更 + - `+ notification_frequency` + - `+ alarm_action_rule_name` + - `+ keywords_alarm_level: enum value [Critical]` + - `- keywords_alarm_level: enum value [CRITICAL]` + +### HuaweiCloud SDK MRS + +- _新增特性_ + - 支持接口`ShowMrsVersionMetadata`、`SwitchClusterTags`、`ShowTagStatus`、`ShowTagQuota` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK NAT + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateNatGatewayTag** + - 请求参数变更 + - `+ tag.key` + - `+ tag.value` + - `* tag: object -> object` + +### HuaweiCloud SDK RDS + +- _新增特性_ + - 支持接口`ListLogLtsConfigs`、`SetLogLtsConfigs`、`DeleteLogLtsConfigs` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK RocketMQ + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateRocketMqMigrationTask** + - 请求参数变更 + - `+ topicConfigTable` + - `+ subscriptionGroupTable` + - `+ vhosts` + - `+ queues` + - `+ exchanges` + - `+ bindings` + - `* body: map -> object` + +### HuaweiCloud SDK SecMaster + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListAlerts** + - 请求参数变更 + - `* condition.conditions.data: list -> list` + - `* condition.logics: list -> list` + - **ListIncidents** + - 请求参数变更 + - `* condition.conditions.data: list -> list` + - `* condition.logics: list -> list` + - **ListIndicators** + - 请求参数变更 + - `* condition: string -> object` + - **ListDataobjectRelations** + - 请求参数变更 + - `* condition.conditions.data: list -> list` + - `* condition.logics: list -> list` + +### HuaweiCloud SDK SMS + +- _新增特性_ + - 支持接口`ShowConsistencyResult`、`UpdateConsistencyResult` +- _解决问题_ + - 无 +- _特性变更_ + - **UpdateTaskStatus** + - 请求参数变更 + - `+ is_need_consistency_check` + - **ListServers** + - 请求参数变更 + - `+ is_consistency_result_exist` + - 响应参数变更 + - `+ source_servers.is_consistency_result_exist` + # 3.1.71 2023-12-07 ### HuaweiCloud SDK AOS diff --git a/VERSION b/VERSION index d62b4edd94..1a757e98f7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.71 +3.1.72 diff --git a/huaweicloud-sdk-aad/requirements.txt b/huaweicloud-sdk-aad/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-aad/requirements.txt +++ b/huaweicloud-sdk-aad/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-aad/setup.py b/huaweicloud-sdk-aad/setup.py index 9116d14160..14053ce0f1 100644 --- a/huaweicloud-sdk-aad/setup.py +++ b/huaweicloud-sdk-aad/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaad" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index 9bb6d698a8..74e0efcc37 100644 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,157 +1,157 @@ -huaweicloudsdkcore == 3.1.71 -huaweicloudsdkaad == 3.1.71 -huaweicloudsdkantiddos == 3.1.71 -huaweicloudsdkaom == 3.1.71 -huaweicloudsdkaos == 3.1.71 -huaweicloudsdkapig == 3.1.71 -huaweicloudsdkapm == 3.1.71 -huaweicloudsdkas == 3.1.71 -huaweicloudsdkasm == 3.1.71 -huaweicloudsdkbcs == 3.1.71 -huaweicloudsdkbms == 3.1.71 -huaweicloudsdkbss == 3.1.71 -huaweicloudsdkbssintl == 3.1.71 -huaweicloudsdkcae == 3.1.71 -huaweicloudsdkcampusgo == 3.1.71 -huaweicloudsdkcbh == 3.1.71 -huaweicloudsdkcbr == 3.1.71 -huaweicloudsdkcbs == 3.1.71 -huaweicloudsdkcc == 3.1.71 -huaweicloudsdkcce == 3.1.71 -huaweicloudsdkccm == 3.1.71 -huaweicloudsdkcdm == 3.1.71 -huaweicloudsdkcdn == 3.1.71 -huaweicloudsdkces == 3.1.71 -huaweicloudsdkcfw == 3.1.71 -huaweicloudsdkcgs == 3.1.71 -huaweicloudsdkclassroom == 3.1.71 -huaweicloudsdkcloudide == 3.1.71 -huaweicloudsdkcloudpond == 3.1.71 -huaweicloudsdkcloudrtc == 3.1.71 -huaweicloudsdkcloudtable == 3.1.71 -huaweicloudsdkcloudtest == 3.1.71 -huaweicloudsdkcodeartsartifact == 3.1.71 -huaweicloudsdkcodeartsbuild == 3.1.71 -huaweicloudsdkcodeartscheck == 3.1.71 -huaweicloudsdkcodeartsdeploy == 3.1.71 -huaweicloudsdkcodeartsinspector == 3.1.71 -huaweicloudsdkcodeartspipeline == 3.1.71 -huaweicloudsdkcodecraft == 3.1.71 -huaweicloudsdkcodehub == 3.1.71 -huaweicloudsdkconfig == 3.1.71 -huaweicloudsdkcph == 3.1.71 -huaweicloudsdkcpts == 3.1.71 -huaweicloudsdkcse == 3.1.71 -huaweicloudsdkcsms == 3.1.71 -huaweicloudsdkcss == 3.1.71 -huaweicloudsdkcts == 3.1.71 -huaweicloudsdkdas == 3.1.71 -huaweicloudsdkdataartsstudio == 3.1.71 -huaweicloudsdkdbss == 3.1.71 -huaweicloudsdkdc == 3.1.71 -huaweicloudsdkdcs == 3.1.71 -huaweicloudsdkddm == 3.1.71 -huaweicloudsdkdds == 3.1.71 -huaweicloudsdkdeh == 3.1.71 -huaweicloudsdkdevsecurity == 3.1.71 -huaweicloudsdkdevstar == 3.1.71 -huaweicloudsdkdgc == 3.1.71 -huaweicloudsdkdis == 3.1.71 -huaweicloudsdkdlf == 3.1.71 -huaweicloudsdkdli == 3.1.71 -huaweicloudsdkdns == 3.1.71 -huaweicloudsdkdris == 3.1.71 -huaweicloudsdkdrs == 3.1.71 -huaweicloudsdkdsc == 3.1.71 -huaweicloudsdkdwr == 3.1.71 -huaweicloudsdkdws == 3.1.71 -huaweicloudsdkec == 3.1.71 -huaweicloudsdkecs == 3.1.71 -huaweicloudsdkedgesec == 3.1.71 -huaweicloudsdkeg == 3.1.71 -huaweicloudsdkeihealth == 3.1.71 -huaweicloudsdkeip == 3.1.71 -huaweicloudsdkelb == 3.1.71 -huaweicloudsdkeps == 3.1.71 -huaweicloudsdker == 3.1.71 -huaweicloudsdkevs == 3.1.71 -huaweicloudsdkfrs == 3.1.71 -huaweicloudsdkfunctiongraph == 3.1.71 -huaweicloudsdkga == 3.1.71 -huaweicloudsdkgaussdb == 3.1.71 -huaweicloudsdkgaussdbfornosql == 3.1.71 -huaweicloudsdkgaussdbforopengauss == 3.1.71 -huaweicloudsdkges == 3.1.71 -huaweicloudsdkgsl == 3.1.71 -huaweicloudsdkhilens == 3.1.71 -huaweicloudsdkhss == 3.1.71 -huaweicloudsdkiam == 3.1.71 -huaweicloudsdkidentitycenter == 3.1.71 -huaweicloudsdkidentitycenterstore == 3.1.71 -huaweicloudsdkidme == 3.1.71 -huaweicloudsdkiec == 3.1.71 -huaweicloudsdkief == 3.1.71 -huaweicloudsdkimage == 3.1.71 -huaweicloudsdkimagesearch == 3.1.71 -huaweicloudsdkims == 3.1.71 -huaweicloudsdkiotanalytics == 3.1.71 -huaweicloudsdkiotda == 3.1.71 -huaweicloudsdkiotedge == 3.1.71 -huaweicloudsdkivs == 3.1.71 -huaweicloudsdkkafka == 3.1.71 -huaweicloudsdkkms == 3.1.71 -huaweicloudsdkkoomessage == 3.1.71 -huaweicloudsdkkps == 3.1.71 -huaweicloudsdklakeformation == 3.1.71 -huaweicloudsdklive == 3.1.71 -huaweicloudsdklts == 3.1.71 -huaweicloudsdkmapds == 3.1.71 -huaweicloudsdkmas == 3.1.71 -huaweicloudsdkmeeting == 3.1.71 -huaweicloudsdkmetastudio == 3.1.71 -huaweicloudsdkmoderation == 3.1.71 -huaweicloudsdkmpc == 3.1.71 -huaweicloudsdkmrs == 3.1.71 -huaweicloudsdkmsgsms == 3.1.71 -huaweicloudsdkmssi == 3.1.71 -huaweicloudsdknat == 3.1.71 -huaweicloudsdknlp == 3.1.71 -huaweicloudsdkocr == 3.1.71 -huaweicloudsdkoctopus == 3.1.71 -huaweicloudsdkoms == 3.1.71 -huaweicloudsdkoptverse == 3.1.71 -huaweicloudsdkorganizations == 3.1.71 -huaweicloudsdkoroas == 3.1.71 -huaweicloudsdkosm == 3.1.71 -huaweicloudsdkpangulargemodels == 3.1.71 -huaweicloudsdkprojectman == 3.1.71 -huaweicloudsdkrabbitmq == 3.1.71 -huaweicloudsdkram == 3.1.71 -huaweicloudsdkrds == 3.1.71 -huaweicloudsdkres == 3.1.71 -huaweicloudsdkrgc == 3.1.71 -huaweicloudsdkrms == 3.1.71 -huaweicloudsdkrocketmq == 3.1.71 -huaweicloudsdkroma == 3.1.71 -huaweicloudsdksa == 3.1.71 -huaweicloudsdkscm == 3.1.71 -huaweicloudsdksdrs == 3.1.71 -huaweicloudsdksecmaster == 3.1.71 -huaweicloudsdkservicestage == 3.1.71 -huaweicloudsdksfsturbo == 3.1.71 -huaweicloudsdksis == 3.1.71 -huaweicloudsdksmn == 3.1.71 -huaweicloudsdksms == 3.1.71 -huaweicloudsdkswr == 3.1.71 -huaweicloudsdktics == 3.1.71 -huaweicloudsdktms == 3.1.71 -huaweicloudsdkugo == 3.1.71 -huaweicloudsdkvas == 3.1.71 -huaweicloudsdkvcm == 3.1.71 -huaweicloudsdkvod == 3.1.71 -huaweicloudsdkvpc == 3.1.71 -huaweicloudsdkvpcep == 3.1.71 -huaweicloudsdkvpn == 3.1.71 -huaweicloudsdkwaf == 3.1.71 -huaweicloudsdkworkspace == 3.1.71 -huaweicloudsdkworkspaceapp == 3.1.71 +huaweicloudsdkcore == 3.1.72 +huaweicloudsdkaad == 3.1.72 +huaweicloudsdkantiddos == 3.1.72 +huaweicloudsdkaom == 3.1.72 +huaweicloudsdkaos == 3.1.72 +huaweicloudsdkapig == 3.1.72 +huaweicloudsdkapm == 3.1.72 +huaweicloudsdkas == 3.1.72 +huaweicloudsdkasm == 3.1.72 +huaweicloudsdkbcs == 3.1.72 +huaweicloudsdkbms == 3.1.72 +huaweicloudsdkbss == 3.1.72 +huaweicloudsdkbssintl == 3.1.72 +huaweicloudsdkcae == 3.1.72 +huaweicloudsdkcampusgo == 3.1.72 +huaweicloudsdkcbh == 3.1.72 +huaweicloudsdkcbr == 3.1.72 +huaweicloudsdkcbs == 3.1.72 +huaweicloudsdkcc == 3.1.72 +huaweicloudsdkcce == 3.1.72 +huaweicloudsdkccm == 3.1.72 +huaweicloudsdkcdm == 3.1.72 +huaweicloudsdkcdn == 3.1.72 +huaweicloudsdkces == 3.1.72 +huaweicloudsdkcfw == 3.1.72 +huaweicloudsdkcgs == 3.1.72 +huaweicloudsdkclassroom == 3.1.72 +huaweicloudsdkcloudide == 3.1.72 +huaweicloudsdkcloudpond == 3.1.72 +huaweicloudsdkcloudrtc == 3.1.72 +huaweicloudsdkcloudtable == 3.1.72 +huaweicloudsdkcloudtest == 3.1.72 +huaweicloudsdkcodeartsartifact == 3.1.72 +huaweicloudsdkcodeartsbuild == 3.1.72 +huaweicloudsdkcodeartscheck == 3.1.72 +huaweicloudsdkcodeartsdeploy == 3.1.72 +huaweicloudsdkcodeartsinspector == 3.1.72 +huaweicloudsdkcodeartspipeline == 3.1.72 +huaweicloudsdkcodecraft == 3.1.72 +huaweicloudsdkcodehub == 3.1.72 +huaweicloudsdkconfig == 3.1.72 +huaweicloudsdkcph == 3.1.72 +huaweicloudsdkcpts == 3.1.72 +huaweicloudsdkcse == 3.1.72 +huaweicloudsdkcsms == 3.1.72 +huaweicloudsdkcss == 3.1.72 +huaweicloudsdkcts == 3.1.72 +huaweicloudsdkdas == 3.1.72 +huaweicloudsdkdataartsstudio == 3.1.72 +huaweicloudsdkdbss == 3.1.72 +huaweicloudsdkdc == 3.1.72 +huaweicloudsdkdcs == 3.1.72 +huaweicloudsdkddm == 3.1.72 +huaweicloudsdkdds == 3.1.72 +huaweicloudsdkdeh == 3.1.72 +huaweicloudsdkdevsecurity == 3.1.72 +huaweicloudsdkdevstar == 3.1.72 +huaweicloudsdkdgc == 3.1.72 +huaweicloudsdkdis == 3.1.72 +huaweicloudsdkdlf == 3.1.72 +huaweicloudsdkdli == 3.1.72 +huaweicloudsdkdns == 3.1.72 +huaweicloudsdkdris == 3.1.72 +huaweicloudsdkdrs == 3.1.72 +huaweicloudsdkdsc == 3.1.72 +huaweicloudsdkdwr == 3.1.72 +huaweicloudsdkdws == 3.1.72 +huaweicloudsdkec == 3.1.72 +huaweicloudsdkecs == 3.1.72 +huaweicloudsdkedgesec == 3.1.72 +huaweicloudsdkeg == 3.1.72 +huaweicloudsdkeihealth == 3.1.72 +huaweicloudsdkeip == 3.1.72 +huaweicloudsdkelb == 3.1.72 +huaweicloudsdkeps == 3.1.72 +huaweicloudsdker == 3.1.72 +huaweicloudsdkevs == 3.1.72 +huaweicloudsdkfrs == 3.1.72 +huaweicloudsdkfunctiongraph == 3.1.72 +huaweicloudsdkga == 3.1.72 +huaweicloudsdkgaussdb == 3.1.72 +huaweicloudsdkgaussdbfornosql == 3.1.72 +huaweicloudsdkgaussdbforopengauss == 3.1.72 +huaweicloudsdkges == 3.1.72 +huaweicloudsdkgsl == 3.1.72 +huaweicloudsdkhilens == 3.1.72 +huaweicloudsdkhss == 3.1.72 +huaweicloudsdkiam == 3.1.72 +huaweicloudsdkidentitycenter == 3.1.72 +huaweicloudsdkidentitycenterstore == 3.1.72 +huaweicloudsdkidme == 3.1.72 +huaweicloudsdkiec == 3.1.72 +huaweicloudsdkief == 3.1.72 +huaweicloudsdkimage == 3.1.72 +huaweicloudsdkimagesearch == 3.1.72 +huaweicloudsdkims == 3.1.72 +huaweicloudsdkiotanalytics == 3.1.72 +huaweicloudsdkiotda == 3.1.72 +huaweicloudsdkiotedge == 3.1.72 +huaweicloudsdkivs == 3.1.72 +huaweicloudsdkkafka == 3.1.72 +huaweicloudsdkkms == 3.1.72 +huaweicloudsdkkoomessage == 3.1.72 +huaweicloudsdkkps == 3.1.72 +huaweicloudsdklakeformation == 3.1.72 +huaweicloudsdklive == 3.1.72 +huaweicloudsdklts == 3.1.72 +huaweicloudsdkmapds == 3.1.72 +huaweicloudsdkmas == 3.1.72 +huaweicloudsdkmeeting == 3.1.72 +huaweicloudsdkmetastudio == 3.1.72 +huaweicloudsdkmoderation == 3.1.72 +huaweicloudsdkmpc == 3.1.72 +huaweicloudsdkmrs == 3.1.72 +huaweicloudsdkmsgsms == 3.1.72 +huaweicloudsdkmssi == 3.1.72 +huaweicloudsdknat == 3.1.72 +huaweicloudsdknlp == 3.1.72 +huaweicloudsdkocr == 3.1.72 +huaweicloudsdkoctopus == 3.1.72 +huaweicloudsdkoms == 3.1.72 +huaweicloudsdkoptverse == 3.1.72 +huaweicloudsdkorganizations == 3.1.72 +huaweicloudsdkoroas == 3.1.72 +huaweicloudsdkosm == 3.1.72 +huaweicloudsdkpangulargemodels == 3.1.72 +huaweicloudsdkprojectman == 3.1.72 +huaweicloudsdkrabbitmq == 3.1.72 +huaweicloudsdkram == 3.1.72 +huaweicloudsdkrds == 3.1.72 +huaweicloudsdkres == 3.1.72 +huaweicloudsdkrgc == 3.1.72 +huaweicloudsdkrms == 3.1.72 +huaweicloudsdkrocketmq == 3.1.72 +huaweicloudsdkroma == 3.1.72 +huaweicloudsdksa == 3.1.72 +huaweicloudsdkscm == 3.1.72 +huaweicloudsdksdrs == 3.1.72 +huaweicloudsdksecmaster == 3.1.72 +huaweicloudsdkservicestage == 3.1.72 +huaweicloudsdksfsturbo == 3.1.72 +huaweicloudsdksis == 3.1.72 +huaweicloudsdksmn == 3.1.72 +huaweicloudsdksms == 3.1.72 +huaweicloudsdkswr == 3.1.72 +huaweicloudsdktics == 3.1.72 +huaweicloudsdktms == 3.1.72 +huaweicloudsdkugo == 3.1.72 +huaweicloudsdkvas == 3.1.72 +huaweicloudsdkvcm == 3.1.72 +huaweicloudsdkvod == 3.1.72 +huaweicloudsdkvpc == 3.1.72 +huaweicloudsdkvpcep == 3.1.72 +huaweicloudsdkvpn == 3.1.72 +huaweicloudsdkwaf == 3.1.72 +huaweicloudsdkworkspace == 3.1.72 +huaweicloudsdkworkspaceapp == 3.1.72 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index 755a586689..f19a03c200 100644 --- a/huaweicloud-sdk-all/setup.py +++ b/huaweicloud-sdk-all/setup.py @@ -23,7 +23,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkall" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,163 +34,163 @@ LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.71', - 'huaweicloudsdkaad==3.1.71', - 'huaweicloudsdkantiddos==3.1.71', - 'huaweicloudsdkaom==3.1.71', - 'huaweicloudsdkaos==3.1.71', - 'huaweicloudsdkapig==3.1.71', - 'huaweicloudsdkapm==3.1.71', - 'huaweicloudsdkas==3.1.71', - 'huaweicloudsdkasm==3.1.71', - 'huaweicloudsdkbcs==3.1.71', - 'huaweicloudsdkbms==3.1.71', - 'huaweicloudsdkbss==3.1.71', - 'huaweicloudsdkbssintl==3.1.71', - 'huaweicloudsdkcae==3.1.71', - 'huaweicloudsdkcampusgo==3.1.71', - 'huaweicloudsdkcbh==3.1.71', - 'huaweicloudsdkcbr==3.1.71', - 'huaweicloudsdkcbs==3.1.71', - 'huaweicloudsdkcc==3.1.71', - 'huaweicloudsdkcce==3.1.71', - 'huaweicloudsdkccm==3.1.71', - 'huaweicloudsdkcdm==3.1.71', - 'huaweicloudsdkcdn==3.1.71', - 'huaweicloudsdkces==3.1.71', - 'huaweicloudsdkcfw==3.1.71', - 'huaweicloudsdkcgs==3.1.71', - 'huaweicloudsdkclassroom==3.1.71', - 'huaweicloudsdkcloudide==3.1.71', - 'huaweicloudsdkcloudpond==3.1.71', - 'huaweicloudsdkcloudrtc==3.1.71', - 'huaweicloudsdkcloudtable==3.1.71', - 'huaweicloudsdkcloudtest==3.1.71', - 'huaweicloudsdkcodeartsartifact==3.1.71', - 'huaweicloudsdkcodeartsbuild==3.1.71', - 'huaweicloudsdkcodeartscheck==3.1.71', - 'huaweicloudsdkcodeartsdeploy==3.1.71', - 'huaweicloudsdkcodeartsinspector==3.1.71', - 'huaweicloudsdkcodeartspipeline==3.1.71', - 'huaweicloudsdkcodecraft==3.1.71', - 'huaweicloudsdkcodehub==3.1.71', - 'huaweicloudsdkconfig==3.1.71', - 'huaweicloudsdkcph==3.1.71', - 'huaweicloudsdkcpts==3.1.71', - 'huaweicloudsdkcse==3.1.71', - 'huaweicloudsdkcsms==3.1.71', - 'huaweicloudsdkcss==3.1.71', - 'huaweicloudsdkcts==3.1.71', - 'huaweicloudsdkdas==3.1.71', - 'huaweicloudsdkdataartsstudio==3.1.71', - 'huaweicloudsdkdbss==3.1.71', - 'huaweicloudsdkdc==3.1.71', - 'huaweicloudsdkdcs==3.1.71', - 'huaweicloudsdkddm==3.1.71', - 'huaweicloudsdkdds==3.1.71', - 'huaweicloudsdkdeh==3.1.71', - 'huaweicloudsdkdevsecurity==3.1.71', - 'huaweicloudsdkdevstar==3.1.71', - 'huaweicloudsdkdgc==3.1.71', - 'huaweicloudsdkdis==3.1.71', - 'huaweicloudsdkdlf==3.1.71', - 'huaweicloudsdkdli==3.1.71', - 'huaweicloudsdkdns==3.1.71', - 'huaweicloudsdkdris==3.1.71', - 'huaweicloudsdkdrs==3.1.71', - 'huaweicloudsdkdsc==3.1.71', - 'huaweicloudsdkdwr==3.1.71', - 'huaweicloudsdkdws==3.1.71', - 'huaweicloudsdkec==3.1.71', - 'huaweicloudsdkecs==3.1.71', - 'huaweicloudsdkedgesec==3.1.71', - 'huaweicloudsdkeg==3.1.71', - 'huaweicloudsdkeihealth==3.1.71', - 'huaweicloudsdkeip==3.1.71', - 'huaweicloudsdkelb==3.1.71', - 'huaweicloudsdkeps==3.1.71', - 'huaweicloudsdker==3.1.71', - 'huaweicloudsdkevs==3.1.71', - 'huaweicloudsdkfrs==3.1.71', - 'huaweicloudsdkfunctiongraph==3.1.71', - 'huaweicloudsdkga==3.1.71', - 'huaweicloudsdkgaussdb==3.1.71', - 'huaweicloudsdkgaussdbfornosql==3.1.71', - 'huaweicloudsdkgaussdbforopengauss==3.1.71', - 'huaweicloudsdkges==3.1.71', - 'huaweicloudsdkgsl==3.1.71', - 'huaweicloudsdkhilens==3.1.71', - 'huaweicloudsdkhss==3.1.71', - 'huaweicloudsdkiam==3.1.71', - 'huaweicloudsdkidentitycenter==3.1.71', - 'huaweicloudsdkidentitycenterstore==3.1.71', - 'huaweicloudsdkidme==3.1.71', - 'huaweicloudsdkiec==3.1.71', - 'huaweicloudsdkief==3.1.71', - 'huaweicloudsdkimage==3.1.71', - 'huaweicloudsdkimagesearch==3.1.71', - 'huaweicloudsdkims==3.1.71', - 'huaweicloudsdkiotanalytics==3.1.71', - 'huaweicloudsdkiotda==3.1.71', - 'huaweicloudsdkiotedge==3.1.71', - 'huaweicloudsdkivs==3.1.71', - 'huaweicloudsdkkafka==3.1.71', - 'huaweicloudsdkkms==3.1.71', - 'huaweicloudsdkkoomessage==3.1.71', - 'huaweicloudsdkkps==3.1.71', - 'huaweicloudsdklakeformation==3.1.71', - 'huaweicloudsdklive==3.1.71', - 'huaweicloudsdklts==3.1.71', - 'huaweicloudsdkmapds==3.1.71', - 'huaweicloudsdkmas==3.1.71', - 'huaweicloudsdkmeeting==3.1.71', - 'huaweicloudsdkmetastudio==3.1.71', - 'huaweicloudsdkmoderation==3.1.71', - 'huaweicloudsdkmpc==3.1.71', - 'huaweicloudsdkmrs==3.1.71', - 'huaweicloudsdkmsgsms==3.1.71', - 'huaweicloudsdkmssi==3.1.71', - 'huaweicloudsdknat==3.1.71', - 'huaweicloudsdknlp==3.1.71', - 'huaweicloudsdkocr==3.1.71', - 'huaweicloudsdkoctopus==3.1.71', - 'huaweicloudsdkoms==3.1.71', - 'huaweicloudsdkoptverse==3.1.71', - 'huaweicloudsdkorganizations==3.1.71', - 'huaweicloudsdkoroas==3.1.71', - 'huaweicloudsdkosm==3.1.71', - 'huaweicloudsdkpangulargemodels==3.1.71', - 'huaweicloudsdkprojectman==3.1.71', - 'huaweicloudsdkrabbitmq==3.1.71', - 'huaweicloudsdkram==3.1.71', - 'huaweicloudsdkrds==3.1.71', - 'huaweicloudsdkres==3.1.71', - 'huaweicloudsdkrgc==3.1.71', - 'huaweicloudsdkrms==3.1.71', - 'huaweicloudsdkrocketmq==3.1.71', - 'huaweicloudsdkroma==3.1.71', - 'huaweicloudsdksa==3.1.71', - 'huaweicloudsdkscm==3.1.71', - 'huaweicloudsdksdrs==3.1.71', - 'huaweicloudsdksecmaster==3.1.71', - 'huaweicloudsdkservicestage==3.1.71', - 'huaweicloudsdksfsturbo==3.1.71', - 'huaweicloudsdksis==3.1.71', - 'huaweicloudsdksmn==3.1.71', - 'huaweicloudsdksms==3.1.71', - 'huaweicloudsdkswr==3.1.71', - 'huaweicloudsdktics==3.1.71', - 'huaweicloudsdktms==3.1.71', - 'huaweicloudsdkugo==3.1.71', - 'huaweicloudsdkvas==3.1.71', - 'huaweicloudsdkvcm==3.1.71', - 'huaweicloudsdkvod==3.1.71', - 'huaweicloudsdkvpc==3.1.71', - 'huaweicloudsdkvpcep==3.1.71', - 'huaweicloudsdkvpn==3.1.71', - 'huaweicloudsdkwaf==3.1.71', - 'huaweicloudsdkworkspace==3.1.71', - 'huaweicloudsdkworkspaceapp==3.1.71', + 'huaweicloudsdkcore==3.1.72', + 'huaweicloudsdkaad==3.1.72', + 'huaweicloudsdkantiddos==3.1.72', + 'huaweicloudsdkaom==3.1.72', + 'huaweicloudsdkaos==3.1.72', + 'huaweicloudsdkapig==3.1.72', + 'huaweicloudsdkapm==3.1.72', + 'huaweicloudsdkas==3.1.72', + 'huaweicloudsdkasm==3.1.72', + 'huaweicloudsdkbcs==3.1.72', + 'huaweicloudsdkbms==3.1.72', + 'huaweicloudsdkbss==3.1.72', + 'huaweicloudsdkbssintl==3.1.72', + 'huaweicloudsdkcae==3.1.72', + 'huaweicloudsdkcampusgo==3.1.72', + 'huaweicloudsdkcbh==3.1.72', + 'huaweicloudsdkcbr==3.1.72', + 'huaweicloudsdkcbs==3.1.72', + 'huaweicloudsdkcc==3.1.72', + 'huaweicloudsdkcce==3.1.72', + 'huaweicloudsdkccm==3.1.72', + 'huaweicloudsdkcdm==3.1.72', + 'huaweicloudsdkcdn==3.1.72', + 'huaweicloudsdkces==3.1.72', + 'huaweicloudsdkcfw==3.1.72', + 'huaweicloudsdkcgs==3.1.72', + 'huaweicloudsdkclassroom==3.1.72', + 'huaweicloudsdkcloudide==3.1.72', + 'huaweicloudsdkcloudpond==3.1.72', + 'huaweicloudsdkcloudrtc==3.1.72', + 'huaweicloudsdkcloudtable==3.1.72', + 'huaweicloudsdkcloudtest==3.1.72', + 'huaweicloudsdkcodeartsartifact==3.1.72', + 'huaweicloudsdkcodeartsbuild==3.1.72', + 'huaweicloudsdkcodeartscheck==3.1.72', + 'huaweicloudsdkcodeartsdeploy==3.1.72', + 'huaweicloudsdkcodeartsinspector==3.1.72', + 'huaweicloudsdkcodeartspipeline==3.1.72', + 'huaweicloudsdkcodecraft==3.1.72', + 'huaweicloudsdkcodehub==3.1.72', + 'huaweicloudsdkconfig==3.1.72', + 'huaweicloudsdkcph==3.1.72', + 'huaweicloudsdkcpts==3.1.72', + 'huaweicloudsdkcse==3.1.72', + 'huaweicloudsdkcsms==3.1.72', + 'huaweicloudsdkcss==3.1.72', + 'huaweicloudsdkcts==3.1.72', + 'huaweicloudsdkdas==3.1.72', + 'huaweicloudsdkdataartsstudio==3.1.72', + 'huaweicloudsdkdbss==3.1.72', + 'huaweicloudsdkdc==3.1.72', + 'huaweicloudsdkdcs==3.1.72', + 'huaweicloudsdkddm==3.1.72', + 'huaweicloudsdkdds==3.1.72', + 'huaweicloudsdkdeh==3.1.72', + 'huaweicloudsdkdevsecurity==3.1.72', + 'huaweicloudsdkdevstar==3.1.72', + 'huaweicloudsdkdgc==3.1.72', + 'huaweicloudsdkdis==3.1.72', + 'huaweicloudsdkdlf==3.1.72', + 'huaweicloudsdkdli==3.1.72', + 'huaweicloudsdkdns==3.1.72', + 'huaweicloudsdkdris==3.1.72', + 'huaweicloudsdkdrs==3.1.72', + 'huaweicloudsdkdsc==3.1.72', + 'huaweicloudsdkdwr==3.1.72', + 'huaweicloudsdkdws==3.1.72', + 'huaweicloudsdkec==3.1.72', + 'huaweicloudsdkecs==3.1.72', + 'huaweicloudsdkedgesec==3.1.72', + 'huaweicloudsdkeg==3.1.72', + 'huaweicloudsdkeihealth==3.1.72', + 'huaweicloudsdkeip==3.1.72', + 'huaweicloudsdkelb==3.1.72', + 'huaweicloudsdkeps==3.1.72', + 'huaweicloudsdker==3.1.72', + 'huaweicloudsdkevs==3.1.72', + 'huaweicloudsdkfrs==3.1.72', + 'huaweicloudsdkfunctiongraph==3.1.72', + 'huaweicloudsdkga==3.1.72', + 'huaweicloudsdkgaussdb==3.1.72', + 'huaweicloudsdkgaussdbfornosql==3.1.72', + 'huaweicloudsdkgaussdbforopengauss==3.1.72', + 'huaweicloudsdkges==3.1.72', + 'huaweicloudsdkgsl==3.1.72', + 'huaweicloudsdkhilens==3.1.72', + 'huaweicloudsdkhss==3.1.72', + 'huaweicloudsdkiam==3.1.72', + 'huaweicloudsdkidentitycenter==3.1.72', + 'huaweicloudsdkidentitycenterstore==3.1.72', + 'huaweicloudsdkidme==3.1.72', + 'huaweicloudsdkiec==3.1.72', + 'huaweicloudsdkief==3.1.72', + 'huaweicloudsdkimage==3.1.72', + 'huaweicloudsdkimagesearch==3.1.72', + 'huaweicloudsdkims==3.1.72', + 'huaweicloudsdkiotanalytics==3.1.72', + 'huaweicloudsdkiotda==3.1.72', + 'huaweicloudsdkiotedge==3.1.72', + 'huaweicloudsdkivs==3.1.72', + 'huaweicloudsdkkafka==3.1.72', + 'huaweicloudsdkkms==3.1.72', + 'huaweicloudsdkkoomessage==3.1.72', + 'huaweicloudsdkkps==3.1.72', + 'huaweicloudsdklakeformation==3.1.72', + 'huaweicloudsdklive==3.1.72', + 'huaweicloudsdklts==3.1.72', + 'huaweicloudsdkmapds==3.1.72', + 'huaweicloudsdkmas==3.1.72', + 'huaweicloudsdkmeeting==3.1.72', + 'huaweicloudsdkmetastudio==3.1.72', + 'huaweicloudsdkmoderation==3.1.72', + 'huaweicloudsdkmpc==3.1.72', + 'huaweicloudsdkmrs==3.1.72', + 'huaweicloudsdkmsgsms==3.1.72', + 'huaweicloudsdkmssi==3.1.72', + 'huaweicloudsdknat==3.1.72', + 'huaweicloudsdknlp==3.1.72', + 'huaweicloudsdkocr==3.1.72', + 'huaweicloudsdkoctopus==3.1.72', + 'huaweicloudsdkoms==3.1.72', + 'huaweicloudsdkoptverse==3.1.72', + 'huaweicloudsdkorganizations==3.1.72', + 'huaweicloudsdkoroas==3.1.72', + 'huaweicloudsdkosm==3.1.72', + 'huaweicloudsdkpangulargemodels==3.1.72', + 'huaweicloudsdkprojectman==3.1.72', + 'huaweicloudsdkrabbitmq==3.1.72', + 'huaweicloudsdkram==3.1.72', + 'huaweicloudsdkrds==3.1.72', + 'huaweicloudsdkres==3.1.72', + 'huaweicloudsdkrgc==3.1.72', + 'huaweicloudsdkrms==3.1.72', + 'huaweicloudsdkrocketmq==3.1.72', + 'huaweicloudsdkroma==3.1.72', + 'huaweicloudsdksa==3.1.72', + 'huaweicloudsdkscm==3.1.72', + 'huaweicloudsdksdrs==3.1.72', + 'huaweicloudsdksecmaster==3.1.72', + 'huaweicloudsdkservicestage==3.1.72', + 'huaweicloudsdksfsturbo==3.1.72', + 'huaweicloudsdksis==3.1.72', + 'huaweicloudsdksmn==3.1.72', + 'huaweicloudsdksms==3.1.72', + 'huaweicloudsdkswr==3.1.72', + 'huaweicloudsdktics==3.1.72', + 'huaweicloudsdktms==3.1.72', + 'huaweicloudsdkugo==3.1.72', + 'huaweicloudsdkvas==3.1.72', + 'huaweicloudsdkvcm==3.1.72', + 'huaweicloudsdkvod==3.1.72', + 'huaweicloudsdkvpc==3.1.72', + 'huaweicloudsdkvpcep==3.1.72', + 'huaweicloudsdkvpn==3.1.72', + 'huaweicloudsdkwaf==3.1.72', + 'huaweicloudsdkworkspace==3.1.72', + 'huaweicloudsdkworkspaceapp==3.1.72', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index 60ae1b9e41..33bfbb2e4a 100644 --- a/huaweicloud-sdk-antiddos/setup.py +++ b/huaweicloud-sdk-antiddos/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkantiddos" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index 8e4164f1be..4f9f6ff6f7 100644 --- a/huaweicloud-sdk-aom/setup.py +++ b/huaweicloud-sdk-aom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaom" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index 1dd1cb2f69..f8f8ab810a 100644 --- a/huaweicloud-sdk-aos/setup.py +++ b/huaweicloud-sdk-aos/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaos" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index 9db9012e13..0f3fecb058 100644 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index 0868cc5016..d17f283cbf 100644 --- a/huaweicloud-sdk-apm/setup.py +++ b/huaweicloud-sdk-apm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkapm" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 16402f6106..e9dfa934c7 100644 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-asm/requirements.txt b/huaweicloud-sdk-asm/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-asm/requirements.txt +++ b/huaweicloud-sdk-asm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-asm/setup.py b/huaweicloud-sdk-asm/setup.py index b2bf44c968..104b8f7eac 100644 --- a/huaweicloud-sdk-asm/setup.py +++ b/huaweicloud-sdk-asm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkasm" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index 1a87396423..a47c5a8ddf 100644 --- a/huaweicloud-sdk-bcs/setup.py +++ b/huaweicloud-sdk-bcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbcs" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/__init__.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/__init__.py index 091ca41d8c..cb0cd80cad 100644 --- a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/__init__.py +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/__init__.py @@ -43,6 +43,9 @@ from huaweicloudsdkbms.v1.model.create_server_nic_allowed_address_pairs import CreateServerNicAllowedAddressPairs from huaweicloudsdkbms.v1.model.create_servers import CreateServers from huaweicloudsdkbms.v1.model.data_volumes import DataVolumes +from huaweicloudsdkbms.v1.model.delete_baremetal_body import DeleteBaremetalBody +from huaweicloudsdkbms.v1.model.delete_baremetal_server_request import DeleteBaremetalServerRequest +from huaweicloudsdkbms.v1.model.delete_baremetal_server_response import DeleteBaremetalServerResponse from huaweicloudsdkbms.v1.model.delete_server_nics_req import DeleteServerNicsReq from huaweicloudsdkbms.v1.model.delete_server_nics_request import DeleteServerNicsRequest from huaweicloudsdkbms.v1.model.delete_server_nics_response import DeleteServerNicsResponse diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_async_client.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_async_client.py index dc0e561794..dd223c0da2 100644 --- a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_async_client.py +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_async_client.py @@ -693,6 +693,71 @@ def _create_bare_metal_servers_http_info(self, request): return http_info + def delete_baremetal_server_async(self, request): + """删除裸金属服务器裸金属服务器物理机 + + 删除裸金属服务器裸金属服务器物理机 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteBaremetalServer + :type request: :class:`huaweicloudsdkbms.v1.DeleteBaremetalServerRequest` + :rtype: :class:`huaweicloudsdkbms.v1.DeleteBaremetalServerResponse` + """ + http_info = self._delete_baremetal_server_http_info(request) + return self._call_api(**http_info) + + def delete_baremetal_server_async_invoker(self, request): + http_info = self._delete_baremetal_server_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_baremetal_server_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/baremetalservers/delete", + "request_type": request.__class__.__name__, + "response_type": "DeleteBaremetalServerResponse" + } + + 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 = {} + + 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;charset=UTF-8']) + + 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_server_nics_async(self, request): """裸金属服务器解绑弹性网卡 diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_client.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_client.py index 834ee93794..08738495b5 100644 --- a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_client.py +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/bms_client.py @@ -693,6 +693,71 @@ def _create_bare_metal_servers_http_info(cls, request): return http_info + def delete_baremetal_server(self, request): + """删除裸金属服务器裸金属服务器物理机 + + 删除裸金属服务器裸金属服务器物理机 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteBaremetalServer + :type request: :class:`huaweicloudsdkbms.v1.DeleteBaremetalServerRequest` + :rtype: :class:`huaweicloudsdkbms.v1.DeleteBaremetalServerResponse` + """ + http_info = self._delete_baremetal_server_http_info(request) + return self._call_api(**http_info) + + def delete_baremetal_server_invoker(self, request): + http_info = self._delete_baremetal_server_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_baremetal_server_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/baremetalservers/delete", + "request_type": request.__class__.__name__, + "response_type": "DeleteBaremetalServerResponse" + } + + 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 = {} + + 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;charset=UTF-8']) + + 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_server_nics(self, request): """裸金属服务器解绑弹性网卡 diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/__init__.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/__init__.py index af5d8cf239..cbdbeb74fa 100644 --- a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/__init__.py +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/__init__.py @@ -41,6 +41,9 @@ from huaweicloudsdkbms.v1.model.create_server_nic_allowed_address_pairs import CreateServerNicAllowedAddressPairs from huaweicloudsdkbms.v1.model.create_servers import CreateServers from huaweicloudsdkbms.v1.model.data_volumes import DataVolumes +from huaweicloudsdkbms.v1.model.delete_baremetal_body import DeleteBaremetalBody +from huaweicloudsdkbms.v1.model.delete_baremetal_server_request import DeleteBaremetalServerRequest +from huaweicloudsdkbms.v1.model.delete_baremetal_server_response import DeleteBaremetalServerResponse from huaweicloudsdkbms.v1.model.delete_server_nics_req import DeleteServerNicsReq from huaweicloudsdkbms.v1.model.delete_server_nics_request import DeleteServerNicsRequest from huaweicloudsdkbms.v1.model.delete_server_nics_response import DeleteServerNicsResponse diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/delete_baremetal_body.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/delete_baremetal_body.py new file mode 100644 index 0000000000..3e9180b43d --- /dev/null +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/delete_baremetal_body.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteBaremetalBody: + + """ + 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 = { + 'servers': 'list[ServersList]', + 'delete_publicip': 'bool', + 'delete_volume': 'bool' + } + + attribute_map = { + 'servers': 'servers', + 'delete_publicip': 'delete_publicip', + 'delete_volume': 'delete_volume' + } + + def __init__(self, servers=None, delete_publicip=None, delete_volume=None): + """DeleteBaremetalBody + + The model defined in huaweicloud sdk + + :param servers: 所需要删除的裸金属服务器列表。 + :type servers: list[:class:`huaweicloudsdkbms.v1.ServersList`] + :param delete_publicip: 删除裸金属服务器时是否删除裸金属服务器绑定的弹性公网IP。如果选择不删除,则系统仅做解绑定操作,保留弹性公网IP资源。 取值为true或false,默认为false。 true:删除裸金属服务器时会同时删除绑定在裸金属服务器上的弹性公网IP。 false:删除裸金属服务器时,仅解绑定在裸金属服务器上的弹性公网IP,不删除弹性公网IP。 + :type delete_publicip: bool + :param delete_volume: 删除裸金属服务器时是否删除裸金属服务器对应的数据盘。如果选择不删除,则系统仅做解绑定操作,保留数据盘资源。 取值为false或true,默认为false。 true:删除裸金属服务器时会同时删除挂载在裸金属服务器上的数据盘。 false:删除裸金属服务器时,仅卸载裸金属服务器上挂载的数据盘,不删除该数据盘。 + :type delete_volume: bool + """ + + + + self._servers = None + self._delete_publicip = None + self._delete_volume = None + self.discriminator = None + + self.servers = servers + self.delete_publicip = delete_publicip + if delete_volume is not None: + self.delete_volume = delete_volume + + @property + def servers(self): + """Gets the servers of this DeleteBaremetalBody. + + 所需要删除的裸金属服务器列表。 + + :return: The servers of this DeleteBaremetalBody. + :rtype: list[:class:`huaweicloudsdkbms.v1.ServersList`] + """ + return self._servers + + @servers.setter + def servers(self, servers): + """Sets the servers of this DeleteBaremetalBody. + + 所需要删除的裸金属服务器列表。 + + :param servers: The servers of this DeleteBaremetalBody. + :type servers: list[:class:`huaweicloudsdkbms.v1.ServersList`] + """ + self._servers = servers + + @property + def delete_publicip(self): + """Gets the delete_publicip of this DeleteBaremetalBody. + + 删除裸金属服务器时是否删除裸金属服务器绑定的弹性公网IP。如果选择不删除,则系统仅做解绑定操作,保留弹性公网IP资源。 取值为true或false,默认为false。 true:删除裸金属服务器时会同时删除绑定在裸金属服务器上的弹性公网IP。 false:删除裸金属服务器时,仅解绑定在裸金属服务器上的弹性公网IP,不删除弹性公网IP。 + + :return: The delete_publicip of this DeleteBaremetalBody. + :rtype: bool + """ + return self._delete_publicip + + @delete_publicip.setter + def delete_publicip(self, delete_publicip): + """Sets the delete_publicip of this DeleteBaremetalBody. + + 删除裸金属服务器时是否删除裸金属服务器绑定的弹性公网IP。如果选择不删除,则系统仅做解绑定操作,保留弹性公网IP资源。 取值为true或false,默认为false。 true:删除裸金属服务器时会同时删除绑定在裸金属服务器上的弹性公网IP。 false:删除裸金属服务器时,仅解绑定在裸金属服务器上的弹性公网IP,不删除弹性公网IP。 + + :param delete_publicip: The delete_publicip of this DeleteBaremetalBody. + :type delete_publicip: bool + """ + self._delete_publicip = delete_publicip + + @property + def delete_volume(self): + """Gets the delete_volume of this DeleteBaremetalBody. + + 删除裸金属服务器时是否删除裸金属服务器对应的数据盘。如果选择不删除,则系统仅做解绑定操作,保留数据盘资源。 取值为false或true,默认为false。 true:删除裸金属服务器时会同时删除挂载在裸金属服务器上的数据盘。 false:删除裸金属服务器时,仅卸载裸金属服务器上挂载的数据盘,不删除该数据盘。 + + :return: The delete_volume of this DeleteBaremetalBody. + :rtype: bool + """ + return self._delete_volume + + @delete_volume.setter + def delete_volume(self, delete_volume): + """Sets the delete_volume of this DeleteBaremetalBody. + + 删除裸金属服务器时是否删除裸金属服务器对应的数据盘。如果选择不删除,则系统仅做解绑定操作,保留数据盘资源。 取值为false或true,默认为false。 true:删除裸金属服务器时会同时删除挂载在裸金属服务器上的数据盘。 false:删除裸金属服务器时,仅卸载裸金属服务器上挂载的数据盘,不删除该数据盘。 + + :param delete_volume: The delete_volume of this DeleteBaremetalBody. + :type delete_volume: bool + """ + self._delete_volume = delete_volume + + 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, DeleteBaremetalBody): + 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-bms/huaweicloudsdkbms/v1/model/delete_baremetal_server_request.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/delete_baremetal_server_request.py new file mode 100644 index 0000000000..1c8ec6950b --- /dev/null +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/delete_baremetal_server_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteBaremetalServerRequest: + + """ + 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': 'DeleteBaremetalBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteBaremetalServerRequest + + The model defined in huaweicloud sdk + + :param body: Body of the DeleteBaremetalServerRequest + :type body: :class:`huaweicloudsdkbms.v1.DeleteBaremetalBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteBaremetalServerRequest. + + :return: The body of this DeleteBaremetalServerRequest. + :rtype: :class:`huaweicloudsdkbms.v1.DeleteBaremetalBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteBaremetalServerRequest. + + :param body: The body of this DeleteBaremetalServerRequest. + :type body: :class:`huaweicloudsdkbms.v1.DeleteBaremetalBody` + """ + 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, DeleteBaremetalServerRequest): + 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-bms/huaweicloudsdkbms/v1/model/delete_baremetal_server_response.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/delete_baremetal_server_response.py new file mode 100644 index 0000000000..47678d480a --- /dev/null +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/delete_baremetal_server_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 DeleteBaremetalServerResponse(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): + """DeleteBaremetalServerResponse + + The model defined in huaweicloud sdk + + :param job_id: 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询 + :type job_id: str + """ + + super(DeleteBaremetalServerResponse, 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 DeleteBaremetalServerResponse. + + 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询 + + :return: The job_id of this DeleteBaremetalServerResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this DeleteBaremetalServerResponse. + + 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询 + + :param job_id: The job_id of this DeleteBaremetalServerResponse. + :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, DeleteBaremetalServerResponse): + 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-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index 1b0cf05a41..ccfee8ad9b 100644 --- a/huaweicloud-sdk-bms/setup.py +++ b/huaweicloud-sdk-bms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbms" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index 900bd43857..22634e7d3a 100644 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index ae0f59a84c..e2b199adcd 100644 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/__init__.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/__init__.py index 9bed54a1a4..0b06ce24ba 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/__init__.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/__init__.py @@ -71,6 +71,8 @@ from huaweicloudsdkcae.v1.model.create_environment_response import CreateEnvironmentResponse from huaweicloudsdkcae.v1.model.create_meta_cert import CreateMetaCert from huaweicloudsdkcae.v1.model.create_meta_domain import CreateMetaDomain +from huaweicloudsdkcae.v1.model.create_monitor_system_request import CreateMonitorSystemRequest +from huaweicloudsdkcae.v1.model.create_monitor_system_response import CreateMonitorSystemResponse from huaweicloudsdkcae.v1.model.create_spec_cert import CreateSpecCert from huaweicloudsdkcae.v1.model.create_timer_rule_req import CreateTimerRuleReq from huaweicloudsdkcae.v1.model.create_timer_rule_request import CreateTimerRuleRequest @@ -149,6 +151,9 @@ from huaweicloudsdkcae.v1.model.meta_cert import MetaCert from huaweicloudsdkcae.v1.model.meta_domain import MetaDomain from huaweicloudsdkcae.v1.model.metadata_response import MetadataResponse +from huaweicloudsdkcae.v1.model.monitor_system_kind_obj import MonitorSystemKindObj +from huaweicloudsdkcae.v1.model.monitor_system_request_body import MonitorSystemRequestBody +from huaweicloudsdkcae.v1.model.monitor_system_request_body_spec import MonitorSystemRequestBodySpec from huaweicloudsdkcae.v1.model.mount_component import MountComponent from huaweicloudsdkcae.v1.model.repo import Repo from huaweicloudsdkcae.v1.model.resource_limit import ResourceLimit @@ -165,6 +170,9 @@ from huaweicloudsdkcae.v1.model.show_execution_result_response import ShowExecutionResultResponse from huaweicloudsdkcae.v1.model.show_job_request import ShowJobRequest from huaweicloudsdkcae.v1.model.show_job_response import ShowJobResponse +from huaweicloudsdkcae.v1.model.show_monitor_system_request import ShowMonitorSystemRequest +from huaweicloudsdkcae.v1.model.show_monitor_system_response import ShowMonitorSystemResponse +from huaweicloudsdkcae.v1.model.show_monitor_system_response_body_spec import ShowMonitorSystemResponseBodySpec from huaweicloudsdkcae.v1.model.source import Source from huaweicloudsdkcae.v1.model.spec_cert import SpecCert from huaweicloudsdkcae.v1.model.task import Task @@ -184,6 +192,8 @@ from huaweicloudsdkcae.v1.model.update_eip_request_body_spec_egress import UpdateEipRequestBodySpecEgress from huaweicloudsdkcae.v1.model.update_eip_request_body_spec_ingress import UpdateEipRequestBodySpecIngress from huaweicloudsdkcae.v1.model.update_eip_response import UpdateEipResponse +from huaweicloudsdkcae.v1.model.update_monitor_system_request import UpdateMonitorSystemRequest +from huaweicloudsdkcae.v1.model.update_monitor_system_response import UpdateMonitorSystemResponse from huaweicloudsdkcae.v1.model.update_spec_cert import UpdateSpecCert from huaweicloudsdkcae.v1.model.update_timer_rule_details import UpdateTimerRuleDetails from huaweicloudsdkcae.v1.model.update_timer_rule_req import UpdateTimerRuleReq diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_async_client.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_async_client.py index 0dfc2caff4..112b944fa6 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_async_client.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_async_client.py @@ -2248,6 +2248,213 @@ def _show_job_http_info(self, request): return http_info + def create_monitor_system_async(self, request): + """创建监控系统配置 + + 创建监控系统配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateMonitorSystem + :type request: :class:`huaweicloudsdkcae.v1.CreateMonitorSystemRequest` + :rtype: :class:`huaweicloudsdkcae.v1.CreateMonitorSystemResponse` + """ + http_info = self._create_monitor_system_http_info(request) + return self._call_api(**http_info) + + def create_monitor_system_async_invoker(self, request): + http_info = self._create_monitor_system_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_monitor_system_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/cae/monitor-system", + "request_type": request.__class__.__name__, + "response_type": "CreateMonitorSystemResponse" + } + + 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_enterprise_project_id' in local_var_params: + header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id'] + if 'x_environment_id' in local_var_params: + header_params['X-Environment-ID'] = local_var_params['x_environment_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 show_monitor_system_async(self, request): + """获取监控系统配置 + + 获取监控系统配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowMonitorSystem + :type request: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemRequest` + :rtype: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemResponse` + """ + http_info = self._show_monitor_system_http_info(request) + return self._call_api(**http_info) + + def show_monitor_system_async_invoker(self, request): + http_info = self._show_monitor_system_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_monitor_system_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/cae/monitor-system", + "request_type": request.__class__.__name__, + "response_type": "ShowMonitorSystemResponse" + } + + 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_enterprise_project_id' in local_var_params: + header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id'] + if 'x_environment_id' in local_var_params: + header_params['X-Environment-ID'] = local_var_params['x_environment_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 update_monitor_system_async(self, request): + """更新监控系统配置 + + 更新监控系统配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateMonitorSystem + :type request: :class:`huaweicloudsdkcae.v1.UpdateMonitorSystemRequest` + :rtype: :class:`huaweicloudsdkcae.v1.UpdateMonitorSystemResponse` + """ + http_info = self._update_monitor_system_http_info(request) + return self._call_api(**http_info) + + def update_monitor_system_async_invoker(self, request): + http_info = self._update_monitor_system_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_monitor_system_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/cae/monitor-system/{monitor_system_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateMonitorSystemResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'monitor_system_id' in local_var_params: + path_params['monitor_system_id'] = local_var_params['monitor_system_id'] + + query_params = [] + + header_params = {} + if 'x_enterprise_project_id' in local_var_params: + header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id'] + if 'x_environment_id' in local_var_params: + header_params['X-Environment-ID'] = local_var_params['x_environment_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_volume_async(self, request): """授权云存储 diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_client.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_client.py index 6346913a5c..0a10566d14 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_client.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_client.py @@ -2248,6 +2248,213 @@ def _show_job_http_info(cls, request): return http_info + def create_monitor_system(self, request): + """创建监控系统配置 + + 创建监控系统配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateMonitorSystem + :type request: :class:`huaweicloudsdkcae.v1.CreateMonitorSystemRequest` + :rtype: :class:`huaweicloudsdkcae.v1.CreateMonitorSystemResponse` + """ + http_info = self._create_monitor_system_http_info(request) + return self._call_api(**http_info) + + def create_monitor_system_invoker(self, request): + http_info = self._create_monitor_system_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_monitor_system_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/cae/monitor-system", + "request_type": request.__class__.__name__, + "response_type": "CreateMonitorSystemResponse" + } + + 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_enterprise_project_id' in local_var_params: + header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id'] + if 'x_environment_id' in local_var_params: + header_params['X-Environment-ID'] = local_var_params['x_environment_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 show_monitor_system(self, request): + """获取监控系统配置 + + 获取监控系统配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowMonitorSystem + :type request: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemRequest` + :rtype: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemResponse` + """ + http_info = self._show_monitor_system_http_info(request) + return self._call_api(**http_info) + + def show_monitor_system_invoker(self, request): + http_info = self._show_monitor_system_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_monitor_system_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/cae/monitor-system", + "request_type": request.__class__.__name__, + "response_type": "ShowMonitorSystemResponse" + } + + 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_enterprise_project_id' in local_var_params: + header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id'] + if 'x_environment_id' in local_var_params: + header_params['X-Environment-ID'] = local_var_params['x_environment_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 update_monitor_system(self, request): + """更新监控系统配置 + + 更新监控系统配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateMonitorSystem + :type request: :class:`huaweicloudsdkcae.v1.UpdateMonitorSystemRequest` + :rtype: :class:`huaweicloudsdkcae.v1.UpdateMonitorSystemResponse` + """ + http_info = self._update_monitor_system_http_info(request) + return self._call_api(**http_info) + + def update_monitor_system_invoker(self, request): + http_info = self._update_monitor_system_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_monitor_system_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/cae/monitor-system/{monitor_system_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateMonitorSystemResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'monitor_system_id' in local_var_params: + path_params['monitor_system_id'] = local_var_params['monitor_system_id'] + + query_params = [] + + header_params = {} + if 'x_enterprise_project_id' in local_var_params: + header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id'] + if 'x_environment_id' in local_var_params: + header_params['X-Environment-ID'] = local_var_params['x_environment_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_volume(self, request): """授权云存储 diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/__init__.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/__init__.py index 2f2bcebdcc..acba3ff6bf 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/__init__.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/__init__.py @@ -69,6 +69,8 @@ from huaweicloudsdkcae.v1.model.create_environment_response import CreateEnvironmentResponse from huaweicloudsdkcae.v1.model.create_meta_cert import CreateMetaCert from huaweicloudsdkcae.v1.model.create_meta_domain import CreateMetaDomain +from huaweicloudsdkcae.v1.model.create_monitor_system_request import CreateMonitorSystemRequest +from huaweicloudsdkcae.v1.model.create_monitor_system_response import CreateMonitorSystemResponse from huaweicloudsdkcae.v1.model.create_spec_cert import CreateSpecCert from huaweicloudsdkcae.v1.model.create_timer_rule_req import CreateTimerRuleReq from huaweicloudsdkcae.v1.model.create_timer_rule_request import CreateTimerRuleRequest @@ -147,6 +149,9 @@ from huaweicloudsdkcae.v1.model.meta_cert import MetaCert from huaweicloudsdkcae.v1.model.meta_domain import MetaDomain from huaweicloudsdkcae.v1.model.metadata_response import MetadataResponse +from huaweicloudsdkcae.v1.model.monitor_system_kind_obj import MonitorSystemKindObj +from huaweicloudsdkcae.v1.model.monitor_system_request_body import MonitorSystemRequestBody +from huaweicloudsdkcae.v1.model.monitor_system_request_body_spec import MonitorSystemRequestBodySpec from huaweicloudsdkcae.v1.model.mount_component import MountComponent from huaweicloudsdkcae.v1.model.repo import Repo from huaweicloudsdkcae.v1.model.resource_limit import ResourceLimit @@ -163,6 +168,9 @@ from huaweicloudsdkcae.v1.model.show_execution_result_response import ShowExecutionResultResponse from huaweicloudsdkcae.v1.model.show_job_request import ShowJobRequest from huaweicloudsdkcae.v1.model.show_job_response import ShowJobResponse +from huaweicloudsdkcae.v1.model.show_monitor_system_request import ShowMonitorSystemRequest +from huaweicloudsdkcae.v1.model.show_monitor_system_response import ShowMonitorSystemResponse +from huaweicloudsdkcae.v1.model.show_monitor_system_response_body_spec import ShowMonitorSystemResponseBodySpec from huaweicloudsdkcae.v1.model.source import Source from huaweicloudsdkcae.v1.model.spec_cert import SpecCert from huaweicloudsdkcae.v1.model.task import Task @@ -182,6 +190,8 @@ from huaweicloudsdkcae.v1.model.update_eip_request_body_spec_egress import UpdateEipRequestBodySpecEgress from huaweicloudsdkcae.v1.model.update_eip_request_body_spec_ingress import UpdateEipRequestBodySpecIngress from huaweicloudsdkcae.v1.model.update_eip_response import UpdateEipResponse +from huaweicloudsdkcae.v1.model.update_monitor_system_request import UpdateMonitorSystemRequest +from huaweicloudsdkcae.v1.model.update_monitor_system_response import UpdateMonitorSystemResponse from huaweicloudsdkcae.v1.model.update_spec_cert import UpdateSpecCert from huaweicloudsdkcae.v1.model.update_timer_rule_details import UpdateTimerRuleDetails from huaweicloudsdkcae.v1.model.update_timer_rule_req import UpdateTimerRuleReq diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_data_spec.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_data_spec.py index b6012716fa..539696d0a6 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_data_spec.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_data_spec.py @@ -38,11 +38,17 @@ class ConfigurationDataSpec: 'post_start': 'ConfigurationDataSpecPostStart', 'pre_stop': 'ConfigurationDataSpecPreStop', 'log_paths': 'list[str]', + 'instrumentation': 'str', + 'apm_application': 'str', + 'type': 'str', + 'app_name': 'str', + 'instance_name': 'str', + 'env_name': 'str', + 'image_pull_policy': 'str', + 'version': 'str', 'access_key': 'str', 'access_value': 'str', 'business': 'str', - 'image_pull_policy': 'str', - 'version': 'str', 'path': 'str', 'port': 'str', 'metrics': 'list[str]' @@ -70,17 +76,23 @@ class ConfigurationDataSpec: 'post_start': 'postStart', 'pre_stop': 'preStop', 'log_paths': 'log_paths', + 'instrumentation': 'instrumentation', + 'apm_application': 'apm_application', + 'type': 'type', + 'app_name': 'app_name', + 'instance_name': 'instance_name', + 'env_name': 'env_name', + 'image_pull_policy': 'image_pull_policy', + 'version': 'version', 'access_key': 'access_key', 'access_value': 'access_value', 'business': 'business', - 'image_pull_policy': 'image_pull_policy', - 'version': 'version', 'path': 'path', 'port': 'port', 'metrics': 'metrics' } - def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username=None, rds_password=None, rds_port=None, config_center_addr=None, service_center_addr=None, cse_id=None, envs=None, ip=None, items=None, max_replica_count=None, triggers=None, volumes=None, liveness_probe=None, startup_probe=None, readiness_probe=None, post_start=None, pre_stop=None, log_paths=None, access_key=None, access_value=None, business=None, image_pull_policy=None, version=None, path=None, port=None, metrics=None): + def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username=None, rds_password=None, rds_port=None, config_center_addr=None, service_center_addr=None, cse_id=None, envs=None, ip=None, items=None, max_replica_count=None, triggers=None, volumes=None, liveness_probe=None, startup_probe=None, readiness_probe=None, post_start=None, pre_stop=None, log_paths=None, instrumentation=None, apm_application=None, type=None, app_name=None, instance_name=None, env_name=None, image_pull_policy=None, version=None, access_key=None, access_value=None, business=None, path=None, port=None, metrics=None): """ConfigurationDataSpec The model defined in huaweicloud sdk @@ -127,16 +139,28 @@ def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username :type pre_stop: :class:`huaweicloudsdkcae.v1.ConfigurationDataSpecPreStop` :param log_paths: - type为\"log\"时,配置此参数。 - 参数含义:自定义日志路径数组。 :type log_paths: list[str] - :param access_key: - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置访问密钥Key。 + :param instrumentation: - type为\"apm2\"时,配置此参数。 - 参数含义:探针注入方式。 + :type instrumentation: str + :param apm_application: - 参数含义:type为\"apm2\"时,性能管理配置应用。 + :type apm_application: str + :param type: - 参数含义:type为\"apm2\"时,监控系统类别,包括apm2和opentelemetry。 + :type type: str + :param app_name: - 参数含义:type为\"apm2\"时,apm2组件。 + :type app_name: str + :param instance_name: - 参数含义:type为\"apm2\"时,apm2实例。 + :type instance_name: str + :param env_name: - 参数含义:type为\"apm2\"时,apm2环境。 + :type env_name: str + :param image_pull_policy: - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置升级策略。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 + :type image_pull_policy: str + :param version: - type为\"apm2\"时,配置此参数。 - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置探针版本。 + :type version: str + :param access_key: - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥Key。 :type access_key: str - :param access_value: - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置访问密钥value。 + :param access_value: - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥value。 :type access_value: str - :param business: - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置应用。 + :param business: - 参数含义:已废弃,type为\"apm2\"时,性能管理配置应用,同apm_application。 :type business: str - :param image_pull_policy: - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置升级策略。 - 重启自动升级:每次都尝试重新下载镜像。 - 手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 - :type image_pull_policy: str - :param version: - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置探针版本。 - :type version: str :param path: - type为\"customMetric\"时,配置此参数。 - 参数含义:自定义监控指标配置采集路径。 :type path: str :param port: - type为\"customMetric\"时,配置此参数。 - 参数含义:自定义监控指标配置采集端口。 @@ -168,11 +192,17 @@ def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username self._post_start = None self._pre_stop = None self._log_paths = None + self._instrumentation = None + self._apm_application = None + self._type = None + self._app_name = None + self._instance_name = None + self._env_name = None + self._image_pull_policy = None + self._version = None self._access_key = None self._access_value = None self._business = None - self._image_pull_policy = None - self._version = None self._path = None self._port = None self._metrics = None @@ -220,16 +250,28 @@ def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username self.pre_stop = pre_stop if log_paths is not None: self.log_paths = log_paths + if instrumentation is not None: + self.instrumentation = instrumentation + if apm_application is not None: + self.apm_application = apm_application + if type is not None: + self.type = type + if app_name is not None: + self.app_name = app_name + if instance_name is not None: + self.instance_name = instance_name + if env_name is not None: + self.env_name = env_name + if image_pull_policy is not None: + self.image_pull_policy = image_pull_policy + if version is not None: + self.version = version if access_key is not None: self.access_key = access_key if access_value is not None: self.access_value = access_value if business is not None: self.business = business - if image_pull_policy is not None: - self.image_pull_policy = image_pull_policy - if version is not None: - self.version = version if path is not None: self.path = path if port is not None: @@ -680,76 +722,142 @@ def log_paths(self, log_paths): self._log_paths = log_paths @property - def access_key(self): - """Gets the access_key of this ConfigurationDataSpec. + def instrumentation(self): + """Gets the instrumentation of this ConfigurationDataSpec. - - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置访问密钥Key。 + - type为\"apm2\"时,配置此参数。 - 参数含义:探针注入方式。 - :return: The access_key of this ConfigurationDataSpec. + :return: The instrumentation of this ConfigurationDataSpec. :rtype: str """ - return self._access_key + return self._instrumentation - @access_key.setter - def access_key(self, access_key): - """Sets the access_key of this ConfigurationDataSpec. + @instrumentation.setter + def instrumentation(self, instrumentation): + """Sets the instrumentation of this ConfigurationDataSpec. - - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置访问密钥Key。 + - type为\"apm2\"时,配置此参数。 - 参数含义:探针注入方式。 - :param access_key: The access_key of this ConfigurationDataSpec. - :type access_key: str + :param instrumentation: The instrumentation of this ConfigurationDataSpec. + :type instrumentation: str """ - self._access_key = access_key + self._instrumentation = instrumentation @property - def access_value(self): - """Gets the access_value of this ConfigurationDataSpec. + def apm_application(self): + """Gets the apm_application of this ConfigurationDataSpec. - - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置访问密钥value。 + - 参数含义:type为\"apm2\"时,性能管理配置应用。 - :return: The access_value of this ConfigurationDataSpec. + :return: The apm_application of this ConfigurationDataSpec. :rtype: str """ - return self._access_value + return self._apm_application - @access_value.setter - def access_value(self, access_value): - """Sets the access_value of this ConfigurationDataSpec. + @apm_application.setter + def apm_application(self, apm_application): + """Sets the apm_application of this ConfigurationDataSpec. - - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置访问密钥value。 + - 参数含义:type为\"apm2\"时,性能管理配置应用。 - :param access_value: The access_value of this ConfigurationDataSpec. - :type access_value: str + :param apm_application: The apm_application of this ConfigurationDataSpec. + :type apm_application: str """ - self._access_value = access_value + self._apm_application = apm_application @property - def business(self): - """Gets the business of this ConfigurationDataSpec. + def type(self): + """Gets the type of this ConfigurationDataSpec. - - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置应用。 + - 参数含义:type为\"apm2\"时,监控系统类别,包括apm2和opentelemetry。 - :return: The business of this ConfigurationDataSpec. + :return: The type of this ConfigurationDataSpec. :rtype: str """ - return self._business + return self._type - @business.setter - def business(self, business): - """Sets the business of this ConfigurationDataSpec. + @type.setter + def type(self, type): + """Sets the type of this ConfigurationDataSpec. - - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置应用。 + - 参数含义:type为\"apm2\"时,监控系统类别,包括apm2和opentelemetry。 - :param business: The business of this ConfigurationDataSpec. - :type business: str + :param type: The type of this ConfigurationDataSpec. + :type type: str """ - self._business = business + self._type = type + + @property + def app_name(self): + """Gets the app_name of this ConfigurationDataSpec. + + - 参数含义:type为\"apm2\"时,apm2组件。 + + :return: The app_name of this ConfigurationDataSpec. + :rtype: str + """ + return self._app_name + + @app_name.setter + def app_name(self, app_name): + """Sets the app_name of this ConfigurationDataSpec. + + - 参数含义:type为\"apm2\"时,apm2组件。 + + :param app_name: The app_name of this ConfigurationDataSpec. + :type app_name: str + """ + self._app_name = app_name + + @property + def instance_name(self): + """Gets the instance_name of this ConfigurationDataSpec. + + - 参数含义:type为\"apm2\"时,apm2实例。 + + :return: The instance_name of this ConfigurationDataSpec. + :rtype: str + """ + return self._instance_name + + @instance_name.setter + def instance_name(self, instance_name): + """Sets the instance_name of this ConfigurationDataSpec. + + - 参数含义:type为\"apm2\"时,apm2实例。 + + :param instance_name: The instance_name of this ConfigurationDataSpec. + :type instance_name: str + """ + self._instance_name = instance_name + + @property + def env_name(self): + """Gets the env_name of this ConfigurationDataSpec. + + - 参数含义:type为\"apm2\"时,apm2环境。 + + :return: The env_name of this ConfigurationDataSpec. + :rtype: str + """ + return self._env_name + + @env_name.setter + def env_name(self, env_name): + """Sets the env_name of this ConfigurationDataSpec. + + - 参数含义:type为\"apm2\"时,apm2环境。 + + :param env_name: The env_name of this ConfigurationDataSpec. + :type env_name: str + """ + self._env_name = env_name @property def image_pull_policy(self): """Gets the image_pull_policy of this ConfigurationDataSpec. - - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置升级策略。 - 重启自动升级:每次都尝试重新下载镜像。 - 手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 + - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置升级策略。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 :return: The image_pull_policy of this ConfigurationDataSpec. :rtype: str @@ -760,7 +868,7 @@ def image_pull_policy(self): def image_pull_policy(self, image_pull_policy): """Sets the image_pull_policy of this ConfigurationDataSpec. - - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置升级策略。 - 重启自动升级:每次都尝试重新下载镜像。 - 手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 + - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置升级策略。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 :param image_pull_policy: The image_pull_policy of this ConfigurationDataSpec. :type image_pull_policy: str @@ -771,7 +879,7 @@ def image_pull_policy(self, image_pull_policy): def version(self): """Gets the version of this ConfigurationDataSpec. - - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置探针版本。 + - type为\"apm2\"时,配置此参数。 - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置探针版本。 :return: The version of this ConfigurationDataSpec. :rtype: str @@ -782,13 +890,79 @@ def version(self): def version(self, version): """Sets the version of this ConfigurationDataSpec. - - type为\"apm2\"时,配置此参数。 - 参数含义:性能管理配置探针版本。 + - type为\"apm2\"时,配置此参数。 - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置探针版本。 :param version: The version of this ConfigurationDataSpec. :type version: str """ self._version = version + @property + def access_key(self): + """Gets the access_key of this ConfigurationDataSpec. + + - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥Key。 + + :return: The access_key of this ConfigurationDataSpec. + :rtype: str + """ + return self._access_key + + @access_key.setter + def access_key(self, access_key): + """Sets the access_key of this ConfigurationDataSpec. + + - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥Key。 + + :param access_key: The access_key of this ConfigurationDataSpec. + :type access_key: str + """ + self._access_key = access_key + + @property + def access_value(self): + """Gets the access_value of this ConfigurationDataSpec. + + - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥value。 + + :return: The access_value of this ConfigurationDataSpec. + :rtype: str + """ + return self._access_value + + @access_value.setter + def access_value(self, access_value): + """Sets the access_value of this ConfigurationDataSpec. + + - 参数含义:已废弃,迁移到监控系统,type为\"apm2\"时,性能管理配置访问密钥value。 + + :param access_value: The access_value of this ConfigurationDataSpec. + :type access_value: str + """ + self._access_value = access_value + + @property + def business(self): + """Gets the business of this ConfigurationDataSpec. + + - 参数含义:已废弃,type为\"apm2\"时,性能管理配置应用,同apm_application。 + + :return: The business of this ConfigurationDataSpec. + :rtype: str + """ + return self._business + + @business.setter + def business(self, business): + """Sets the business of this ConfigurationDataSpec. + + - 参数含义:已废弃,type为\"apm2\"时,性能管理配置应用,同apm_application。 + + :param business: The business of this ConfigurationDataSpec. + :type business: str + """ + self._business = business + @property def path(self): """Gets the path of this ConfigurationDataSpec. diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/create_monitor_system_request.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/create_monitor_system_request.py new file mode 100644 index 0000000000..8481a1470b --- /dev/null +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/create_monitor_system_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateMonitorSystemRequest: + + """ + 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_enterprise_project_id': 'str', + 'x_environment_id': 'str', + 'body': 'MonitorSystemRequestBody' + } + + attribute_map = { + 'x_enterprise_project_id': 'X-Enterprise-Project-ID', + 'x_environment_id': 'X-Environment-ID', + 'body': 'body' + } + + def __init__(self, x_enterprise_project_id=None, x_environment_id=None, body=None): + """CreateMonitorSystemRequest + + The model defined in huaweicloud sdk + + :param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 + :type x_enterprise_project_id: str + :param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。 + :type x_environment_id: str + :param body: Body of the CreateMonitorSystemRequest + :type body: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody` + """ + + + + self._x_enterprise_project_id = None + self._x_environment_id = None + self._body = None + self.discriminator = None + + if x_enterprise_project_id is not None: + self.x_enterprise_project_id = x_enterprise_project_id + self.x_environment_id = x_environment_id + if body is not None: + self.body = body + + @property + def x_enterprise_project_id(self): + """Gets the x_enterprise_project_id of this CreateMonitorSystemRequest. + + 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 + + :return: The x_enterprise_project_id of this CreateMonitorSystemRequest. + :rtype: str + """ + return self._x_enterprise_project_id + + @x_enterprise_project_id.setter + def x_enterprise_project_id(self, x_enterprise_project_id): + """Sets the x_enterprise_project_id of this CreateMonitorSystemRequest. + + 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 + + :param x_enterprise_project_id: The x_enterprise_project_id of this CreateMonitorSystemRequest. + :type x_enterprise_project_id: str + """ + self._x_enterprise_project_id = x_enterprise_project_id + + @property + def x_environment_id(self): + """Gets the x_environment_id of this CreateMonitorSystemRequest. + + 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。 + + :return: The x_environment_id of this CreateMonitorSystemRequest. + :rtype: str + """ + return self._x_environment_id + + @x_environment_id.setter + def x_environment_id(self, x_environment_id): + """Sets the x_environment_id of this CreateMonitorSystemRequest. + + 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。 + + :param x_environment_id: The x_environment_id of this CreateMonitorSystemRequest. + :type x_environment_id: str + """ + self._x_environment_id = x_environment_id + + @property + def body(self): + """Gets the body of this CreateMonitorSystemRequest. + + :return: The body of this CreateMonitorSystemRequest. + :rtype: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateMonitorSystemRequest. + + :param body: The body of this CreateMonitorSystemRequest. + :type body: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody` + """ + 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, CreateMonitorSystemRequest): + 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-cae/huaweicloudsdkcae/v1/model/create_monitor_system_response.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/create_monitor_system_response.py new file mode 100644 index 0000000000..1b91bdaba3 --- /dev/null +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/create_monitor_system_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 CreateMonitorSystemResponse(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): + """CreateMonitorSystemResponse + + The model defined in huaweicloud sdk + + """ + + super(CreateMonitorSystemResponse, 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, CreateMonitorSystemResponse): + 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-cae/huaweicloudsdkcae/v1/model/monitor_system_kind_obj.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/monitor_system_kind_obj.py new file mode 100644 index 0000000000..94041d2aa2 --- /dev/null +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/monitor_system_kind_obj.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MonitorSystemKindObj: + """ + allowed enum values + """ + MONITORSYSTEM = "MonitorSystem" + """ + 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): + """MonitorSystemKindObj + + 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, MonitorSystemKindObj): + 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-cae/huaweicloudsdkcae/v1/model/monitor_system_request_body.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/monitor_system_request_body.py new file mode 100644 index 0000000000..9f024ac9f6 --- /dev/null +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/monitor_system_request_body.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MonitorSystemRequestBody: + + """ + 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 = { + 'api_version': 'ApiVersionObj', + 'kind': 'MonitorSystemKindObj', + 'spec': 'MonitorSystemRequestBodySpec' + } + + attribute_map = { + 'api_version': 'api_version', + 'kind': 'kind', + 'spec': 'spec' + } + + def __init__(self, api_version=None, kind=None, spec=None): + """MonitorSystemRequestBody + + The model defined in huaweicloud sdk + + :param api_version: + :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj` + :param kind: + :type kind: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj` + :param spec: + :type spec: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBodySpec` + """ + + + + self._api_version = None + self._kind = None + self._spec = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if spec is not None: + self.spec = spec + + @property + def api_version(self): + """Gets the api_version of this MonitorSystemRequestBody. + + :return: The api_version of this MonitorSystemRequestBody. + :rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj` + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this MonitorSystemRequestBody. + + :param api_version: The api_version of this MonitorSystemRequestBody. + :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj` + """ + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this MonitorSystemRequestBody. + + :return: The kind of this MonitorSystemRequestBody. + :rtype: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj` + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this MonitorSystemRequestBody. + + :param kind: The kind of this MonitorSystemRequestBody. + :type kind: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj` + """ + self._kind = kind + + @property + def spec(self): + """Gets the spec of this MonitorSystemRequestBody. + + :return: The spec of this MonitorSystemRequestBody. + :rtype: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBodySpec` + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this MonitorSystemRequestBody. + + :param spec: The spec of this MonitorSystemRequestBody. + :type spec: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBodySpec` + """ + self._spec = spec + + 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, MonitorSystemRequestBody): + 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-cae/huaweicloudsdkcae/v1/model/monitor_system_request_body_spec.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/monitor_system_request_body_spec.py new file mode 100644 index 0000000000..33fdbe1d02 --- /dev/null +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/monitor_system_request_body_spec.py @@ -0,0 +1,313 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MonitorSystemRequestBodySpec: + + """ + 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', + 'instrumentation': 'str', + 'access_key': 'str', + 'access_value': 'str', + 'access_token': 'str', + 'apm_application': 'str', + 'version': 'str', + 'image_pull_policy': 'str' + } + + attribute_map = { + 'type': 'type', + 'instrumentation': 'instrumentation', + 'access_key': 'access_key', + 'access_value': 'access_value', + 'access_token': 'access_token', + 'apm_application': 'apm_application', + 'version': 'version', + 'image_pull_policy': 'image_pull_policy' + } + + def __init__(self, type=None, instrumentation=None, access_key=None, access_value=None, access_token=None, apm_application=None, version=None, image_pull_policy=None): + """MonitorSystemRequestBodySpec + + The model defined in huaweicloud sdk + + :param type: 采集方式,包括apm2和opentelemetry。 + :type type: str + :param instrumentation: 探针注入方式,包括automatic和manual。 + :type instrumentation: str + :param access_key: apm2 access_key。 + :type access_key: str + :param access_value: apm2 access_value。 + :type access_value: str + :param access_token: apm opentelemetry接入token。 + :type access_token: str + :param apm_application: apm应用名。 + :type apm_application: str + :param version: apm-agent/opentelemetry-agent探针版本。 + :type version: str + :param image_pull_policy: 探针镜像更新策略。 + :type image_pull_policy: str + """ + + + + self._type = None + self._instrumentation = None + self._access_key = None + self._access_value = None + self._access_token = None + self._apm_application = None + self._version = None + self._image_pull_policy = None + self.discriminator = None + + self.type = type + self.instrumentation = instrumentation + if access_key is not None: + self.access_key = access_key + if access_value is not None: + self.access_value = access_value + if access_token is not None: + self.access_token = access_token + self.apm_application = apm_application + self.version = version + self.image_pull_policy = image_pull_policy + + @property + def type(self): + """Gets the type of this MonitorSystemRequestBodySpec. + + 采集方式,包括apm2和opentelemetry。 + + :return: The type of this MonitorSystemRequestBodySpec. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this MonitorSystemRequestBodySpec. + + 采集方式,包括apm2和opentelemetry。 + + :param type: The type of this MonitorSystemRequestBodySpec. + :type type: str + """ + self._type = type + + @property + def instrumentation(self): + """Gets the instrumentation of this MonitorSystemRequestBodySpec. + + 探针注入方式,包括automatic和manual。 + + :return: The instrumentation of this MonitorSystemRequestBodySpec. + :rtype: str + """ + return self._instrumentation + + @instrumentation.setter + def instrumentation(self, instrumentation): + """Sets the instrumentation of this MonitorSystemRequestBodySpec. + + 探针注入方式,包括automatic和manual。 + + :param instrumentation: The instrumentation of this MonitorSystemRequestBodySpec. + :type instrumentation: str + """ + self._instrumentation = instrumentation + + @property + def access_key(self): + """Gets the access_key of this MonitorSystemRequestBodySpec. + + apm2 access_key。 + + :return: The access_key of this MonitorSystemRequestBodySpec. + :rtype: str + """ + return self._access_key + + @access_key.setter + def access_key(self, access_key): + """Sets the access_key of this MonitorSystemRequestBodySpec. + + apm2 access_key。 + + :param access_key: The access_key of this MonitorSystemRequestBodySpec. + :type access_key: str + """ + self._access_key = access_key + + @property + def access_value(self): + """Gets the access_value of this MonitorSystemRequestBodySpec. + + apm2 access_value。 + + :return: The access_value of this MonitorSystemRequestBodySpec. + :rtype: str + """ + return self._access_value + + @access_value.setter + def access_value(self, access_value): + """Sets the access_value of this MonitorSystemRequestBodySpec. + + apm2 access_value。 + + :param access_value: The access_value of this MonitorSystemRequestBodySpec. + :type access_value: str + """ + self._access_value = access_value + + @property + def access_token(self): + """Gets the access_token of this MonitorSystemRequestBodySpec. + + apm opentelemetry接入token。 + + :return: The access_token of this MonitorSystemRequestBodySpec. + :rtype: str + """ + return self._access_token + + @access_token.setter + def access_token(self, access_token): + """Sets the access_token of this MonitorSystemRequestBodySpec. + + apm opentelemetry接入token。 + + :param access_token: The access_token of this MonitorSystemRequestBodySpec. + :type access_token: str + """ + self._access_token = access_token + + @property + def apm_application(self): + """Gets the apm_application of this MonitorSystemRequestBodySpec. + + apm应用名。 + + :return: The apm_application of this MonitorSystemRequestBodySpec. + :rtype: str + """ + return self._apm_application + + @apm_application.setter + def apm_application(self, apm_application): + """Sets the apm_application of this MonitorSystemRequestBodySpec. + + apm应用名。 + + :param apm_application: The apm_application of this MonitorSystemRequestBodySpec. + :type apm_application: str + """ + self._apm_application = apm_application + + @property + def version(self): + """Gets the version of this MonitorSystemRequestBodySpec. + + apm-agent/opentelemetry-agent探针版本。 + + :return: The version of this MonitorSystemRequestBodySpec. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this MonitorSystemRequestBodySpec. + + apm-agent/opentelemetry-agent探针版本。 + + :param version: The version of this MonitorSystemRequestBodySpec. + :type version: str + """ + self._version = version + + @property + def image_pull_policy(self): + """Gets the image_pull_policy of this MonitorSystemRequestBodySpec. + + 探针镜像更新策略。 + + :return: The image_pull_policy of this MonitorSystemRequestBodySpec. + :rtype: str + """ + return self._image_pull_policy + + @image_pull_policy.setter + def image_pull_policy(self, image_pull_policy): + """Sets the image_pull_policy of this MonitorSystemRequestBodySpec. + + 探针镜像更新策略。 + + :param image_pull_policy: The image_pull_policy of this MonitorSystemRequestBodySpec. + :type image_pull_policy: str + """ + self._image_pull_policy = image_pull_policy + + 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, MonitorSystemRequestBodySpec): + 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-cae/huaweicloudsdkcae/v1/model/show_monitor_system_request.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/show_monitor_system_request.py new file mode 100644 index 0000000000..bd0417c632 --- /dev/null +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/show_monitor_system_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowMonitorSystemRequest: + + """ + 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_enterprise_project_id': 'str', + 'x_environment_id': 'str' + } + + attribute_map = { + 'x_enterprise_project_id': 'X-Enterprise-Project-ID', + 'x_environment_id': 'X-Environment-ID' + } + + def __init__(self, x_enterprise_project_id=None, x_environment_id=None): + """ShowMonitorSystemRequest + + The model defined in huaweicloud sdk + + :param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 + :type x_enterprise_project_id: str + :param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。 + :type x_environment_id: str + """ + + + + self._x_enterprise_project_id = None + self._x_environment_id = None + self.discriminator = None + + if x_enterprise_project_id is not None: + self.x_enterprise_project_id = x_enterprise_project_id + self.x_environment_id = x_environment_id + + @property + def x_enterprise_project_id(self): + """Gets the x_enterprise_project_id of this ShowMonitorSystemRequest. + + 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 + + :return: The x_enterprise_project_id of this ShowMonitorSystemRequest. + :rtype: str + """ + return self._x_enterprise_project_id + + @x_enterprise_project_id.setter + def x_enterprise_project_id(self, x_enterprise_project_id): + """Sets the x_enterprise_project_id of this ShowMonitorSystemRequest. + + 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 + + :param x_enterprise_project_id: The x_enterprise_project_id of this ShowMonitorSystemRequest. + :type x_enterprise_project_id: str + """ + self._x_enterprise_project_id = x_enterprise_project_id + + @property + def x_environment_id(self): + """Gets the x_environment_id of this ShowMonitorSystemRequest. + + 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。 + + :return: The x_environment_id of this ShowMonitorSystemRequest. + :rtype: str + """ + return self._x_environment_id + + @x_environment_id.setter + def x_environment_id(self, x_environment_id): + """Sets the x_environment_id of this ShowMonitorSystemRequest. + + 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。 + + :param x_environment_id: The x_environment_id of this ShowMonitorSystemRequest. + :type x_environment_id: str + """ + self._x_environment_id = x_environment_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, ShowMonitorSystemRequest): + 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-cae/huaweicloudsdkcae/v1/model/show_monitor_system_response.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/show_monitor_system_response.py new file mode 100644 index 0000000000..33737f9922 --- /dev/null +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/show_monitor_system_response.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowMonitorSystemResponse(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 = { + 'api_version': 'ApiVersionObj', + 'kind': 'MonitorSystemKindObj', + 'spec': 'ShowMonitorSystemResponseBodySpec' + } + + attribute_map = { + 'api_version': 'api_version', + 'kind': 'kind', + 'spec': 'spec' + } + + def __init__(self, api_version=None, kind=None, spec=None): + """ShowMonitorSystemResponse + + The model defined in huaweicloud sdk + + :param api_version: + :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj` + :param kind: + :type kind: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj` + :param spec: + :type spec: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemResponseBodySpec` + """ + + super(ShowMonitorSystemResponse, self).__init__() + + self._api_version = None + self._kind = None + self._spec = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if spec is not None: + self.spec = spec + + @property + def api_version(self): + """Gets the api_version of this ShowMonitorSystemResponse. + + :return: The api_version of this ShowMonitorSystemResponse. + :rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj` + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this ShowMonitorSystemResponse. + + :param api_version: The api_version of this ShowMonitorSystemResponse. + :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj` + """ + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this ShowMonitorSystemResponse. + + :return: The kind of this ShowMonitorSystemResponse. + :rtype: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj` + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this ShowMonitorSystemResponse. + + :param kind: The kind of this ShowMonitorSystemResponse. + :type kind: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj` + """ + self._kind = kind + + @property + def spec(self): + """Gets the spec of this ShowMonitorSystemResponse. + + :return: The spec of this ShowMonitorSystemResponse. + :rtype: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemResponseBodySpec` + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this ShowMonitorSystemResponse. + + :param spec: The spec of this ShowMonitorSystemResponse. + :type spec: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemResponseBodySpec` + """ + self._spec = spec + + 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, ShowMonitorSystemResponse): + 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-cae/huaweicloudsdkcae/v1/model/show_monitor_system_response_body_spec.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/show_monitor_system_response_body_spec.py new file mode 100644 index 0000000000..59d8b36c72 --- /dev/null +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/show_monitor_system_response_body_spec.py @@ -0,0 +1,430 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowMonitorSystemResponseBodySpec: + + """ + 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', + 'instrumentation': 'str', + 'access_key': 'str', + 'access_value': 'str', + 'access_token': 'str', + 'master_address': 'str', + 'apm_application': 'str', + 'version': 'str', + 'image_pull_policy': 'str', + 'created_at': 'str', + 'updated_at': 'str' + } + + attribute_map = { + 'id': 'id', + 'type': 'type', + 'instrumentation': 'instrumentation', + 'access_key': 'access_key', + 'access_value': 'access_value', + 'access_token': 'access_token', + 'master_address': 'master_address', + 'apm_application': 'apm_application', + 'version': 'version', + 'image_pull_policy': 'image_pull_policy', + 'created_at': 'created_at', + 'updated_at': 'updated_at' + } + + def __init__(self, id=None, type=None, instrumentation=None, access_key=None, access_value=None, access_token=None, master_address=None, apm_application=None, version=None, image_pull_policy=None, created_at=None, updated_at=None): + """ShowMonitorSystemResponseBodySpec + + The model defined in huaweicloud sdk + + :param id: + :type id: str + :param type: 采集方式,包括apm2和opentelemetry。 + :type type: str + :param instrumentation: 探针注入方式,包括automatic和manual。 + :type instrumentation: str + :param access_key: apm2 access_key。 + :type access_key: str + :param access_value: apm2 access_value。 + :type access_value: str + :param access_token: apm opentelemetry接入token。 + :type access_token: str + :param master_address: 探针接入点。 + :type master_address: str + :param apm_application: apm应用名。 + :type apm_application: str + :param version: apm-agent/opentelemetry-agent探针版本。 + :type version: str + :param image_pull_policy: 探针镜像更新策略。 + :type image_pull_policy: str + :param created_at: 创建时间。 + :type created_at: str + :param updated_at: 更新时间。 + :type updated_at: str + """ + + + + self._id = None + self._type = None + self._instrumentation = None + self._access_key = None + self._access_value = None + self._access_token = None + self._master_address = None + self._apm_application = None + self._version = None + self._image_pull_policy = None + self._created_at = None + self._updated_at = None + self.discriminator = None + + if id is not None: + self.id = id + if type is not None: + self.type = type + if instrumentation is not None: + self.instrumentation = instrumentation + if access_key is not None: + self.access_key = access_key + if access_value is not None: + self.access_value = access_value + if access_token is not None: + self.access_token = access_token + if master_address is not None: + self.master_address = master_address + if apm_application is not None: + self.apm_application = apm_application + if version is not None: + self.version = version + if image_pull_policy is not None: + self.image_pull_policy = image_pull_policy + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + + @property + def id(self): + """Gets the id of this ShowMonitorSystemResponseBodySpec. + + :return: The id of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowMonitorSystemResponseBodySpec. + + :param id: The id of this ShowMonitorSystemResponseBodySpec. + :type id: str + """ + self._id = id + + @property + def type(self): + """Gets the type of this ShowMonitorSystemResponseBodySpec. + + 采集方式,包括apm2和opentelemetry。 + + :return: The type of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ShowMonitorSystemResponseBodySpec. + + 采集方式,包括apm2和opentelemetry。 + + :param type: The type of this ShowMonitorSystemResponseBodySpec. + :type type: str + """ + self._type = type + + @property + def instrumentation(self): + """Gets the instrumentation of this ShowMonitorSystemResponseBodySpec. + + 探针注入方式,包括automatic和manual。 + + :return: The instrumentation of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._instrumentation + + @instrumentation.setter + def instrumentation(self, instrumentation): + """Sets the instrumentation of this ShowMonitorSystemResponseBodySpec. + + 探针注入方式,包括automatic和manual。 + + :param instrumentation: The instrumentation of this ShowMonitorSystemResponseBodySpec. + :type instrumentation: str + """ + self._instrumentation = instrumentation + + @property + def access_key(self): + """Gets the access_key of this ShowMonitorSystemResponseBodySpec. + + apm2 access_key。 + + :return: The access_key of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._access_key + + @access_key.setter + def access_key(self, access_key): + """Sets the access_key of this ShowMonitorSystemResponseBodySpec. + + apm2 access_key。 + + :param access_key: The access_key of this ShowMonitorSystemResponseBodySpec. + :type access_key: str + """ + self._access_key = access_key + + @property + def access_value(self): + """Gets the access_value of this ShowMonitorSystemResponseBodySpec. + + apm2 access_value。 + + :return: The access_value of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._access_value + + @access_value.setter + def access_value(self, access_value): + """Sets the access_value of this ShowMonitorSystemResponseBodySpec. + + apm2 access_value。 + + :param access_value: The access_value of this ShowMonitorSystemResponseBodySpec. + :type access_value: str + """ + self._access_value = access_value + + @property + def access_token(self): + """Gets the access_token of this ShowMonitorSystemResponseBodySpec. + + apm opentelemetry接入token。 + + :return: The access_token of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._access_token + + @access_token.setter + def access_token(self, access_token): + """Sets the access_token of this ShowMonitorSystemResponseBodySpec. + + apm opentelemetry接入token。 + + :param access_token: The access_token of this ShowMonitorSystemResponseBodySpec. + :type access_token: str + """ + self._access_token = access_token + + @property + def master_address(self): + """Gets the master_address of this ShowMonitorSystemResponseBodySpec. + + 探针接入点。 + + :return: The master_address of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._master_address + + @master_address.setter + def master_address(self, master_address): + """Sets the master_address of this ShowMonitorSystemResponseBodySpec. + + 探针接入点。 + + :param master_address: The master_address of this ShowMonitorSystemResponseBodySpec. + :type master_address: str + """ + self._master_address = master_address + + @property + def apm_application(self): + """Gets the apm_application of this ShowMonitorSystemResponseBodySpec. + + apm应用名。 + + :return: The apm_application of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._apm_application + + @apm_application.setter + def apm_application(self, apm_application): + """Sets the apm_application of this ShowMonitorSystemResponseBodySpec. + + apm应用名。 + + :param apm_application: The apm_application of this ShowMonitorSystemResponseBodySpec. + :type apm_application: str + """ + self._apm_application = apm_application + + @property + def version(self): + """Gets the version of this ShowMonitorSystemResponseBodySpec. + + apm-agent/opentelemetry-agent探针版本。 + + :return: The version of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ShowMonitorSystemResponseBodySpec. + + apm-agent/opentelemetry-agent探针版本。 + + :param version: The version of this ShowMonitorSystemResponseBodySpec. + :type version: str + """ + self._version = version + + @property + def image_pull_policy(self): + """Gets the image_pull_policy of this ShowMonitorSystemResponseBodySpec. + + 探针镜像更新策略。 + + :return: The image_pull_policy of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._image_pull_policy + + @image_pull_policy.setter + def image_pull_policy(self, image_pull_policy): + """Sets the image_pull_policy of this ShowMonitorSystemResponseBodySpec. + + 探针镜像更新策略。 + + :param image_pull_policy: The image_pull_policy of this ShowMonitorSystemResponseBodySpec. + :type image_pull_policy: str + """ + self._image_pull_policy = image_pull_policy + + @property + def created_at(self): + """Gets the created_at of this ShowMonitorSystemResponseBodySpec. + + 创建时间。 + + :return: The created_at of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ShowMonitorSystemResponseBodySpec. + + 创建时间。 + + :param created_at: The created_at of this ShowMonitorSystemResponseBodySpec. + :type created_at: str + """ + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this ShowMonitorSystemResponseBodySpec. + + 更新时间。 + + :return: The updated_at of this ShowMonitorSystemResponseBodySpec. + :rtype: str + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this ShowMonitorSystemResponseBodySpec. + + 更新时间。 + + :param updated_at: The updated_at of this ShowMonitorSystemResponseBodySpec. + :type updated_at: str + """ + self._updated_at = updated_at + + 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, ShowMonitorSystemResponseBodySpec): + 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-cae/huaweicloudsdkcae/v1/model/update_monitor_system_request.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/update_monitor_system_request.py new file mode 100644 index 0000000000..c952b634cd --- /dev/null +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/update_monitor_system_request.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateMonitorSystemRequest: + + """ + 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_enterprise_project_id': 'str', + 'x_environment_id': 'str', + 'monitor_system_id': 'str', + 'body': 'MonitorSystemRequestBody' + } + + attribute_map = { + 'x_enterprise_project_id': 'X-Enterprise-Project-ID', + 'x_environment_id': 'X-Environment-ID', + 'monitor_system_id': 'monitor_system_id', + 'body': 'body' + } + + def __init__(self, x_enterprise_project_id=None, x_environment_id=None, monitor_system_id=None, body=None): + """UpdateMonitorSystemRequest + + The model defined in huaweicloud sdk + + :param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 + :type x_enterprise_project_id: str + :param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。 + :type x_environment_id: str + :param monitor_system_id: 监控系统配置ID。 + :type monitor_system_id: str + :param body: Body of the UpdateMonitorSystemRequest + :type body: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody` + """ + + + + self._x_enterprise_project_id = None + self._x_environment_id = None + self._monitor_system_id = None + self._body = None + self.discriminator = None + + if x_enterprise_project_id is not None: + self.x_enterprise_project_id = x_enterprise_project_id + self.x_environment_id = x_environment_id + self.monitor_system_id = monitor_system_id + if body is not None: + self.body = body + + @property + def x_enterprise_project_id(self): + """Gets the x_enterprise_project_id of this UpdateMonitorSystemRequest. + + 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 + + :return: The x_enterprise_project_id of this UpdateMonitorSystemRequest. + :rtype: str + """ + return self._x_enterprise_project_id + + @x_enterprise_project_id.setter + def x_enterprise_project_id(self, x_enterprise_project_id): + """Sets the x_enterprise_project_id of this UpdateMonitorSystemRequest. + + 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 + + :param x_enterprise_project_id: The x_enterprise_project_id of this UpdateMonitorSystemRequest. + :type x_enterprise_project_id: str + """ + self._x_enterprise_project_id = x_enterprise_project_id + + @property + def x_environment_id(self): + """Gets the x_environment_id of this UpdateMonitorSystemRequest. + + 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。 + + :return: The x_environment_id of this UpdateMonitorSystemRequest. + :rtype: str + """ + return self._x_environment_id + + @x_environment_id.setter + def x_environment_id(self, x_environment_id): + """Sets the x_environment_id of this UpdateMonitorSystemRequest. + + 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。 + + :param x_environment_id: The x_environment_id of this UpdateMonitorSystemRequest. + :type x_environment_id: str + """ + self._x_environment_id = x_environment_id + + @property + def monitor_system_id(self): + """Gets the monitor_system_id of this UpdateMonitorSystemRequest. + + 监控系统配置ID。 + + :return: The monitor_system_id of this UpdateMonitorSystemRequest. + :rtype: str + """ + return self._monitor_system_id + + @monitor_system_id.setter + def monitor_system_id(self, monitor_system_id): + """Sets the monitor_system_id of this UpdateMonitorSystemRequest. + + 监控系统配置ID。 + + :param monitor_system_id: The monitor_system_id of this UpdateMonitorSystemRequest. + :type monitor_system_id: str + """ + self._monitor_system_id = monitor_system_id + + @property + def body(self): + """Gets the body of this UpdateMonitorSystemRequest. + + :return: The body of this UpdateMonitorSystemRequest. + :rtype: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateMonitorSystemRequest. + + :param body: The body of this UpdateMonitorSystemRequest. + :type body: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody` + """ + 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, UpdateMonitorSystemRequest): + 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-cae/huaweicloudsdkcae/v1/model/update_monitor_system_response.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/update_monitor_system_response.py new file mode 100644 index 0000000000..895830982f --- /dev/null +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/update_monitor_system_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 UpdateMonitorSystemResponse(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): + """UpdateMonitorSystemResponse + + The model defined in huaweicloud sdk + + """ + + super(UpdateMonitorSystemResponse, 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, UpdateMonitorSystemResponse): + 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-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index aa7403cead..e5789c3198 100644 --- a/huaweicloud-sdk-cae/setup.py +++ b/huaweicloud-sdk-cae/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcae" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index a10619364e..b523ac23c4 100644 --- a/huaweicloud-sdk-campusgo/setup.py +++ b/huaweicloud-sdk-campusgo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcampusgo" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 47ad5a4ebd..014b897512 100644 --- a/huaweicloud-sdk-cbh/setup.py +++ b/huaweicloud-sdk-cbh/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbh" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index de65e2c139..d12dde281b 100644 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index 8d58af8228..424b4f0fbf 100644 --- a/huaweicloud-sdk-cbs/setup.py +++ b/huaweicloud-sdk-cbs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbs" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index d504c72a6e..b724c2b558 100644 --- a/huaweicloud-sdk-cc/setup.py +++ b/huaweicloud-sdk-cc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcc" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index 37335c6524..fff8d21b99 100644 --- a/huaweicloud-sdk-cce/setup.py +++ b/huaweicloud-sdk-cce/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index 565b174bf3..986b76005d 100644 --- a/huaweicloud-sdk-ccm/setup.py +++ b/huaweicloud-sdk-ccm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkccm" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index 679315d667..3f6d78318c 100644 --- a/huaweicloud-sdk-cdm/setup.py +++ b/huaweicloud-sdk-cdm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcdm" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index 866175c594..557f0cdd54 100644 --- a/huaweicloud-sdk-cdn/setup.py +++ b/huaweicloud-sdk-cdn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcdn" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v1/region/ces_region.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v1/region/ces_region.py index 0e93b7acba..a3ad6be46c 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v1/region/ces_region.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v1/region/ces_region.py @@ -47,6 +47,8 @@ class CesRegion: "https://ces.tr-west-1.myhuaweicloud.com") EU_WEST_101 = Region("eu-west-101", "https://ces.eu-west-101.myhuaweicloud.eu") + ME_EAST_1 = Region("me-east-1", + "https://ces.me-east-1.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, @@ -68,6 +70,7 @@ class CesRegion: "ap-southeast-4": AP_SOUTHEAST_4, "tr-west-1": TR_WEST_1, "eu-west-101": EU_WEST_101, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/alarm_template_policies.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/alarm_template_policies.py index 99225d56f0..2d1925f30a 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/alarm_template_policies.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/alarm_template_policies.py @@ -65,7 +65,7 @@ def __init__(self, namespace=None, dimension_name=None, metric_name=None, period :type value: float :param unit: 数据的单位字符串,长度不超过32 :type unit: str - :param count: 告警连续触发次数,正整数[1, 5] + :param count: 次数,事件告警时参数值为1~180(包括1和180);指标告警和站点告警时,次数采用枚举值,枚举值分别为:1、2、3、4、5、10、15、30、60、90、120、180 :type count: int :param alarm_level: 告警级别,1为紧急,2为重要,3为次要,4为提示 :type alarm_level: int @@ -280,7 +280,7 @@ def unit(self, unit): def count(self): """Gets the count of this AlarmTemplatePolicies. - 告警连续触发次数,正整数[1, 5] + 次数,事件告警时参数值为1~180(包括1和180);指标告警和站点告警时,次数采用枚举值,枚举值分别为:1、2、3、4、5、10、15、30、60、90、120、180 :return: The count of this AlarmTemplatePolicies. :rtype: int @@ -291,7 +291,7 @@ def count(self): def count(self, count): """Sets the count of this AlarmTemplatePolicies. - 告警连续触发次数,正整数[1, 5] + 次数,事件告警时参数值为1~180(包括1和180);指标告警和站点告警时,次数采用枚举值,枚举值分别为:1、2、3、4、5、10、15、30、60、90、120、180 :param count: The count of this AlarmTemplatePolicies. :type count: int diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/create_alarm_template_request_body.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/create_alarm_template_request_body.py index 2c07f33565..58b18e5bd8 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/create_alarm_template_request_body.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/create_alarm_template_request_body.py @@ -19,16 +19,18 @@ class CreateAlarmTemplateRequestBody: openapi_types = { 'template_name': 'str', 'template_description': 'str', + 'template_type': 'int', 'policies': 'list[Policies]' } attribute_map = { 'template_name': 'template_name', 'template_description': 'template_description', + 'template_type': 'template_type', 'policies': 'policies' } - def __init__(self, template_name=None, template_description=None, policies=None): + def __init__(self, template_name=None, template_description=None, template_type=None, policies=None): """CreateAlarmTemplateRequestBody The model defined in huaweicloud sdk @@ -37,6 +39,8 @@ def __init__(self, template_name=None, template_description=None, policies=None) :type template_name: str :param template_description: 告警模板的描述,长度范围[0,256],该字段默认值为空字符串 :type template_description: str + :param template_type: 自定义告警模板类型 0:指标 2: 事件 + :type template_type: int :param policies: 告警模板策略列表 :type policies: list[:class:`huaweicloudsdkces.v2.Policies`] """ @@ -45,12 +49,15 @@ def __init__(self, template_name=None, template_description=None, policies=None) self._template_name = None self._template_description = None + self._template_type = None self._policies = None self.discriminator = None self.template_name = template_name if template_description is not None: self.template_description = template_description + if template_type is not None: + self.template_type = template_type self.policies = policies @property @@ -97,6 +104,28 @@ def template_description(self, template_description): """ self._template_description = template_description + @property + def template_type(self): + """Gets the template_type of this CreateAlarmTemplateRequestBody. + + 自定义告警模板类型 0:指标 2: 事件 + + :return: The template_type of this CreateAlarmTemplateRequestBody. + :rtype: int + """ + return self._template_type + + @template_type.setter + def template_type(self, template_type): + """Sets the template_type of this CreateAlarmTemplateRequestBody. + + 自定义告警模板类型 0:指标 2: 事件 + + :param template_type: The template_type of this CreateAlarmTemplateRequestBody. + :type template_type: int + """ + self._template_type = template_type + @property def policies(self): """Gets the policies of this CreateAlarmTemplateRequestBody. diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_templates_request.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_templates_request.py index 227e3b9090..bd05eb0d9f 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_templates_request.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_templates_request.py @@ -47,7 +47,7 @@ def __init__(self, offset=None, limit=None, namespace=None, dim_name=None, templ :type namespace: str :param dim_name: 资源维度,必须以字母开头,多维度用\",\"分割,只能包含0-9/a-z/A-Z/_/-,每个维度的最大长度为32 :type dim_name: str - :param template_type: 模板类型(custom代表默认自定义模板,system代表系统模板),不传自定义和系统均需返回 + :param template_type: 模板类型(system代表默认指标模板,custom代表自定义指标模板,system_event代表默认事件模板,custom_event代表自定义事件模板,system_custom_event代表全部事件模板),不传返回全部指标模板 :type template_type: str :param template_name: 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128],支持模糊匹配 :type template_name: str @@ -168,7 +168,7 @@ def dim_name(self, dim_name): def template_type(self): """Gets the template_type of this ListAlarmTemplatesRequest. - 模板类型(custom代表默认自定义模板,system代表系统模板),不传自定义和系统均需返回 + 模板类型(system代表默认指标模板,custom代表自定义指标模板,system_event代表默认事件模板,custom_event代表自定义事件模板,system_custom_event代表全部事件模板),不传返回全部指标模板 :return: The template_type of this ListAlarmTemplatesRequest. :rtype: str @@ -179,7 +179,7 @@ def template_type(self): def template_type(self, template_type): """Sets the template_type of this ListAlarmTemplatesRequest. - 模板类型(custom代表默认自定义模板,system代表系统模板),不传自定义和系统均需返回 + 模板类型(system代表默认指标模板,custom代表自定义指标模板,system_event代表默认事件模板,custom_event代表自定义事件模板,system_custom_event代表全部事件模板),不传返回全部指标模板 :param template_type: The template_type of this ListAlarmTemplatesRequest. :type template_type: str diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/policies.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/policies.py index c056ccaf9f..1074bf89e5 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/policies.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/policies.py @@ -65,7 +65,7 @@ def __init__(self, namespace=None, dimension_name=None, metric_name=None, period :type value: float :param unit: 数据的单位字符串,长度不超过32 :type unit: str - :param count: 告警连续触发次数,正整数[1, 5] + :param count: 告警连续触发次数,事件告警时参数值为1~180(包括1和180);指标告警和站点告警时,次数采用枚举值,枚举值分别为:1、2、3、4、5、10、15、30、60、90、120、180 :type count: int :param alarm_level: 告警级别,1为紧急,2为重要,3为次要,4为提示 :type alarm_level: int @@ -89,7 +89,8 @@ def __init__(self, namespace=None, dimension_name=None, metric_name=None, period self.discriminator = None self.namespace = namespace - self.dimension_name = dimension_name + if dimension_name is not None: + self.dimension_name = dimension_name self.metric_name = metric_name self.period = period self.filter = filter @@ -282,7 +283,7 @@ def unit(self, unit): def count(self): """Gets the count of this Policies. - 告警连续触发次数,正整数[1, 5] + 告警连续触发次数,事件告警时参数值为1~180(包括1和180);指标告警和站点告警时,次数采用枚举值,枚举值分别为:1、2、3、4、5、10、15、30、60、90、120、180 :return: The count of this Policies. :rtype: int @@ -293,7 +294,7 @@ def count(self): def count(self, count): """Sets the count of this Policies. - 告警连续触发次数,正整数[1, 5] + 告警连续触发次数,事件告警时参数值为1~180(包括1和180);指标告警和站点告警时,次数采用枚举值,枚举值分别为:1、2、3、4、5、10、15、30、60、90、120、180 :param count: The count of this Policies. :type count: int diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py index 0e93b7acba..a3ad6be46c 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py @@ -47,6 +47,8 @@ class CesRegion: "https://ces.tr-west-1.myhuaweicloud.com") EU_WEST_101 = Region("eu-west-101", "https://ces.eu-west-101.myhuaweicloud.eu") + ME_EAST_1 = Region("me-east-1", + "https://ces.me-east-1.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, @@ -68,6 +70,7 @@ class CesRegion: "ap-southeast-4": AP_SOUTHEAST_4, "tr-west-1": TR_WEST_1, "eu-west-101": EU_WEST_101, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v3/region/ces_region.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v3/region/ces_region.py index 0e93b7acba..a3ad6be46c 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v3/region/ces_region.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v3/region/ces_region.py @@ -47,6 +47,8 @@ class CesRegion: "https://ces.tr-west-1.myhuaweicloud.com") EU_WEST_101 = Region("eu-west-101", "https://ces.eu-west-101.myhuaweicloud.eu") + ME_EAST_1 = Region("me-east-1", + "https://ces.me-east-1.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, @@ -68,6 +70,7 @@ class CesRegion: "ap-southeast-4": AP_SOUTHEAST_4, "tr-west-1": TR_WEST_1, "eu-west-101": EU_WEST_101, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 4ebdb295ff..c2ae1cc27b 100644 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/__init__.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/__init__.py index 0ca04a044f..489c3d5484 100644 --- a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/__init__.py +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/__init__.py @@ -68,6 +68,12 @@ from huaweicloudsdkcfw.v1.model.create_east_west_firewall_request import CreateEastWestFirewallRequest from huaweicloudsdkcfw.v1.model.create_east_west_firewall_request_body import CreateEastWestFirewallRequestBody from huaweicloudsdkcfw.v1.model.create_east_west_firewall_response import CreateEastWestFirewallResponse +from huaweicloudsdkcfw.v1.model.create_firewall_req import CreateFirewallReq +from huaweicloudsdkcfw.v1.model.create_firewall_req_charge_info import CreateFirewallReqChargeInfo +from huaweicloudsdkcfw.v1.model.create_firewall_req_flavor import CreateFirewallReqFlavor +from huaweicloudsdkcfw.v1.model.create_firewall_req_tags import CreateFirewallReqTags +from huaweicloudsdkcfw.v1.model.create_firewall_request import CreateFirewallRequest +from huaweicloudsdkcfw.v1.model.create_firewall_response import CreateFirewallResponse from huaweicloudsdkcfw.v1.model.delete_acl_rule_hit_count_request import DeleteAclRuleHitCountRequest from huaweicloudsdkcfw.v1.model.delete_acl_rule_hit_count_response import DeleteAclRuleHitCountResponse from huaweicloudsdkcfw.v1.model.delete_acl_rule_request import DeleteAclRuleRequest @@ -84,6 +90,8 @@ from huaweicloudsdkcfw.v1.model.delete_domain_set_response import DeleteDomainSetResponse from huaweicloudsdkcfw.v1.model.delete_domains_request import DeleteDomainsRequest from huaweicloudsdkcfw.v1.model.delete_domains_response import DeleteDomainsResponse +from huaweicloudsdkcfw.v1.model.delete_firewall_request import DeleteFirewallRequest +from huaweicloudsdkcfw.v1.model.delete_firewall_response import DeleteFirewallResponse from huaweicloudsdkcfw.v1.model.delete_rule_acl_dto import DeleteRuleAclDto from huaweicloudsdkcfw.v1.model.delete_service_item_dto import DeleteServiceItemDto from huaweicloudsdkcfw.v1.model.delete_service_item_request import DeleteServiceItemRequest @@ -102,6 +110,7 @@ from huaweicloudsdkcfw.v1.model.eip_resource import EipResource from huaweicloudsdkcfw.v1.model.eip_response_data import EipResponseData from huaweicloudsdkcfw.v1.model.er_instance import ErInstance +from huaweicloudsdkcfw.v1.model.error_rsp import ErrorRsp from huaweicloudsdkcfw.v1.model.ew_protect_resource_info import EwProtectResourceInfo from huaweicloudsdkcfw.v1.model.firewall_instance_resource import FirewallInstanceResource from huaweicloudsdkcfw.v1.model.firewall_instance_vo import FirewallInstanceVO @@ -165,6 +174,8 @@ from huaweicloudsdkcfw.v1.model.list_ips_protect_mode_response import ListIpsProtectModeResponse from huaweicloudsdkcfw.v1.model.list_ips_switch_status_request import ListIpsSwitchStatusRequest from huaweicloudsdkcfw.v1.model.list_ips_switch_status_response import ListIpsSwitchStatusResponse +from huaweicloudsdkcfw.v1.model.list_job_request import ListJobRequest +from huaweicloudsdkcfw.v1.model.list_job_response import ListJobResponse from huaweicloudsdkcfw.v1.model.list_log_config_request import ListLogConfigRequest from huaweicloudsdkcfw.v1.model.list_log_config_response import ListLogConfigResponse from huaweicloudsdkcfw.v1.model.list_protected_vpcs_request import ListProtectedVpcsRequest diff --git a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/cfw_async_client.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/cfw_async_client.py index ff9c4bfd49..c71a1fd3b2 100644 --- a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/cfw_async_client.py +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/cfw_async_client.py @@ -862,6 +862,75 @@ def _create_east_west_firewall_http_info(self, request): return http_info + def create_firewall_async(self, request): + """创建防火墙 + + 创建防火墙 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateFirewall + :type request: :class:`huaweicloudsdkcfw.v1.CreateFirewallRequest` + :rtype: :class:`huaweicloudsdkcfw.v1.CreateFirewallResponse` + """ + http_info = self._create_firewall_http_info(request) + return self._call_api(**http_info) + + def create_firewall_async_invoker(self, request): + http_info = self._create_firewall_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_firewall_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/firewall", + "request_type": request.__class__.__name__, + "response_type": "CreateFirewallResponse" + } + + 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_client_token' in local_var_params: + header_params['X-Client-Token'] = local_var_params['x_client_token'] + if 'x_trace_id' in local_var_params: + header_params['X-Trace-Id'] = local_var_params['x_trace_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 delete_address_item_async(self, request): """删除地址组成员 @@ -1207,6 +1276,71 @@ def _delete_domains_http_info(self, request): return http_info + def delete_firewall_async(self, request): + """删除防火墙 + + 删除防火墙,仅按需生效 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteFirewall + :type request: :class:`huaweicloudsdkcfw.v1.DeleteFirewallRequest` + :rtype: :class:`huaweicloudsdkcfw.v1.DeleteFirewallResponse` + """ + http_info = self._delete_firewall_http_info(request) + return self._call_api(**http_info) + + def delete_firewall_async_invoker(self, request): + http_info = self._delete_firewall_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_firewall_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/{project_id}/firewall/{resource_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteFirewallResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'resource_id' in local_var_params: + path_params['resource_id'] = local_var_params['resource_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_service_item_async(self, request): """删除服务成员 @@ -2469,6 +2603,71 @@ def _list_flow_logs_http_info(self, request): return http_info + def list_job_async(self, request): + """获取CFW任务执行状态 + + 获取CFW任务执行状态 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListJob + :type request: :class:`huaweicloudsdkcfw.v1.ListJobRequest` + :rtype: :class:`huaweicloudsdkcfw.v1.ListJobResponse` + """ + http_info = self._list_job_http_info(request) + return self._call_api(**http_info) + + def list_job_async_invoker(self, request): + http_info = self._list_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_job_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ListJobResponse" + } + + 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 = {} + + 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_log_config_async(self, request): """获取日志配置 diff --git a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/cfw_client.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/cfw_client.py index b3dfaa830b..fad8e7fd17 100644 --- a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/cfw_client.py +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/cfw_client.py @@ -862,6 +862,75 @@ def _create_east_west_firewall_http_info(cls, request): return http_info + def create_firewall(self, request): + """创建防火墙 + + 创建防火墙 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateFirewall + :type request: :class:`huaweicloudsdkcfw.v1.CreateFirewallRequest` + :rtype: :class:`huaweicloudsdkcfw.v1.CreateFirewallResponse` + """ + http_info = self._create_firewall_http_info(request) + return self._call_api(**http_info) + + def create_firewall_invoker(self, request): + http_info = self._create_firewall_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_firewall_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/firewall", + "request_type": request.__class__.__name__, + "response_type": "CreateFirewallResponse" + } + + 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_client_token' in local_var_params: + header_params['X-Client-Token'] = local_var_params['x_client_token'] + if 'x_trace_id' in local_var_params: + header_params['X-Trace-Id'] = local_var_params['x_trace_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 delete_address_item(self, request): """删除地址组成员 @@ -1207,6 +1276,71 @@ def _delete_domains_http_info(cls, request): return http_info + def delete_firewall(self, request): + """删除防火墙 + + 删除防火墙,仅按需生效 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteFirewall + :type request: :class:`huaweicloudsdkcfw.v1.DeleteFirewallRequest` + :rtype: :class:`huaweicloudsdkcfw.v1.DeleteFirewallResponse` + """ + http_info = self._delete_firewall_http_info(request) + return self._call_api(**http_info) + + def delete_firewall_invoker(self, request): + http_info = self._delete_firewall_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_firewall_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/{project_id}/firewall/{resource_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteFirewallResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'resource_id' in local_var_params: + path_params['resource_id'] = local_var_params['resource_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_service_item(self, request): """删除服务成员 @@ -2469,6 +2603,71 @@ def _list_flow_logs_http_info(cls, request): return http_info + def list_job(self, request): + """获取CFW任务执行状态 + + 获取CFW任务执行状态 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListJob + :type request: :class:`huaweicloudsdkcfw.v1.ListJobRequest` + :rtype: :class:`huaweicloudsdkcfw.v1.ListJobResponse` + """ + http_info = self._list_job_http_info(request) + return self._call_api(**http_info) + + def list_job_invoker(self, request): + http_info = self._list_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_job_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ListJobResponse" + } + + 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 = {} + + 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_log_config(self, request): """获取日志配置 diff --git a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/__init__.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/__init__.py index af4b0f06a8..b2b024d3ef 100644 --- a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/__init__.py +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/__init__.py @@ -66,6 +66,12 @@ from huaweicloudsdkcfw.v1.model.create_east_west_firewall_request import CreateEastWestFirewallRequest from huaweicloudsdkcfw.v1.model.create_east_west_firewall_request_body import CreateEastWestFirewallRequestBody from huaweicloudsdkcfw.v1.model.create_east_west_firewall_response import CreateEastWestFirewallResponse +from huaweicloudsdkcfw.v1.model.create_firewall_req import CreateFirewallReq +from huaweicloudsdkcfw.v1.model.create_firewall_req_charge_info import CreateFirewallReqChargeInfo +from huaweicloudsdkcfw.v1.model.create_firewall_req_flavor import CreateFirewallReqFlavor +from huaweicloudsdkcfw.v1.model.create_firewall_req_tags import CreateFirewallReqTags +from huaweicloudsdkcfw.v1.model.create_firewall_request import CreateFirewallRequest +from huaweicloudsdkcfw.v1.model.create_firewall_response import CreateFirewallResponse from huaweicloudsdkcfw.v1.model.delete_acl_rule_hit_count_request import DeleteAclRuleHitCountRequest from huaweicloudsdkcfw.v1.model.delete_acl_rule_hit_count_response import DeleteAclRuleHitCountResponse from huaweicloudsdkcfw.v1.model.delete_acl_rule_request import DeleteAclRuleRequest @@ -82,6 +88,8 @@ from huaweicloudsdkcfw.v1.model.delete_domain_set_response import DeleteDomainSetResponse from huaweicloudsdkcfw.v1.model.delete_domains_request import DeleteDomainsRequest from huaweicloudsdkcfw.v1.model.delete_domains_response import DeleteDomainsResponse +from huaweicloudsdkcfw.v1.model.delete_firewall_request import DeleteFirewallRequest +from huaweicloudsdkcfw.v1.model.delete_firewall_response import DeleteFirewallResponse from huaweicloudsdkcfw.v1.model.delete_rule_acl_dto import DeleteRuleAclDto from huaweicloudsdkcfw.v1.model.delete_service_item_dto import DeleteServiceItemDto from huaweicloudsdkcfw.v1.model.delete_service_item_request import DeleteServiceItemRequest @@ -100,6 +108,7 @@ from huaweicloudsdkcfw.v1.model.eip_resource import EipResource from huaweicloudsdkcfw.v1.model.eip_response_data import EipResponseData from huaweicloudsdkcfw.v1.model.er_instance import ErInstance +from huaweicloudsdkcfw.v1.model.error_rsp import ErrorRsp from huaweicloudsdkcfw.v1.model.ew_protect_resource_info import EwProtectResourceInfo from huaweicloudsdkcfw.v1.model.firewall_instance_resource import FirewallInstanceResource from huaweicloudsdkcfw.v1.model.firewall_instance_vo import FirewallInstanceVO @@ -163,6 +172,8 @@ from huaweicloudsdkcfw.v1.model.list_ips_protect_mode_response import ListIpsProtectModeResponse from huaweicloudsdkcfw.v1.model.list_ips_switch_status_request import ListIpsSwitchStatusRequest from huaweicloudsdkcfw.v1.model.list_ips_switch_status_response import ListIpsSwitchStatusResponse +from huaweicloudsdkcfw.v1.model.list_job_request import ListJobRequest +from huaweicloudsdkcfw.v1.model.list_job_response import ListJobResponse from huaweicloudsdkcfw.v1.model.list_log_config_request import ListLogConfigRequest from huaweicloudsdkcfw.v1.model.list_log_config_response import ListLogConfigResponse from huaweicloudsdkcfw.v1.model.list_protected_vpcs_request import ListProtectedVpcsRequest diff --git a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req.py new file mode 100644 index 0000000000..600f5d1882 --- /dev/null +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req.py @@ -0,0 +1,220 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFirewallReq: + + """ + 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', + 'enterprise_project_id': 'str', + 'tags': 'list[CreateFirewallReqTags]', + 'flavor': 'CreateFirewallReqFlavor', + 'charge_info': 'CreateFirewallReqChargeInfo' + } + + attribute_map = { + 'name': 'name', + 'enterprise_project_id': 'enterprise_project_id', + 'tags': 'tags', + 'flavor': 'flavor', + 'charge_info': 'charge_info' + } + + def __init__(self, name=None, enterprise_project_id=None, tags=None, flavor=None, charge_info=None): + """CreateFirewallReq + + The model defined in huaweicloud sdk + + :param name: 防火墙名称 + :type name: str + :param enterprise_project_id: 企业项目ID,租户未开启企业项目时传0 + :type enterprise_project_id: str + :param tags: 资源标签 + :type tags: list[:class:`huaweicloudsdkcfw.v1.CreateFirewallReqTags`] + :param flavor: + :type flavor: :class:`huaweicloudsdkcfw.v1.CreateFirewallReqFlavor` + :param charge_info: + :type charge_info: :class:`huaweicloudsdkcfw.v1.CreateFirewallReqChargeInfo` + """ + + + + self._name = None + self._enterprise_project_id = None + self._tags = None + self._flavor = None + self._charge_info = None + self.discriminator = None + + self.name = name + self.enterprise_project_id = enterprise_project_id + if tags is not None: + self.tags = tags + if flavor is not None: + self.flavor = flavor + self.charge_info = charge_info + + @property + def name(self): + """Gets the name of this CreateFirewallReq. + + 防火墙名称 + + :return: The name of this CreateFirewallReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateFirewallReq. + + 防火墙名称 + + :param name: The name of this CreateFirewallReq. + :type name: str + """ + self._name = name + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateFirewallReq. + + 企业项目ID,租户未开启企业项目时传0 + + :return: The enterprise_project_id of this CreateFirewallReq. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this CreateFirewallReq. + + 企业项目ID,租户未开启企业项目时传0 + + :param enterprise_project_id: The enterprise_project_id of this CreateFirewallReq. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def tags(self): + """Gets the tags of this CreateFirewallReq. + + 资源标签 + + :return: The tags of this CreateFirewallReq. + :rtype: list[:class:`huaweicloudsdkcfw.v1.CreateFirewallReqTags`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateFirewallReq. + + 资源标签 + + :param tags: The tags of this CreateFirewallReq. + :type tags: list[:class:`huaweicloudsdkcfw.v1.CreateFirewallReqTags`] + """ + self._tags = tags + + @property + def flavor(self): + """Gets the flavor of this CreateFirewallReq. + + :return: The flavor of this CreateFirewallReq. + :rtype: :class:`huaweicloudsdkcfw.v1.CreateFirewallReqFlavor` + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this CreateFirewallReq. + + :param flavor: The flavor of this CreateFirewallReq. + :type flavor: :class:`huaweicloudsdkcfw.v1.CreateFirewallReqFlavor` + """ + self._flavor = flavor + + @property + def charge_info(self): + """Gets the charge_info of this CreateFirewallReq. + + :return: The charge_info of this CreateFirewallReq. + :rtype: :class:`huaweicloudsdkcfw.v1.CreateFirewallReqChargeInfo` + """ + return self._charge_info + + @charge_info.setter + def charge_info(self, charge_info): + """Sets the charge_info of this CreateFirewallReq. + + :param charge_info: The charge_info of this CreateFirewallReq. + :type charge_info: :class:`huaweicloudsdkcfw.v1.CreateFirewallReqChargeInfo` + """ + self._charge_info = charge_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, CreateFirewallReq): + 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-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req_charge_info.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req_charge_info.py new file mode 100644 index 0000000000..696539c5d1 --- /dev/null +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req_charge_info.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFirewallReqChargeInfo: + + """ + 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 = { + 'charge_mode': 'str', + 'period_type': 'str', + 'period_num': 'int', + 'is_auto_renew': 'bool', + 'is_auto_pay': 'bool' + } + + attribute_map = { + 'charge_mode': 'charge_mode', + 'period_type': 'period_type', + 'period_num': 'period_num', + 'is_auto_renew': 'is_auto_renew', + 'is_auto_pay': 'is_auto_pay' + } + + def __init__(self, charge_mode=None, period_type=None, period_num=None, is_auto_renew=None, is_auto_pay=None): + """CreateFirewallReqChargeInfo + + The model defined in huaweicloud sdk + + :param charge_mode: 计费模式。 取值范围: prePaid:预付费,即包年/包月。 postPaid:后付费,即按需付费。 + :type charge_mode: str + :param period_type: 订购周期类型。 取值范围: month:包月。 year:包年。 说明:“charge_mode”为“prePaid”时生效,且为必选值。 + :type period_type: str + :param period_num: “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围: 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3。 + :type period_num: int + :param is_auto_renew: 创建包周期实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 true,为自动续订。 false,为不自动续订,默认该方式。 + :type is_auto_renew: bool + :param is_auto_pay: 创建包周期时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 true,为自动支付。(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券) false,为手动支付,默认该方式。(需要客户手动去支付,客户可以选择折扣和优惠券) + :type is_auto_pay: bool + """ + + + + self._charge_mode = None + self._period_type = None + self._period_num = None + self._is_auto_renew = None + self._is_auto_pay = None + self.discriminator = None + + self.charge_mode = charge_mode + if period_type is not None: + self.period_type = period_type + if period_num is not None: + self.period_num = period_num + if is_auto_renew is not None: + self.is_auto_renew = is_auto_renew + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + + @property + def charge_mode(self): + """Gets the charge_mode of this CreateFirewallReqChargeInfo. + + 计费模式。 取值范围: prePaid:预付费,即包年/包月。 postPaid:后付费,即按需付费。 + + :return: The charge_mode of this CreateFirewallReqChargeInfo. + :rtype: str + """ + return self._charge_mode + + @charge_mode.setter + def charge_mode(self, charge_mode): + """Sets the charge_mode of this CreateFirewallReqChargeInfo. + + 计费模式。 取值范围: prePaid:预付费,即包年/包月。 postPaid:后付费,即按需付费。 + + :param charge_mode: The charge_mode of this CreateFirewallReqChargeInfo. + :type charge_mode: str + """ + self._charge_mode = charge_mode + + @property + def period_type(self): + """Gets the period_type of this CreateFirewallReqChargeInfo. + + 订购周期类型。 取值范围: month:包月。 year:包年。 说明:“charge_mode”为“prePaid”时生效,且为必选值。 + + :return: The period_type of this CreateFirewallReqChargeInfo. + :rtype: str + """ + return self._period_type + + @period_type.setter + def period_type(self, period_type): + """Sets the period_type of this CreateFirewallReqChargeInfo. + + 订购周期类型。 取值范围: month:包月。 year:包年。 说明:“charge_mode”为“prePaid”时生效,且为必选值。 + + :param period_type: The period_type of this CreateFirewallReqChargeInfo. + :type period_type: str + """ + self._period_type = period_type + + @property + def period_num(self): + """Gets the period_num of this CreateFirewallReqChargeInfo. + + “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围: 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3。 + + :return: The period_num of this CreateFirewallReqChargeInfo. + :rtype: int + """ + return self._period_num + + @period_num.setter + def period_num(self, period_num): + """Sets the period_num of this CreateFirewallReqChargeInfo. + + “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围: 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3。 + + :param period_num: The period_num of this CreateFirewallReqChargeInfo. + :type period_num: int + """ + self._period_num = period_num + + @property + def is_auto_renew(self): + """Gets the is_auto_renew of this CreateFirewallReqChargeInfo. + + 创建包周期实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 true,为自动续订。 false,为不自动续订,默认该方式。 + + :return: The is_auto_renew of this CreateFirewallReqChargeInfo. + :rtype: bool + """ + return self._is_auto_renew + + @is_auto_renew.setter + def is_auto_renew(self, is_auto_renew): + """Sets the is_auto_renew of this CreateFirewallReqChargeInfo. + + 创建包周期实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 true,为自动续订。 false,为不自动续订,默认该方式。 + + :param is_auto_renew: The is_auto_renew of this CreateFirewallReqChargeInfo. + :type is_auto_renew: bool + """ + self._is_auto_renew = is_auto_renew + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this CreateFirewallReqChargeInfo. + + 创建包周期时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 true,为自动支付。(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券) false,为手动支付,默认该方式。(需要客户手动去支付,客户可以选择折扣和优惠券) + + :return: The is_auto_pay of this CreateFirewallReqChargeInfo. + :rtype: bool + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this CreateFirewallReqChargeInfo. + + 创建包周期时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 true,为自动支付。(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券) false,为手动支付,默认该方式。(需要客户手动去支付,客户可以选择折扣和优惠券) + + :param is_auto_pay: The is_auto_pay of this CreateFirewallReqChargeInfo. + :type is_auto_pay: bool + """ + self._is_auto_pay = is_auto_pay + + 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, CreateFirewallReqChargeInfo): + 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-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req_flavor.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req_flavor.py new file mode 100644 index 0000000000..46c7ab270b --- /dev/null +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req_flavor.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFirewallReqFlavor: + + """ + 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 = { + 'version': 'str', + 'extend_eip_count': 'int', + 'extend_bandwidth': 'int', + 'extend_vpc_count': 'int' + } + + attribute_map = { + 'version': 'version', + 'extend_eip_count': 'extend_eip_count', + 'extend_bandwidth': 'extend_bandwidth', + 'extend_vpc_count': 'extend_vpc_count' + } + + def __init__(self, version=None, extend_eip_count=None, extend_bandwidth=None, extend_vpc_count=None): + """CreateFirewallReqFlavor + + The model defined in huaweicloud sdk + + :param version: 防火墙版本 “charge_mode”为“prePaid”时,仅支持专业版。 “charge_mode”为“postPaid”时,支持标准版、专业版。 Standard - 标准版 Professional - 专业版 Platinum - 铂金版,防火墙版本“charge_mode”为\"postPaid\"时,仅支持专业版。“charge_mode”为“prePaid”时,支持标准版、专业版。 + :type version: str + :param extend_eip_count: 扩展EIP数量,仅包周期场景下生效 + :type extend_eip_count: int + :param extend_bandwidth: 扩展带宽,步长为5,仅包周期场景下生效 + :type extend_bandwidth: int + :param extend_vpc_count: 扩展VPC数量,仅包周期场景下生效 + :type extend_vpc_count: int + """ + + + + self._version = None + self._extend_eip_count = None + self._extend_bandwidth = None + self._extend_vpc_count = None + self.discriminator = None + + if version is not None: + self.version = version + if extend_eip_count is not None: + self.extend_eip_count = extend_eip_count + if extend_bandwidth is not None: + self.extend_bandwidth = extend_bandwidth + if extend_vpc_count is not None: + self.extend_vpc_count = extend_vpc_count + + @property + def version(self): + """Gets the version of this CreateFirewallReqFlavor. + + 防火墙版本 “charge_mode”为“prePaid”时,仅支持专业版。 “charge_mode”为“postPaid”时,支持标准版、专业版。 Standard - 标准版 Professional - 专业版 Platinum - 铂金版,防火墙版本“charge_mode”为\"postPaid\"时,仅支持专业版。“charge_mode”为“prePaid”时,支持标准版、专业版。 + + :return: The version of this CreateFirewallReqFlavor. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CreateFirewallReqFlavor. + + 防火墙版本 “charge_mode”为“prePaid”时,仅支持专业版。 “charge_mode”为“postPaid”时,支持标准版、专业版。 Standard - 标准版 Professional - 专业版 Platinum - 铂金版,防火墙版本“charge_mode”为\"postPaid\"时,仅支持专业版。“charge_mode”为“prePaid”时,支持标准版、专业版。 + + :param version: The version of this CreateFirewallReqFlavor. + :type version: str + """ + self._version = version + + @property + def extend_eip_count(self): + """Gets the extend_eip_count of this CreateFirewallReqFlavor. + + 扩展EIP数量,仅包周期场景下生效 + + :return: The extend_eip_count of this CreateFirewallReqFlavor. + :rtype: int + """ + return self._extend_eip_count + + @extend_eip_count.setter + def extend_eip_count(self, extend_eip_count): + """Sets the extend_eip_count of this CreateFirewallReqFlavor. + + 扩展EIP数量,仅包周期场景下生效 + + :param extend_eip_count: The extend_eip_count of this CreateFirewallReqFlavor. + :type extend_eip_count: int + """ + self._extend_eip_count = extend_eip_count + + @property + def extend_bandwidth(self): + """Gets the extend_bandwidth of this CreateFirewallReqFlavor. + + 扩展带宽,步长为5,仅包周期场景下生效 + + :return: The extend_bandwidth of this CreateFirewallReqFlavor. + :rtype: int + """ + return self._extend_bandwidth + + @extend_bandwidth.setter + def extend_bandwidth(self, extend_bandwidth): + """Sets the extend_bandwidth of this CreateFirewallReqFlavor. + + 扩展带宽,步长为5,仅包周期场景下生效 + + :param extend_bandwidth: The extend_bandwidth of this CreateFirewallReqFlavor. + :type extend_bandwidth: int + """ + self._extend_bandwidth = extend_bandwidth + + @property + def extend_vpc_count(self): + """Gets the extend_vpc_count of this CreateFirewallReqFlavor. + + 扩展VPC数量,仅包周期场景下生效 + + :return: The extend_vpc_count of this CreateFirewallReqFlavor. + :rtype: int + """ + return self._extend_vpc_count + + @extend_vpc_count.setter + def extend_vpc_count(self, extend_vpc_count): + """Sets the extend_vpc_count of this CreateFirewallReqFlavor. + + 扩展VPC数量,仅包周期场景下生效 + + :param extend_vpc_count: The extend_vpc_count of this CreateFirewallReqFlavor. + :type extend_vpc_count: int + """ + self._extend_vpc_count = extend_vpc_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, CreateFirewallReqFlavor): + 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-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition_data.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req_tags.py similarity index 55% rename from huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition_data.py rename to huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req_tags.py index c653f94c65..9b5602ea35 100644 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition_data.py +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_req_tags.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class DataobjectSearchConditionData: +class CreateFirewallReqTags: """ Attributes: @@ -17,106 +17,75 @@ class DataobjectSearchConditionData: sensitive_list = [] openapi_types = { - 'filed': 'str', - 'expression': 'str', + 'key': 'str', 'value': 'str' } attribute_map = { - 'filed': 'filed', - 'expression': 'expression', + 'key': 'key', 'value': 'value' } - def __init__(self, filed=None, expression=None, value=None): - """DataobjectSearchConditionData + def __init__(self, key=None, value=None): + """CreateFirewallReqTags The model defined in huaweicloud sdk - :param filed: 字段 - :type filed: str - :param expression: 逻辑表达式 - :type expression: str - :param value: 字段值 + :param key: 标签KEY + :type key: str + :param value: 标签VALUE :type value: str """ - self._filed = None - self._expression = None + self._key = None self._value = None self.discriminator = None - if filed is not None: - self.filed = filed - if expression is not None: - self.expression = expression - if value is not None: - self.value = value + self.key = key + self.value = value @property - def filed(self): - """Gets the filed of this DataobjectSearchConditionData. + def key(self): + """Gets the key of this CreateFirewallReqTags. - 字段 + 标签KEY - :return: The filed of this DataobjectSearchConditionData. + :return: The key of this CreateFirewallReqTags. :rtype: str """ - return self._filed + return self._key - @filed.setter - def filed(self, filed): - """Sets the filed of this DataobjectSearchConditionData. + @key.setter + def key(self, key): + """Sets the key of this CreateFirewallReqTags. - 字段 + 标签KEY - :param filed: The filed of this DataobjectSearchConditionData. - :type filed: str + :param key: The key of this CreateFirewallReqTags. + :type key: str """ - self._filed = filed - - @property - def expression(self): - """Gets the expression of this DataobjectSearchConditionData. - - 逻辑表达式 - - :return: The expression of this DataobjectSearchConditionData. - :rtype: str - """ - return self._expression - - @expression.setter - def expression(self, expression): - """Sets the expression of this DataobjectSearchConditionData. - - 逻辑表达式 - - :param expression: The expression of this DataobjectSearchConditionData. - :type expression: str - """ - self._expression = expression + self._key = key @property def value(self): - """Gets the value of this DataobjectSearchConditionData. + """Gets the value of this CreateFirewallReqTags. - 字段值 + 标签VALUE - :return: The value of this DataobjectSearchConditionData. + :return: The value of this CreateFirewallReqTags. :rtype: str """ return self._value @value.setter def value(self, value): - """Sets the value of this DataobjectSearchConditionData. + """Sets the value of this CreateFirewallReqTags. - 字段值 + 标签VALUE - :param value: The value of this DataobjectSearchConditionData. + :param value: The value of this CreateFirewallReqTags. :type value: str """ self._value = value @@ -163,7 +132,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DataobjectSearchConditionData): + if not isinstance(other, CreateFirewallReqTags): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_request.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_request.py new file mode 100644 index 0000000000..cb1b7c8467 --- /dev/null +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_request.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFirewallRequest: + + """ + 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 = [] + sensitive_list.append('x_client_token') + + openapi_types = { + 'x_client_token': 'str', + 'x_trace_id': 'str', + 'body': 'CreateFirewallReq' + } + + attribute_map = { + 'x_client_token': 'X-Client-Token', + 'x_trace_id': 'X-Trace-Id', + 'body': 'body' + } + + def __init__(self, x_client_token=None, x_trace_id=None, body=None): + """CreateFirewallRequest + + The model defined in huaweicloud sdk + + :param x_client_token: 保证客户端请求幂等性的标识。 该标识为32位UUID格式,由客户端生成,且需确保不同请求之间该标识具有唯一性。 + :type x_client_token: str + :param x_trace_id: + :type x_trace_id: str + :param body: Body of the CreateFirewallRequest + :type body: :class:`huaweicloudsdkcfw.v1.CreateFirewallReq` + """ + + + + self._x_client_token = None + self._x_trace_id = None + self._body = None + self.discriminator = None + + if x_client_token is not None: + self.x_client_token = x_client_token + if x_trace_id is not None: + self.x_trace_id = x_trace_id + if body is not None: + self.body = body + + @property + def x_client_token(self): + """Gets the x_client_token of this CreateFirewallRequest. + + 保证客户端请求幂等性的标识。 该标识为32位UUID格式,由客户端生成,且需确保不同请求之间该标识具有唯一性。 + + :return: The x_client_token of this CreateFirewallRequest. + :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 CreateFirewallRequest. + + 保证客户端请求幂等性的标识。 该标识为32位UUID格式,由客户端生成,且需确保不同请求之间该标识具有唯一性。 + + :param x_client_token: The x_client_token of this CreateFirewallRequest. + :type x_client_token: str + """ + self._x_client_token = x_client_token + + @property + def x_trace_id(self): + """Gets the x_trace_id of this CreateFirewallRequest. + + :return: The x_trace_id of this CreateFirewallRequest. + :rtype: str + """ + return self._x_trace_id + + @x_trace_id.setter + def x_trace_id(self, x_trace_id): + """Sets the x_trace_id of this CreateFirewallRequest. + + :param x_trace_id: The x_trace_id of this CreateFirewallRequest. + :type x_trace_id: str + """ + self._x_trace_id = x_trace_id + + @property + def body(self): + """Gets the body of this CreateFirewallRequest. + + :return: The body of this CreateFirewallRequest. + :rtype: :class:`huaweicloudsdkcfw.v1.CreateFirewallReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateFirewallRequest. + + :param body: The body of this CreateFirewallRequest. + :type body: :class:`huaweicloudsdkcfw.v1.CreateFirewallReq` + """ + 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, CreateFirewallRequest): + 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-cfw/huaweicloudsdkcfw/v1/model/create_firewall_response.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_response.py new file mode 100644 index 0000000000..afdd0a6e66 --- /dev/null +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/create_firewall_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 CreateFirewallResponse(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', + 'order_id': 'str', + 'data': 'CreateFirewallReq' + } + + attribute_map = { + 'job_id': 'job_id', + 'order_id': 'order_id', + 'data': 'data' + } + + def __init__(self, job_id=None, order_id=None, data=None): + """CreateFirewallResponse + + The model defined in huaweicloud sdk + + :param job_id: 实例创建的任务id。 仅创建按需实例时会返回该参数。 + :type job_id: str + :param order_id: 订单号,创建包年包月时返回该参数。 + :type order_id: str + :param data: + :type data: :class:`huaweicloudsdkcfw.v1.CreateFirewallReq` + """ + + super(CreateFirewallResponse, self).__init__() + + self._job_id = None + self._order_id = None + self._data = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + if order_id is not None: + self.order_id = order_id + if data is not None: + self.data = data + + @property + def job_id(self): + """Gets the job_id of this CreateFirewallResponse. + + 实例创建的任务id。 仅创建按需实例时会返回该参数。 + + :return: The job_id of this CreateFirewallResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateFirewallResponse. + + 实例创建的任务id。 仅创建按需实例时会返回该参数。 + + :param job_id: The job_id of this CreateFirewallResponse. + :type job_id: str + """ + self._job_id = job_id + + @property + def order_id(self): + """Gets the order_id of this CreateFirewallResponse. + + 订单号,创建包年包月时返回该参数。 + + :return: The order_id of this CreateFirewallResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this CreateFirewallResponse. + + 订单号,创建包年包月时返回该参数。 + + :param order_id: The order_id of this CreateFirewallResponse. + :type order_id: str + """ + self._order_id = order_id + + @property + def data(self): + """Gets the data of this CreateFirewallResponse. + + :return: The data of this CreateFirewallResponse. + :rtype: :class:`huaweicloudsdkcfw.v1.CreateFirewallReq` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreateFirewallResponse. + + :param data: The data of this CreateFirewallResponse. + :type data: :class:`huaweicloudsdkcfw.v1.CreateFirewallReq` + """ + 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, CreateFirewallResponse): + 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-cfw/huaweicloudsdkcfw/v1/model/delete_firewall_request.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/delete_firewall_request.py new file mode 100644 index 0000000000..8c5a293b6a --- /dev/null +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/delete_firewall_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteFirewallRequest: + + """ + 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 = { + 'resource_id': 'str' + } + + attribute_map = { + 'resource_id': 'resource_id' + } + + def __init__(self, resource_id=None): + """DeleteFirewallRequest + + The model defined in huaweicloud sdk + + :param resource_id: 资源id + :type resource_id: str + """ + + + + self._resource_id = None + self.discriminator = None + + self.resource_id = resource_id + + @property + def resource_id(self): + """Gets the resource_id of this DeleteFirewallRequest. + + 资源id + + :return: The resource_id of this DeleteFirewallRequest. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this DeleteFirewallRequest. + + 资源id + + :param resource_id: The resource_id of this DeleteFirewallRequest. + :type resource_id: str + """ + self._resource_id = resource_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, DeleteFirewallRequest): + 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-cfw/huaweicloudsdkcfw/v1/model/delete_firewall_response.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/delete_firewall_response.py new file mode 100644 index 0000000000..6c5a41cb3d --- /dev/null +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/delete_firewall_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 DeleteFirewallResponse(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': 'str' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """DeleteFirewallResponse + + The model defined in huaweicloud sdk + + :param data: 删除防火墙返回data + :type data: str + """ + + super(DeleteFirewallResponse, self).__init__() + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """Gets the data of this DeleteFirewallResponse. + + 删除防火墙返回data + + :return: The data of this DeleteFirewallResponse. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this DeleteFirewallResponse. + + 删除防火墙返回data + + :param data: The data of this DeleteFirewallResponse. + :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, DeleteFirewallResponse): + 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-cfw/huaweicloudsdkcfw/v1/model/error_rsp.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/error_rsp.py new file mode 100644 index 0000000000..2855c19c6f --- /dev/null +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/error_rsp.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ErrorRsp: + + """ + 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 = { + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, error_code=None, error_msg=None): + """ErrorRsp + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + """ + + + + self._error_code = None + self._error_msg = None + self.discriminator = None + + self.error_code = error_code + self.error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this ErrorRsp. + + 错误码 + + :return: The error_code of this ErrorRsp. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ErrorRsp. + + 错误码 + + :param error_code: The error_code of this ErrorRsp. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ErrorRsp. + + 错误描述 + + :return: The error_msg of this ErrorRsp. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ErrorRsp. + + 错误描述 + + :param error_msg: The error_msg of this ErrorRsp. + :type error_msg: str + """ + self._error_msg = error_msg + + 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, ErrorRsp): + 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-cfw/huaweicloudsdkcfw/v1/model/list_job_request.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/list_job_request.py new file mode 100644 index 0000000000..38587ebdcd --- /dev/null +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/list_job_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListJobRequest: + + """ + 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): + """ListJobRequest + + The model defined in huaweicloud sdk + + :param job_id: 任务ID + :type job_id: str + """ + + + + self._job_id = None + self.discriminator = None + + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this ListJobRequest. + + 任务ID + + :return: The job_id of this ListJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ListJobRequest. + + 任务ID + + :param job_id: The job_id of this ListJobRequest. + :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, ListJobRequest): + 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-cfw/huaweicloudsdkcfw/v1/model/list_job_response.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/list_job_response.py new file mode 100644 index 0000000000..cfd6cdce08 --- /dev/null +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/model/list_job_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListJobResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'data': 'object' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'data': 'data' + } + + def __init__(self, error_code=None, error_msg=None, data=None): + """ListJobResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param data: 执行结果 + :type data: :class:`huaweicloudsdkcfw.v1.object` + """ + + super(ListJobResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._data = None + self.discriminator = None + + self.error_code = error_code + self.error_msg = error_msg + if data is not None: + self.data = data + + @property + def error_code(self): + """Gets the error_code of this ListJobResponse. + + 错误码 + + :return: The error_code of this ListJobResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListJobResponse. + + 错误码 + + :param error_code: The error_code of this ListJobResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListJobResponse. + + 错误描述 + + :return: The error_msg of this ListJobResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListJobResponse. + + 错误描述 + + :param error_msg: The error_msg of this ListJobResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def data(self): + """Gets the data of this ListJobResponse. + + 执行结果 + + :return: The data of this ListJobResponse. + :rtype: :class:`huaweicloudsdkcfw.v1.object` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListJobResponse. + + 执行结果 + + :param data: The data of this ListJobResponse. + :type data: :class:`huaweicloudsdkcfw.v1.object` + """ + 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, ListJobResponse): + 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-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index 7d3274dfd0..e284658622 100644 --- a/huaweicloud-sdk-cfw/setup.py +++ b/huaweicloud-sdk-cfw/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcfw" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index 8e2a7007b3..d5141e7752 100644 --- a/huaweicloud-sdk-cgs/setup.py +++ b/huaweicloud-sdk-cgs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcgs" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index 21d80e83a3..6fb63c3923 100644 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index cf10f89e9d..8d8f59b2a9 100644 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpond/requirements.txt b/huaweicloud-sdk-cloudpond/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cloudpond/requirements.txt +++ b/huaweicloud-sdk-cloudpond/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpond/setup.py b/huaweicloud-sdk-cloudpond/setup.py index 27c2cccaaa..008cf5bb47 100644 --- a/huaweicloud-sdk-cloudpond/setup.py +++ b/huaweicloud-sdk-cloudpond/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpond" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index 09c7da3650..628ef53fab 100644 --- a/huaweicloud-sdk-cloudrtc/setup.py +++ b/huaweicloud-sdk-cloudrtc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudrtc" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/__init__.py b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/__init__.py index 49abd8c249..f5058b50e5 100644 --- a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/__init__.py +++ b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/__init__.py @@ -9,6 +9,8 @@ from huaweicloudsdkcloudtable.v2.model.add_component_req import AddComponentReq from huaweicloudsdkcloudtable.v2.model.cluster import Cluster from huaweicloudsdkcloudtable.v2.model.cluster_detail import ClusterDetail +from huaweicloudsdkcloudtable.v2.model.create_cloud_table_cluster_request import CreateCloudTableClusterRequest +from huaweicloudsdkcloudtable.v2.model.create_cloud_table_cluster_response import CreateCloudTableClusterResponse from huaweicloudsdkcloudtable.v2.model.create_cluster_request import CreateClusterRequest from huaweicloudsdkcloudtable.v2.model.create_cluster_request_body import CreateClusterRequestBody from huaweicloudsdkcloudtable.v2.model.create_cluster_response import CreateClusterResponse diff --git a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/cloudtable_async_client.py b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/cloudtable_async_client.py index c863defb97..b747e9e0df 100644 --- a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/cloudtable_async_client.py +++ b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/cloudtable_async_client.py @@ -653,6 +653,78 @@ def _update_cluster_setting_http_info(self, request): return http_info + def create_cloud_table_cluster_async(self, request): + """创建CloudTable集群 + + 创建一个CloudTable集群。 + 使用接口前,您需要先获取如下资源信息。 + - 通过VPC创建或查询VPC、子网 + - 通过安全组创建或查询可用的security_group_id + + 本接口是一个同步接口,当创建CloudTable集群成功后会返回集群id。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateCloudTableCluster + :type request: :class:`huaweicloudsdkcloudtable.v2.CreateCloudTableClusterRequest` + :rtype: :class:`huaweicloudsdkcloudtable.v2.CreateCloudTableClusterResponse` + """ + http_info = self._create_cloud_table_cluster_http_info(request) + return self._call_api(**http_info) + + def create_cloud_table_cluster_async_invoker(self, request): + http_info = self._create_cloud_table_cluster_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_cloud_table_cluster_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/clusters", + "request_type": request.__class__.__name__, + "response_type": "CreateCloudTableClusterResponse" + } + + 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_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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 _call_api(self, **kwargs): try: kwargs["async_request"] = True diff --git a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/cloudtable_client.py b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/cloudtable_client.py index dc15467909..059e2bcafa 100644 --- a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/cloudtable_client.py +++ b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/cloudtable_client.py @@ -653,6 +653,78 @@ def _update_cluster_setting_http_info(cls, request): return http_info + def create_cloud_table_cluster(self, request): + """创建CloudTable集群 + + 创建一个CloudTable集群。 + 使用接口前,您需要先获取如下资源信息。 + - 通过VPC创建或查询VPC、子网 + - 通过安全组创建或查询可用的security_group_id + + 本接口是一个同步接口,当创建CloudTable集群成功后会返回集群id。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateCloudTableCluster + :type request: :class:`huaweicloudsdkcloudtable.v2.CreateCloudTableClusterRequest` + :rtype: :class:`huaweicloudsdkcloudtable.v2.CreateCloudTableClusterResponse` + """ + http_info = self._create_cloud_table_cluster_http_info(request) + return self._call_api(**http_info) + + def create_cloud_table_cluster_invoker(self, request): + http_info = self._create_cloud_table_cluster_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_cloud_table_cluster_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/clusters", + "request_type": request.__class__.__name__, + "response_type": "CreateCloudTableClusterResponse" + } + + 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_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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 _call_api(self, **kwargs): try: return self.do_http_request(**kwargs) diff --git a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/model/__init__.py b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/model/__init__.py index 50676c78c5..e804c95c66 100644 --- a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/model/__init__.py +++ b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/model/__init__.py @@ -7,6 +7,8 @@ from huaweicloudsdkcloudtable.v2.model.add_component_req import AddComponentReq from huaweicloudsdkcloudtable.v2.model.cluster import Cluster from huaweicloudsdkcloudtable.v2.model.cluster_detail import ClusterDetail +from huaweicloudsdkcloudtable.v2.model.create_cloud_table_cluster_request import CreateCloudTableClusterRequest +from huaweicloudsdkcloudtable.v2.model.create_cloud_table_cluster_response import CreateCloudTableClusterResponse from huaweicloudsdkcloudtable.v2.model.create_cluster_request import CreateClusterRequest from huaweicloudsdkcloudtable.v2.model.create_cluster_request_body import CreateClusterRequestBody from huaweicloudsdkcloudtable.v2.model.create_cluster_response import CreateClusterResponse diff --git a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/model/create_cloud_table_cluster_request.py b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/model/create_cloud_table_cluster_request.py new file mode 100644 index 0000000000..b5d756fb4e --- /dev/null +++ b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/model/create_cloud_table_cluster_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCloudTableClusterRequest: + + """ + 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_language': 'str', + 'body': 'CreateClusterRequestBody' + } + + attribute_map = { + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, x_language=None, body=None): + """CreateCloudTableClusterRequest + + The model defined in huaweicloud sdk + + :param x_language: 语言类型 + :type x_language: str + :param body: Body of the CreateCloudTableClusterRequest + :type body: :class:`huaweicloudsdkcloudtable.v2.CreateClusterRequestBody` + """ + + + + self._x_language = None + self._body = None + self.discriminator = None + + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def x_language(self): + """Gets the x_language of this CreateCloudTableClusterRequest. + + 语言类型 + + :return: The x_language of this CreateCloudTableClusterRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateCloudTableClusterRequest. + + 语言类型 + + :param x_language: The x_language of this CreateCloudTableClusterRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this CreateCloudTableClusterRequest. + + :return: The body of this CreateCloudTableClusterRequest. + :rtype: :class:`huaweicloudsdkcloudtable.v2.CreateClusterRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateCloudTableClusterRequest. + + :param body: The body of this CreateCloudTableClusterRequest. + :type body: :class:`huaweicloudsdkcloudtable.v2.CreateClusterRequestBody` + """ + 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, CreateCloudTableClusterRequest): + 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-cloudtable/huaweicloudsdkcloudtable/v2/model/create_cloud_table_cluster_response.py b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/model/create_cloud_table_cluster_response.py new file mode 100644 index 0000000000..1e4e36eeda --- /dev/null +++ b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/model/create_cloud_table_cluster_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 CreateCloudTableClusterResponse(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 = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """CreateCloudTableClusterResponse + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + """ + + super(CreateCloudTableClusterResponse, self).__init__() + + self._cluster_id = None + self.discriminator = None + + if cluster_id is not None: + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this CreateCloudTableClusterResponse. + + 集群ID + + :return: The cluster_id of this CreateCloudTableClusterResponse. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this CreateCloudTableClusterResponse. + + 集群ID + + :param cluster_id: The cluster_id of this CreateCloudTableClusterResponse. + :type cluster_id: str + """ + self._cluster_id = cluster_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, CreateCloudTableClusterResponse): + 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-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index 85e48a607b..d87dbcbed2 100644 --- a/huaweicloud-sdk-cloudtable/setup.py +++ b/huaweicloud-sdk-cloudtable/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtable" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index 6508f682d5..a02203452c 100644 --- a/huaweicloud-sdk-cloudtest/setup.py +++ b/huaweicloud-sdk-cloudtest/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtest" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsartifact/requirements.txt b/huaweicloud-sdk-codeartsartifact/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-codeartsartifact/requirements.txt +++ b/huaweicloud-sdk-codeartsartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsartifact/setup.py b/huaweicloud-sdk-codeartsartifact/setup.py index 8aee462a7a..e61d19afd3 100644 --- a/huaweicloud-sdk-codeartsartifact/setup.py +++ b/huaweicloud-sdk-codeartsartifact/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsartifact" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsbuild/requirements.txt b/huaweicloud-sdk-codeartsbuild/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-codeartsbuild/requirements.txt +++ b/huaweicloud-sdk-codeartsbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsbuild/setup.py b/huaweicloud-sdk-codeartsbuild/setup.py index a509ea252d..bbeb1e37fa 100644 --- a/huaweicloud-sdk-codeartsbuild/setup.py +++ b/huaweicloud-sdk-codeartsbuild/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsbuild" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartscheck/requirements.txt b/huaweicloud-sdk-codeartscheck/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-codeartscheck/requirements.txt +++ b/huaweicloud-sdk-codeartscheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartscheck/setup.py b/huaweicloud-sdk-codeartscheck/setup.py index 46ac45665f..42c09f4383 100644 --- a/huaweicloud-sdk-codeartscheck/setup.py +++ b/huaweicloud-sdk-codeartscheck/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartscheck" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsdeploy/requirements.txt b/huaweicloud-sdk-codeartsdeploy/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-codeartsdeploy/requirements.txt +++ b/huaweicloud-sdk-codeartsdeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsdeploy/setup.py b/huaweicloud-sdk-codeartsdeploy/setup.py index e61ea23bc6..ebd985753b 100644 --- a/huaweicloud-sdk-codeartsdeploy/setup.py +++ b/huaweicloud-sdk-codeartsdeploy/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsdeploy" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsinspector/requirements.txt b/huaweicloud-sdk-codeartsinspector/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-codeartsinspector/requirements.txt +++ b/huaweicloud-sdk-codeartsinspector/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsinspector/setup.py b/huaweicloud-sdk-codeartsinspector/setup.py index 212b918a89..cef12f6499 100644 --- a/huaweicloud-sdk-codeartsinspector/setup.py +++ b/huaweicloud-sdk-codeartsinspector/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsinspector" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/__init__.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/__init__.py index ff8b519517..8713eefa15 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/__init__.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/__init__.py @@ -153,11 +153,13 @@ from huaweicloudsdkcodeartspipeline.v2.model.pipeline_param import PipelineParam from huaweicloudsdkcodeartspipeline.v2.model.pipeline_parameter import PipelineParameter from huaweicloudsdkcodeartspipeline.v2.model.pipeline_schedule import PipelineSchedule +from huaweicloudsdkcodeartspipeline.v2.model.pipeline_source import PipelineSource from huaweicloudsdkcodeartspipeline.v2.model.pipeline_state_status import PipelineStateStatus from huaweicloudsdkcodeartspipeline.v2.model.pipeline_template_dto import PipelineTemplateDTO from huaweicloudsdkcodeartspipeline.v2.model.pipeline_template_simple_vo import PipelineTemplateSimpleVO from huaweicloudsdkcodeartspipeline.v2.model.pipeline_template_simple_vo_stages import PipelineTemplateSimpleVOStages from huaweicloudsdkcodeartspipeline.v2.model.pipeline_trigger import PipelineTrigger +from huaweicloudsdkcodeartspipeline.v2.model.pipeline_variable import PipelineVariable from huaweicloudsdkcodeartspipeline.v2.model.plugin_basic_dto import PluginBasicDTO from huaweicloudsdkcodeartspipeline.v2.model.plugin_basic_vo import PluginBasicVO from huaweicloudsdkcodeartspipeline.v2.model.plugin_dto import PluginDTO @@ -211,6 +213,8 @@ from huaweicloudsdkcodeartspipeline.v2.model.show_instance_status_response import ShowInstanceStatusResponse from huaweicloudsdkcodeartspipeline.v2.model.show_open_source_strategy_request import ShowOpenSourceStrategyRequest from huaweicloudsdkcodeartspipeline.v2.model.show_open_source_strategy_response import ShowOpenSourceStrategyResponse +from huaweicloudsdkcodeartspipeline.v2.model.show_pipeline_detail_request import ShowPipelineDetailRequest +from huaweicloudsdkcodeartspipeline.v2.model.show_pipeline_detail_response import ShowPipelineDetailResponse from huaweicloudsdkcodeartspipeline.v2.model.show_pipeline_group_tree_request import ShowPipelineGroupTreeRequest from huaweicloudsdkcodeartspipeline.v2.model.show_pipeline_group_tree_response import ShowPipelineGroupTreeResponse from huaweicloudsdkcodeartspipeline.v2.model.show_pipeline_log_request import ShowPipelineLogRequest diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_async_client.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_async_client.py index d2527a4f8c..31918280f1 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_async_client.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_async_client.py @@ -2855,6 +2855,73 @@ def _show_open_source_strategy_http_info(self, request): return http_info + def show_pipeline_detail_async(self, request): + """查询流水线详情 + + 查询流水线详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPipelineDetail + :type request: :class:`huaweicloudsdkcodeartspipeline.v2.ShowPipelineDetailRequest` + :rtype: :class:`huaweicloudsdkcodeartspipeline.v2.ShowPipelineDetailResponse` + """ + http_info = self._show_pipeline_detail_http_info(request) + return self._call_api(**http_info) + + def show_pipeline_detail_async_invoker(self, request): + http_info = self._show_pipeline_detail_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_pipeline_detail_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/api/pipelines/{pipeline_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowPipelineDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'pipeline_id' in local_var_params: + path_params['pipeline_id'] = local_var_params['pipeline_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_pipeline_group_tree_async(self, request): """查询流水线分组树 diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_client.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_client.py index 32d5bf8a2b..91eda7e2ac 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_client.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_client.py @@ -2855,6 +2855,73 @@ def _show_open_source_strategy_http_info(cls, request): return http_info + def show_pipeline_detail(self, request): + """查询流水线详情 + + 查询流水线详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPipelineDetail + :type request: :class:`huaweicloudsdkcodeartspipeline.v2.ShowPipelineDetailRequest` + :rtype: :class:`huaweicloudsdkcodeartspipeline.v2.ShowPipelineDetailResponse` + """ + http_info = self._show_pipeline_detail_http_info(request) + return self._call_api(**http_info) + + def show_pipeline_detail_invoker(self, request): + http_info = self._show_pipeline_detail_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_pipeline_detail_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/api/pipelines/{pipeline_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowPipelineDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'pipeline_id' in local_var_params: + path_params['pipeline_id'] = local_var_params['pipeline_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_pipeline_group_tree(self, request): """查询流水线分组树 diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/__init__.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/__init__.py index e04a4e7a17..b92eae3d6f 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/__init__.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/__init__.py @@ -151,11 +151,13 @@ from huaweicloudsdkcodeartspipeline.v2.model.pipeline_param import PipelineParam from huaweicloudsdkcodeartspipeline.v2.model.pipeline_parameter import PipelineParameter from huaweicloudsdkcodeartspipeline.v2.model.pipeline_schedule import PipelineSchedule +from huaweicloudsdkcodeartspipeline.v2.model.pipeline_source import PipelineSource from huaweicloudsdkcodeartspipeline.v2.model.pipeline_state_status import PipelineStateStatus from huaweicloudsdkcodeartspipeline.v2.model.pipeline_template_dto import PipelineTemplateDTO from huaweicloudsdkcodeartspipeline.v2.model.pipeline_template_simple_vo import PipelineTemplateSimpleVO from huaweicloudsdkcodeartspipeline.v2.model.pipeline_template_simple_vo_stages import PipelineTemplateSimpleVOStages from huaweicloudsdkcodeartspipeline.v2.model.pipeline_trigger import PipelineTrigger +from huaweicloudsdkcodeartspipeline.v2.model.pipeline_variable import PipelineVariable from huaweicloudsdkcodeartspipeline.v2.model.plugin_basic_dto import PluginBasicDTO from huaweicloudsdkcodeartspipeline.v2.model.plugin_basic_vo import PluginBasicVO from huaweicloudsdkcodeartspipeline.v2.model.plugin_dto import PluginDTO @@ -209,6 +211,8 @@ from huaweicloudsdkcodeartspipeline.v2.model.show_instance_status_response import ShowInstanceStatusResponse from huaweicloudsdkcodeartspipeline.v2.model.show_open_source_strategy_request import ShowOpenSourceStrategyRequest from huaweicloudsdkcodeartspipeline.v2.model.show_open_source_strategy_response import ShowOpenSourceStrategyResponse +from huaweicloudsdkcodeartspipeline.v2.model.show_pipeline_detail_request import ShowPipelineDetailRequest +from huaweicloudsdkcodeartspipeline.v2.model.show_pipeline_detail_response import ShowPipelineDetailResponse from huaweicloudsdkcodeartspipeline.v2.model.show_pipeline_group_tree_request import ShowPipelineGroupTreeRequest from huaweicloudsdkcodeartspipeline.v2.model.show_pipeline_group_tree_response import ShowPipelineGroupTreeResponse from huaweicloudsdkcodeartspipeline.v2.model.show_pipeline_log_request import ShowPipelineLogRequest diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_source.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_source.py new file mode 100644 index 0000000000..fc02014eb1 --- /dev/null +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_source.py @@ -0,0 +1,394 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PipelineSource: + + """ + 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 = { + 'scm_type': 'str', + 'hook_flag': 'str', + 'default_branch': 'str', + 'trigger': 'str', + 'alias': 'str', + 'display_name': 'str', + 'repo_name': 'str', + 'repo_id': 'str', + 'repo_owner': 'str', + 'git_url': 'str', + 'web_url': 'str' + } + + attribute_map = { + 'scm_type': 'scmType', + 'hook_flag': 'hookFlag', + 'default_branch': 'defaultBranch', + 'trigger': 'trigger', + 'alias': 'alias', + 'display_name': 'displayName', + 'repo_name': 'repoName', + 'repo_id': 'repoId', + 'repo_owner': 'repoOwner', + 'git_url': 'gitUrl', + 'web_url': 'webUrl' + } + + def __init__(self, scm_type=None, hook_flag=None, default_branch=None, trigger=None, alias=None, display_name=None, repo_name=None, repo_id=None, repo_owner=None, git_url=None, web_url=None): + """PipelineSource + + The model defined in huaweicloud sdk + + :param scm_type: 源码仓类型 + :type scm_type: str + :param hook_flag: 是否配置Webhook + :type hook_flag: str + :param default_branch: 默认分支 + :type default_branch: str + :param trigger: webhook配置数据 + :type trigger: str + :param alias: 代码仓别名 + :type alias: str + :param display_name: 代码仓显示名 + :type display_name: str + :param repo_name: 源码仓名称 + :type repo_name: str + :param repo_id: 代码仓ID + :type repo_id: str + :param repo_owner: 代码仓所有者 + :type repo_owner: str + :param git_url: 代码仓访问地址 + :type git_url: str + :param web_url: 代码仓Web页面地址 + :type web_url: str + """ + + + + self._scm_type = None + self._hook_flag = None + self._default_branch = None + self._trigger = None + self._alias = None + self._display_name = None + self._repo_name = None + self._repo_id = None + self._repo_owner = None + self._git_url = None + self._web_url = None + self.discriminator = None + + self.scm_type = scm_type + self.hook_flag = hook_flag + self.default_branch = default_branch + self.trigger = trigger + self.alias = alias + self.display_name = display_name + self.repo_name = repo_name + self.repo_id = repo_id + self.repo_owner = repo_owner + self.git_url = git_url + self.web_url = web_url + + @property + def scm_type(self): + """Gets the scm_type of this PipelineSource. + + 源码仓类型 + + :return: The scm_type of this PipelineSource. + :rtype: str + """ + return self._scm_type + + @scm_type.setter + def scm_type(self, scm_type): + """Sets the scm_type of this PipelineSource. + + 源码仓类型 + + :param scm_type: The scm_type of this PipelineSource. + :type scm_type: str + """ + self._scm_type = scm_type + + @property + def hook_flag(self): + """Gets the hook_flag of this PipelineSource. + + 是否配置Webhook + + :return: The hook_flag of this PipelineSource. + :rtype: str + """ + return self._hook_flag + + @hook_flag.setter + def hook_flag(self, hook_flag): + """Sets the hook_flag of this PipelineSource. + + 是否配置Webhook + + :param hook_flag: The hook_flag of this PipelineSource. + :type hook_flag: str + """ + self._hook_flag = hook_flag + + @property + def default_branch(self): + """Gets the default_branch of this PipelineSource. + + 默认分支 + + :return: The default_branch of this PipelineSource. + :rtype: str + """ + return self._default_branch + + @default_branch.setter + def default_branch(self, default_branch): + """Sets the default_branch of this PipelineSource. + + 默认分支 + + :param default_branch: The default_branch of this PipelineSource. + :type default_branch: str + """ + self._default_branch = default_branch + + @property + def trigger(self): + """Gets the trigger of this PipelineSource. + + webhook配置数据 + + :return: The trigger of this PipelineSource. + :rtype: str + """ + return self._trigger + + @trigger.setter + def trigger(self, trigger): + """Sets the trigger of this PipelineSource. + + webhook配置数据 + + :param trigger: The trigger of this PipelineSource. + :type trigger: str + """ + self._trigger = trigger + + @property + def alias(self): + """Gets the alias of this PipelineSource. + + 代码仓别名 + + :return: The alias of this PipelineSource. + :rtype: str + """ + return self._alias + + @alias.setter + def alias(self, alias): + """Sets the alias of this PipelineSource. + + 代码仓别名 + + :param alias: The alias of this PipelineSource. + :type alias: str + """ + self._alias = alias + + @property + def display_name(self): + """Gets the display_name of this PipelineSource. + + 代码仓显示名 + + :return: The display_name of this PipelineSource. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this PipelineSource. + + 代码仓显示名 + + :param display_name: The display_name of this PipelineSource. + :type display_name: str + """ + self._display_name = display_name + + @property + def repo_name(self): + """Gets the repo_name of this PipelineSource. + + 源码仓名称 + + :return: The repo_name of this PipelineSource. + :rtype: str + """ + return self._repo_name + + @repo_name.setter + def repo_name(self, repo_name): + """Sets the repo_name of this PipelineSource. + + 源码仓名称 + + :param repo_name: The repo_name of this PipelineSource. + :type repo_name: str + """ + self._repo_name = repo_name + + @property + def repo_id(self): + """Gets the repo_id of this PipelineSource. + + 代码仓ID + + :return: The repo_id of this PipelineSource. + :rtype: str + """ + return self._repo_id + + @repo_id.setter + def repo_id(self, repo_id): + """Sets the repo_id of this PipelineSource. + + 代码仓ID + + :param repo_id: The repo_id of this PipelineSource. + :type repo_id: str + """ + self._repo_id = repo_id + + @property + def repo_owner(self): + """Gets the repo_owner of this PipelineSource. + + 代码仓所有者 + + :return: The repo_owner of this PipelineSource. + :rtype: str + """ + return self._repo_owner + + @repo_owner.setter + def repo_owner(self, repo_owner): + """Sets the repo_owner of this PipelineSource. + + 代码仓所有者 + + :param repo_owner: The repo_owner of this PipelineSource. + :type repo_owner: str + """ + self._repo_owner = repo_owner + + @property + def git_url(self): + """Gets the git_url of this PipelineSource. + + 代码仓访问地址 + + :return: The git_url of this PipelineSource. + :rtype: str + """ + return self._git_url + + @git_url.setter + def git_url(self, git_url): + """Sets the git_url of this PipelineSource. + + 代码仓访问地址 + + :param git_url: The git_url of this PipelineSource. + :type git_url: str + """ + self._git_url = git_url + + @property + def web_url(self): + """Gets the web_url of this PipelineSource. + + 代码仓Web页面地址 + + :return: The web_url of this PipelineSource. + :rtype: str + """ + return self._web_url + + @web_url.setter + def web_url(self, web_url): + """Sets the web_url of this PipelineSource. + + 代码仓Web页面地址 + + :param web_url: The web_url of this PipelineSource. + :type web_url: str + """ + self._web_url = web_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, PipelineSource): + 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-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_variable.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_variable.py new file mode 100644 index 0000000000..568bb78a33 --- /dev/null +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_variable.py @@ -0,0 +1,376 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PipelineVariable: + + """ + 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', + 'sequence': 'int', + 'type': 'str', + 'value': 'str', + 'is_secret': 'bool', + 'description': 'str', + 'is_runtime': 'bool', + 'limits': 'list[str]', + 'is_reset': 'bool', + 'latest_value': 'str' + } + + attribute_map = { + 'name': 'name', + 'sequence': 'sequence', + 'type': 'type', + 'value': 'value', + 'is_secret': 'is_secret', + 'description': 'description', + 'is_runtime': 'is_runtime', + 'limits': 'limits', + 'is_reset': 'is_reset', + 'latest_value': 'latest_value' + } + + def __init__(self, name=None, sequence=None, type=None, value=None, is_secret=None, description=None, is_runtime=None, limits=None, is_reset=None, latest_value=None): + """PipelineVariable + + The model defined in huaweicloud sdk + + :param name: 参数名称 + :type name: str + :param sequence: 序号 + :type sequence: int + :param type: 类型 + :type type: str + :param value: 默认值 + :type value: str + :param is_secret: 是否私密 + :type is_secret: bool + :param description: 描述 + :type description: str + :param is_runtime: 是否运行时设置 + :type is_runtime: bool + :param limits: 限定枚举值 + :type limits: list[str] + :param is_reset: 自增长参数是否被重置 + :type is_reset: bool + :param latest_value: 自增长参数最新值 + :type latest_value: str + """ + + + + self._name = None + self._sequence = None + self._type = None + self._value = None + self._is_secret = None + self._description = None + self._is_runtime = None + self._limits = None + self._is_reset = None + self._latest_value = None + self.discriminator = None + + if name is not None: + self.name = name + if sequence is not None: + self.sequence = sequence + if type is not None: + self.type = type + if value is not None: + self.value = value + if is_secret is not None: + self.is_secret = is_secret + if description is not None: + self.description = description + if is_runtime is not None: + self.is_runtime = is_runtime + if limits is not None: + self.limits = limits + if is_reset is not None: + self.is_reset = is_reset + if latest_value is not None: + self.latest_value = latest_value + + @property + def name(self): + """Gets the name of this PipelineVariable. + + 参数名称 + + :return: The name of this PipelineVariable. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PipelineVariable. + + 参数名称 + + :param name: The name of this PipelineVariable. + :type name: str + """ + self._name = name + + @property + def sequence(self): + """Gets the sequence of this PipelineVariable. + + 序号 + + :return: The sequence of this PipelineVariable. + :rtype: int + """ + return self._sequence + + @sequence.setter + def sequence(self, sequence): + """Sets the sequence of this PipelineVariable. + + 序号 + + :param sequence: The sequence of this PipelineVariable. + :type sequence: int + """ + self._sequence = sequence + + @property + def type(self): + """Gets the type of this PipelineVariable. + + 类型 + + :return: The type of this PipelineVariable. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this PipelineVariable. + + 类型 + + :param type: The type of this PipelineVariable. + :type type: str + """ + self._type = type + + @property + def value(self): + """Gets the value of this PipelineVariable. + + 默认值 + + :return: The value of this PipelineVariable. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this PipelineVariable. + + 默认值 + + :param value: The value of this PipelineVariable. + :type value: str + """ + self._value = value + + @property + def is_secret(self): + """Gets the is_secret of this PipelineVariable. + + 是否私密 + + :return: The is_secret of this PipelineVariable. + :rtype: bool + """ + return self._is_secret + + @is_secret.setter + def is_secret(self, is_secret): + """Sets the is_secret of this PipelineVariable. + + 是否私密 + + :param is_secret: The is_secret of this PipelineVariable. + :type is_secret: bool + """ + self._is_secret = is_secret + + @property + def description(self): + """Gets the description of this PipelineVariable. + + 描述 + + :return: The description of this PipelineVariable. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PipelineVariable. + + 描述 + + :param description: The description of this PipelineVariable. + :type description: str + """ + self._description = description + + @property + def is_runtime(self): + """Gets the is_runtime of this PipelineVariable. + + 是否运行时设置 + + :return: The is_runtime of this PipelineVariable. + :rtype: bool + """ + return self._is_runtime + + @is_runtime.setter + def is_runtime(self, is_runtime): + """Sets the is_runtime of this PipelineVariable. + + 是否运行时设置 + + :param is_runtime: The is_runtime of this PipelineVariable. + :type is_runtime: bool + """ + self._is_runtime = is_runtime + + @property + def limits(self): + """Gets the limits of this PipelineVariable. + + 限定枚举值 + + :return: The limits of this PipelineVariable. + :rtype: list[str] + """ + return self._limits + + @limits.setter + def limits(self, limits): + """Sets the limits of this PipelineVariable. + + 限定枚举值 + + :param limits: The limits of this PipelineVariable. + :type limits: list[str] + """ + self._limits = limits + + @property + def is_reset(self): + """Gets the is_reset of this PipelineVariable. + + 自增长参数是否被重置 + + :return: The is_reset of this PipelineVariable. + :rtype: bool + """ + return self._is_reset + + @is_reset.setter + def is_reset(self, is_reset): + """Sets the is_reset of this PipelineVariable. + + 自增长参数是否被重置 + + :param is_reset: The is_reset of this PipelineVariable. + :type is_reset: bool + """ + self._is_reset = is_reset + + @property + def latest_value(self): + """Gets the latest_value of this PipelineVariable. + + 自增长参数最新值 + + :return: The latest_value of this PipelineVariable. + :rtype: str + """ + return self._latest_value + + @latest_value.setter + def latest_value(self, latest_value): + """Sets the latest_value of this PipelineVariable. + + 自增长参数最新值 + + :param latest_value: The latest_value of this PipelineVariable. + :type latest_value: str + """ + self._latest_value = latest_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, PipelineVariable): + 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-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_pipeline_detail_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_pipeline_detail_request.py new file mode 100644 index 0000000000..ad58052ac7 --- /dev/null +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_pipeline_detail_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPipelineDetailRequest: + + """ + 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 = { + 'project_id': 'str', + 'pipeline_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'pipeline_id': 'pipeline_id' + } + + def __init__(self, project_id=None, pipeline_id=None): + """ShowPipelineDetailRequest + + The model defined in huaweicloud sdk + + :param project_id: 项目ID + :type project_id: str + :param pipeline_id: 流水线ID + :type pipeline_id: str + """ + + + + self._project_id = None + self._pipeline_id = None + self.discriminator = None + + self.project_id = project_id + self.pipeline_id = pipeline_id + + @property + def project_id(self): + """Gets the project_id of this ShowPipelineDetailRequest. + + 项目ID + + :return: The project_id of this ShowPipelineDetailRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowPipelineDetailRequest. + + 项目ID + + :param project_id: The project_id of this ShowPipelineDetailRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def pipeline_id(self): + """Gets the pipeline_id of this ShowPipelineDetailRequest. + + 流水线ID + + :return: The pipeline_id of this ShowPipelineDetailRequest. + :rtype: str + """ + return self._pipeline_id + + @pipeline_id.setter + def pipeline_id(self, pipeline_id): + """Sets the pipeline_id of this ShowPipelineDetailRequest. + + 流水线ID + + :param pipeline_id: The pipeline_id of this ShowPipelineDetailRequest. + :type pipeline_id: str + """ + self._pipeline_id = pipeline_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, ShowPipelineDetailRequest): + 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-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_pipeline_detail_response.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_pipeline_detail_response.py new file mode 100644 index 0000000000..6974383283 --- /dev/null +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_pipeline_detail_response.py @@ -0,0 +1,696 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPipelineDetailResponse(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', + 'name': 'str', + 'description': 'str', + 'manifest_version': 'str', + 'region': 'str', + 'domain_id': 'str', + 'project_id': 'str', + 'component_id': 'str', + 'is_publish': 'bool', + 'creator_id': 'str', + 'creator_name': 'str', + 'updater_id': 'str', + 'create_time': 'int', + 'update_time': 'int', + 'is_collect': 'bool', + 'sources': 'list[PipelineSource]', + 'variables': 'list[PipelineVariable]', + 'schedules': 'list[PipelineSchedule]', + 'triggers': 'list[PipelineTrigger]', + 'group_id': 'str', + 'definition': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'manifest_version': 'manifest_version', + 'region': 'region', + 'domain_id': 'domain_id', + 'project_id': 'project_id', + 'component_id': 'component_id', + 'is_publish': 'is_publish', + 'creator_id': 'creator_id', + 'creator_name': 'creator_name', + 'updater_id': 'updater_id', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'is_collect': 'is_collect', + 'sources': 'sources', + 'variables': 'variables', + 'schedules': 'schedules', + 'triggers': 'triggers', + 'group_id': 'group_id', + 'definition': 'definition' + } + + def __init__(self, id=None, name=None, description=None, manifest_version=None, region=None, domain_id=None, project_id=None, component_id=None, is_publish=None, creator_id=None, creator_name=None, updater_id=None, create_time=None, update_time=None, is_collect=None, sources=None, variables=None, schedules=None, triggers=None, group_id=None, definition=None): + """ShowPipelineDetailResponse + + The model defined in huaweicloud sdk + + :param id: 流水线ID + :type id: str + :param name: 流水线名称 + :type name: str + :param description: 描述 + :type description: str + :param manifest_version: 流水线版本 + :type manifest_version: str + :param region: 局点 + :type region: str + :param domain_id: 所属租户ID + :type domain_id: str + :param project_id: 所属项目ID + :type project_id: str + :param component_id: 所属微服务ID + :type component_id: str + :param is_publish: 是否为变更流水线 + :type is_publish: bool + :param creator_id: 创建人ID + :type creator_id: str + :param creator_name: 创建人名称 + :type creator_name: str + :param updater_id: 更新人ID + :type updater_id: str + :param create_time: 更新人名称 + :type create_time: int + :param update_time: 更新时间 + :type update_time: int + :param is_collect: 是否被当前用户收藏 + :type is_collect: bool + :param sources: 流水线源 + :type sources: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineSource`] + :param variables: 流水线自定义参数 + :type variables: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineVariable`] + :param schedules: 流水线定时任务设置 + :type schedules: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineSchedule`] + :param triggers: 流水线事件触发设置 + :type triggers: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineTrigger`] + :param group_id: 流水线所属分组ID + :type group_id: str + :param definition: 流水线定义 + :type definition: str + """ + + super(ShowPipelineDetailResponse, self).__init__() + + self._id = None + self._name = None + self._description = None + self._manifest_version = None + self._region = None + self._domain_id = None + self._project_id = None + self._component_id = None + self._is_publish = None + self._creator_id = None + self._creator_name = None + self._updater_id = None + self._create_time = None + self._update_time = None + self._is_collect = None + self._sources = None + self._variables = None + self._schedules = None + self._triggers = None + self._group_id = None + self._definition = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if description is not None: + self.description = description + if manifest_version is not None: + self.manifest_version = manifest_version + if region is not None: + self.region = region + if domain_id is not None: + self.domain_id = domain_id + if project_id is not None: + self.project_id = project_id + if component_id is not None: + self.component_id = component_id + if is_publish is not None: + self.is_publish = is_publish + if creator_id is not None: + self.creator_id = creator_id + if creator_name is not None: + self.creator_name = creator_name + if updater_id is not None: + self.updater_id = updater_id + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if is_collect is not None: + self.is_collect = is_collect + if sources is not None: + self.sources = sources + if variables is not None: + self.variables = variables + if schedules is not None: + self.schedules = schedules + if triggers is not None: + self.triggers = triggers + if group_id is not None: + self.group_id = group_id + if definition is not None: + self.definition = definition + + @property + def id(self): + """Gets the id of this ShowPipelineDetailResponse. + + 流水线ID + + :return: The id of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowPipelineDetailResponse. + + 流水线ID + + :param id: The id of this ShowPipelineDetailResponse. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ShowPipelineDetailResponse. + + 流水线名称 + + :return: The name of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowPipelineDetailResponse. + + 流水线名称 + + :param name: The name of this ShowPipelineDetailResponse. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ShowPipelineDetailResponse. + + 描述 + + :return: The description of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowPipelineDetailResponse. + + 描述 + + :param description: The description of this ShowPipelineDetailResponse. + :type description: str + """ + self._description = description + + @property + def manifest_version(self): + """Gets the manifest_version of this ShowPipelineDetailResponse. + + 流水线版本 + + :return: The manifest_version of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._manifest_version + + @manifest_version.setter + def manifest_version(self, manifest_version): + """Sets the manifest_version of this ShowPipelineDetailResponse. + + 流水线版本 + + :param manifest_version: The manifest_version of this ShowPipelineDetailResponse. + :type manifest_version: str + """ + self._manifest_version = manifest_version + + @property + def region(self): + """Gets the region of this ShowPipelineDetailResponse. + + 局点 + + :return: The region of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this ShowPipelineDetailResponse. + + 局点 + + :param region: The region of this ShowPipelineDetailResponse. + :type region: str + """ + self._region = region + + @property + def domain_id(self): + """Gets the domain_id of this ShowPipelineDetailResponse. + + 所属租户ID + + :return: The domain_id of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this ShowPipelineDetailResponse. + + 所属租户ID + + :param domain_id: The domain_id of this ShowPipelineDetailResponse. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def project_id(self): + """Gets the project_id of this ShowPipelineDetailResponse. + + 所属项目ID + + :return: The project_id of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowPipelineDetailResponse. + + 所属项目ID + + :param project_id: The project_id of this ShowPipelineDetailResponse. + :type project_id: str + """ + self._project_id = project_id + + @property + def component_id(self): + """Gets the component_id of this ShowPipelineDetailResponse. + + 所属微服务ID + + :return: The component_id of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._component_id + + @component_id.setter + def component_id(self, component_id): + """Sets the component_id of this ShowPipelineDetailResponse. + + 所属微服务ID + + :param component_id: The component_id of this ShowPipelineDetailResponse. + :type component_id: str + """ + self._component_id = component_id + + @property + def is_publish(self): + """Gets the is_publish of this ShowPipelineDetailResponse. + + 是否为变更流水线 + + :return: The is_publish of this ShowPipelineDetailResponse. + :rtype: bool + """ + return self._is_publish + + @is_publish.setter + def is_publish(self, is_publish): + """Sets the is_publish of this ShowPipelineDetailResponse. + + 是否为变更流水线 + + :param is_publish: The is_publish of this ShowPipelineDetailResponse. + :type is_publish: bool + """ + self._is_publish = is_publish + + @property + def creator_id(self): + """Gets the creator_id of this ShowPipelineDetailResponse. + + 创建人ID + + :return: The creator_id of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this ShowPipelineDetailResponse. + + 创建人ID + + :param creator_id: The creator_id of this ShowPipelineDetailResponse. + :type creator_id: str + """ + self._creator_id = creator_id + + @property + def creator_name(self): + """Gets the creator_name of this ShowPipelineDetailResponse. + + 创建人名称 + + :return: The creator_name of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._creator_name + + @creator_name.setter + def creator_name(self, creator_name): + """Sets the creator_name of this ShowPipelineDetailResponse. + + 创建人名称 + + :param creator_name: The creator_name of this ShowPipelineDetailResponse. + :type creator_name: str + """ + self._creator_name = creator_name + + @property + def updater_id(self): + """Gets the updater_id of this ShowPipelineDetailResponse. + + 更新人ID + + :return: The updater_id of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._updater_id + + @updater_id.setter + def updater_id(self, updater_id): + """Sets the updater_id of this ShowPipelineDetailResponse. + + 更新人ID + + :param updater_id: The updater_id of this ShowPipelineDetailResponse. + :type updater_id: str + """ + self._updater_id = updater_id + + @property + def create_time(self): + """Gets the create_time of this ShowPipelineDetailResponse. + + 更新人名称 + + :return: The create_time of this ShowPipelineDetailResponse. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowPipelineDetailResponse. + + 更新人名称 + + :param create_time: The create_time of this ShowPipelineDetailResponse. + :type create_time: int + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ShowPipelineDetailResponse. + + 更新时间 + + :return: The update_time of this ShowPipelineDetailResponse. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowPipelineDetailResponse. + + 更新时间 + + :param update_time: The update_time of this ShowPipelineDetailResponse. + :type update_time: int + """ + self._update_time = update_time + + @property + def is_collect(self): + """Gets the is_collect of this ShowPipelineDetailResponse. + + 是否被当前用户收藏 + + :return: The is_collect of this ShowPipelineDetailResponse. + :rtype: bool + """ + return self._is_collect + + @is_collect.setter + def is_collect(self, is_collect): + """Sets the is_collect of this ShowPipelineDetailResponse. + + 是否被当前用户收藏 + + :param is_collect: The is_collect of this ShowPipelineDetailResponse. + :type is_collect: bool + """ + self._is_collect = is_collect + + @property + def sources(self): + """Gets the sources of this ShowPipelineDetailResponse. + + 流水线源 + + :return: The sources of this ShowPipelineDetailResponse. + :rtype: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineSource`] + """ + return self._sources + + @sources.setter + def sources(self, sources): + """Sets the sources of this ShowPipelineDetailResponse. + + 流水线源 + + :param sources: The sources of this ShowPipelineDetailResponse. + :type sources: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineSource`] + """ + self._sources = sources + + @property + def variables(self): + """Gets the variables of this ShowPipelineDetailResponse. + + 流水线自定义参数 + + :return: The variables of this ShowPipelineDetailResponse. + :rtype: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineVariable`] + """ + return self._variables + + @variables.setter + def variables(self, variables): + """Sets the variables of this ShowPipelineDetailResponse. + + 流水线自定义参数 + + :param variables: The variables of this ShowPipelineDetailResponse. + :type variables: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineVariable`] + """ + self._variables = variables + + @property + def schedules(self): + """Gets the schedules of this ShowPipelineDetailResponse. + + 流水线定时任务设置 + + :return: The schedules of this ShowPipelineDetailResponse. + :rtype: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineSchedule`] + """ + return self._schedules + + @schedules.setter + def schedules(self, schedules): + """Sets the schedules of this ShowPipelineDetailResponse. + + 流水线定时任务设置 + + :param schedules: The schedules of this ShowPipelineDetailResponse. + :type schedules: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineSchedule`] + """ + self._schedules = schedules + + @property + def triggers(self): + """Gets the triggers of this ShowPipelineDetailResponse. + + 流水线事件触发设置 + + :return: The triggers of this ShowPipelineDetailResponse. + :rtype: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineTrigger`] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """Sets the triggers of this ShowPipelineDetailResponse. + + 流水线事件触发设置 + + :param triggers: The triggers of this ShowPipelineDetailResponse. + :type triggers: list[:class:`huaweicloudsdkcodeartspipeline.v2.PipelineTrigger`] + """ + self._triggers = triggers + + @property + def group_id(self): + """Gets the group_id of this ShowPipelineDetailResponse. + + 流水线所属分组ID + + :return: The group_id of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this ShowPipelineDetailResponse. + + 流水线所属分组ID + + :param group_id: The group_id of this ShowPipelineDetailResponse. + :type group_id: str + """ + self._group_id = group_id + + @property + def definition(self): + """Gets the definition of this ShowPipelineDetailResponse. + + 流水线定义 + + :return: The definition of this ShowPipelineDetailResponse. + :rtype: str + """ + return self._definition + + @definition.setter + def definition(self, definition): + """Sets the definition of this ShowPipelineDetailResponse. + + 流水线定义 + + :param definition: The definition of this ShowPipelineDetailResponse. + :type definition: str + """ + self._definition = definition + + 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, ShowPipelineDetailResponse): + 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-codeartspipeline/requirements.txt b/huaweicloud-sdk-codeartspipeline/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-codeartspipeline/requirements.txt +++ b/huaweicloud-sdk-codeartspipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartspipeline/setup.py b/huaweicloud-sdk-codeartspipeline/setup.py index e880fa2761..06d4b8086a 100644 --- a/huaweicloud-sdk-codeartspipeline/setup.py +++ b/huaweicloud-sdk-codeartspipeline/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartspipeline" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index 24054c135c..d9727e0070 100644 --- a/huaweicloud-sdk-codecraft/setup.py +++ b/huaweicloud-sdk-codecraft/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecraft" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index ec8e22b43b..5c919aedd3 100644 --- a/huaweicloud-sdk-codehub/setup.py +++ b/huaweicloud-sdk-codehub/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodehub" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/__init__.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/__init__.py index f9a1864e85..0e54dd5145 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/__init__.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/__init__.py @@ -24,6 +24,8 @@ from huaweicloudsdkconfig.v1.model.collect_all_resources_summary_response import CollectAllResourcesSummaryResponse from huaweicloudsdkconfig.v1.model.collect_conformance_pack_compliance_summary_request import CollectConformancePackComplianceSummaryRequest from huaweicloudsdkconfig.v1.model.collect_conformance_pack_compliance_summary_response import CollectConformancePackComplianceSummaryResponse +from huaweicloudsdkconfig.v1.model.collect_tracked_resources_summary_request import CollectTrackedResourcesSummaryRequest +from huaweicloudsdkconfig.v1.model.collect_tracked_resources_summary_response import CollectTrackedResourcesSummaryResponse from huaweicloudsdkconfig.v1.model.compliance import Compliance from huaweicloudsdkconfig.v1.model.configuration_aggregator_request import ConfigurationAggregatorRequest from huaweicloudsdkconfig.v1.model.configuration_aggregator_resp import ConfigurationAggregatorResp @@ -36,6 +38,8 @@ from huaweicloudsdkconfig.v1.model.conformance_pack_template import ConformancePackTemplate from huaweicloudsdkconfig.v1.model.count_all_resources_request import CountAllResourcesRequest from huaweicloudsdkconfig.v1.model.count_all_resources_response import CountAllResourcesResponse +from huaweicloudsdkconfig.v1.model.count_tracked_resources_request import CountTrackedResourcesRequest +from huaweicloudsdkconfig.v1.model.count_tracked_resources_response import CountTrackedResourcesResponse from huaweicloudsdkconfig.v1.model.create_aggregation_authorization_request import CreateAggregationAuthorizationRequest from huaweicloudsdkconfig.v1.model.create_aggregation_authorization_response import CreateAggregationAuthorizationResponse from huaweicloudsdkconfig.v1.model.create_configuration_aggregator_request import CreateConfigurationAggregatorRequest @@ -127,6 +131,10 @@ from huaweicloudsdkconfig.v1.model.list_schemas_response import ListSchemasResponse from huaweicloudsdkconfig.v1.model.list_stored_queries_request import ListStoredQueriesRequest from huaweicloudsdkconfig.v1.model.list_stored_queries_response import ListStoredQueriesResponse +from huaweicloudsdkconfig.v1.model.list_tracked_resource_tags_request import ListTrackedResourceTagsRequest +from huaweicloudsdkconfig.v1.model.list_tracked_resource_tags_response import ListTrackedResourceTagsResponse +from huaweicloudsdkconfig.v1.model.list_tracked_resources_request import ListTrackedResourcesRequest +from huaweicloudsdkconfig.v1.model.list_tracked_resources_response import ListTrackedResourcesResponse from huaweicloudsdkconfig.v1.model.managed_policy_assignment_metadata import ManagedPolicyAssignmentMetadata from huaweicloudsdkconfig.v1.model.org_conformance_pack_detailed_status import OrgConformancePackDetailedStatus from huaweicloudsdkconfig.v1.model.org_conformance_pack_request_body import OrgConformancePackRequestBody @@ -216,6 +224,8 @@ from huaweicloudsdkconfig.v1.model.show_resource_relations_response import ShowResourceRelationsResponse from huaweicloudsdkconfig.v1.model.show_stored_query_request import ShowStoredQueryRequest from huaweicloudsdkconfig.v1.model.show_stored_query_response import ShowStoredQueryResponse +from huaweicloudsdkconfig.v1.model.show_tracked_resource_detail_request import ShowTrackedResourceDetailRequest +from huaweicloudsdkconfig.v1.model.show_tracked_resource_detail_response import ShowTrackedResourceDetailResponse from huaweicloudsdkconfig.v1.model.show_tracker_config_request import ShowTrackerConfigRequest from huaweicloudsdkconfig.v1.model.show_tracker_config_response import ShowTrackerConfigResponse from huaweicloudsdkconfig.v1.model.stored_query import StoredQuery diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py index 6f2fbb7c8d..70bdedae23 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py @@ -4641,6 +4641,86 @@ def _collect_all_resources_summary_http_info(self, request): return http_info + def collect_tracked_resources_summary_async(self, request): + """列举资源记录器收集的资源概要 + + 查询当前用户资源记录器收集的资源概览。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CollectTrackedResourcesSummary + :type request: :class:`huaweicloudsdkconfig.v1.CollectTrackedResourcesSummaryRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.CollectTrackedResourcesSummaryResponse` + """ + http_info = self._collect_tracked_resources_summary_http_info(request) + return self._call_api(**http_info) + + def collect_tracked_resources_summary_async_invoker(self, request): + http_info = self._collect_tracked_resources_summary_http_info(request) + return AsyncInvoker(self, http_info) + + def _collect_tracked_resources_summary_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resource-manager/domains/{domain_id}/tracked-resources/summary", + "request_type": request.__class__.__name__, + "response_type": "CollectTrackedResourcesSummaryResponse" + } + + 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 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + collection_formats['type'] = 'csv' + if 'region_id' in local_var_params: + query_params.append(('region_id', local_var_params['region_id'])) + collection_formats['region_id'] = 'csv' + if 'ep_id' in local_var_params: + query_params.append(('ep_id', local_var_params['ep_id'])) + collection_formats['ep_id'] = 'csv' + if 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_id'])) + collection_formats['project_id'] = 'csv' + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + collection_formats['tags'] = 'multi' + + 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 = ['PkiTokenAuth'] + + 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 count_all_resources_async(self, request): """查询资源数量 @@ -4723,6 +4803,88 @@ def _count_all_resources_http_info(self, request): return http_info + def count_tracked_resources_async(self, request): + """查询资源记录器收集的资源数量 + + 查询当前用户资源记录器收集的资源数量。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CountTrackedResources + :type request: :class:`huaweicloudsdkconfig.v1.CountTrackedResourcesRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.CountTrackedResourcesResponse` + """ + http_info = self._count_tracked_resources_http_info(request) + return self._call_api(**http_info) + + def count_tracked_resources_async_invoker(self, request): + http_info = self._count_tracked_resources_http_info(request) + return AsyncInvoker(self, http_info) + + def _count_tracked_resources_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resource-manager/domains/{domain_id}/tracked-resources/count", + "request_type": request.__class__.__name__, + "response_type": "CountTrackedResourcesResponse" + } + + 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 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + collection_formats['type'] = 'csv' + if 'region_id' in local_var_params: + query_params.append(('region_id', local_var_params['region_id'])) + collection_formats['region_id'] = 'csv' + if 'ep_id' in local_var_params: + query_params.append(('ep_id', local_var_params['ep_id'])) + collection_formats['ep_id'] = 'csv' + if 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_id'])) + collection_formats['project_id'] = 'csv' + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + collection_formats['tags'] = 'multi' + + 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 = ['PkiTokenAuth'] + + 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_all_resources_async(self, request): """列举所有资源 @@ -5020,6 +5182,155 @@ def _list_resources_http_info(self, request): return http_info + def list_tracked_resource_tags_async(self, request): + """列举资源记录器收集的资源标签 + + 查询当前用户资源记录器收集的资源的标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListTrackedResourceTags + :type request: :class:`huaweicloudsdkconfig.v1.ListTrackedResourceTagsRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.ListTrackedResourceTagsResponse` + """ + http_info = self._list_tracked_resource_tags_http_info(request) + return self._call_api(**http_info) + + def list_tracked_resource_tags_async_invoker(self, request): + http_info = self._list_tracked_resource_tags_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_tracked_resource_tags_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resource-manager/domains/{domain_id}/tracked-resources/tags", + "request_type": request.__class__.__name__, + "response_type": "ListTrackedResourceTagsResponse" + } + + 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 'key' in local_var_params: + query_params.append(('key', local_var_params['key'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + 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 = ['PkiTokenAuth'] + + 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_tracked_resources_async(self, request): + """列举资源记录器收集的全部资源 + + 查询当前用户资源记录器收集的全部资源,需要当前用户有rms:resources:list权限。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListTrackedResources + :type request: :class:`huaweicloudsdkconfig.v1.ListTrackedResourcesRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.ListTrackedResourcesResponse` + """ + http_info = self._list_tracked_resources_http_info(request) + return self._call_api(**http_info) + + def list_tracked_resources_async_invoker(self, request): + http_info = self._list_tracked_resources_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_tracked_resources_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resource-manager/domains/{domain_id}/tracked-resources", + "request_type": request.__class__.__name__, + "response_type": "ListTrackedResourcesResponse" + } + + 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 'region_id' in local_var_params: + query_params.append(('region_id', local_var_params['region_id'])) + if 'ep_id' in local_var_params: + query_params.append(('ep_id', local_var_params['ep_id'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + collection_formats['tags'] = 'multi' + + 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 = ['PkiTokenAuth'] + + 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_resource_by_id_async(self, request): """查询单个资源 @@ -5154,6 +5465,71 @@ def _show_resource_detail_http_info(self, request): return http_info + def show_tracked_resource_detail_async(self, request): + """查询资源记录器收集的单个资源 + + 查询当前用户资源记录器收集的单个资源。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowTrackedResourceDetail + :type request: :class:`huaweicloudsdkconfig.v1.ShowTrackedResourceDetailRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.ShowTrackedResourceDetailResponse` + """ + http_info = self._show_tracked_resource_detail_http_info(request) + return self._call_api(**http_info) + + def show_tracked_resource_detail_async_invoker(self, request): + http_info = self._show_tracked_resource_detail_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_tracked_resource_detail_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resource-manager/domains/{domain_id}/tracked-resources/{resource_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowTrackedResourceDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'resource_id' in local_var_params: + path_params['resource_id'] = local_var_params['resource_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 = ['PkiTokenAuth'] + + 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_tracker_config_async(self, request): """创建或更新记录器 diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py index cb0b13f59c..a59ffc397e 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py @@ -4641,6 +4641,86 @@ def _collect_all_resources_summary_http_info(cls, request): return http_info + def collect_tracked_resources_summary(self, request): + """列举资源记录器收集的资源概要 + + 查询当前用户资源记录器收集的资源概览。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CollectTrackedResourcesSummary + :type request: :class:`huaweicloudsdkconfig.v1.CollectTrackedResourcesSummaryRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.CollectTrackedResourcesSummaryResponse` + """ + http_info = self._collect_tracked_resources_summary_http_info(request) + return self._call_api(**http_info) + + def collect_tracked_resources_summary_invoker(self, request): + http_info = self._collect_tracked_resources_summary_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _collect_tracked_resources_summary_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resource-manager/domains/{domain_id}/tracked-resources/summary", + "request_type": request.__class__.__name__, + "response_type": "CollectTrackedResourcesSummaryResponse" + } + + 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 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + collection_formats['type'] = 'csv' + if 'region_id' in local_var_params: + query_params.append(('region_id', local_var_params['region_id'])) + collection_formats['region_id'] = 'csv' + if 'ep_id' in local_var_params: + query_params.append(('ep_id', local_var_params['ep_id'])) + collection_formats['ep_id'] = 'csv' + if 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_id'])) + collection_formats['project_id'] = 'csv' + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + collection_formats['tags'] = 'multi' + + 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 = ['PkiTokenAuth'] + + 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 count_all_resources(self, request): """查询资源数量 @@ -4723,6 +4803,88 @@ def _count_all_resources_http_info(cls, request): return http_info + def count_tracked_resources(self, request): + """查询资源记录器收集的资源数量 + + 查询当前用户资源记录器收集的资源数量。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CountTrackedResources + :type request: :class:`huaweicloudsdkconfig.v1.CountTrackedResourcesRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.CountTrackedResourcesResponse` + """ + http_info = self._count_tracked_resources_http_info(request) + return self._call_api(**http_info) + + def count_tracked_resources_invoker(self, request): + http_info = self._count_tracked_resources_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _count_tracked_resources_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resource-manager/domains/{domain_id}/tracked-resources/count", + "request_type": request.__class__.__name__, + "response_type": "CountTrackedResourcesResponse" + } + + 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 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + collection_formats['type'] = 'csv' + if 'region_id' in local_var_params: + query_params.append(('region_id', local_var_params['region_id'])) + collection_formats['region_id'] = 'csv' + if 'ep_id' in local_var_params: + query_params.append(('ep_id', local_var_params['ep_id'])) + collection_formats['ep_id'] = 'csv' + if 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_id'])) + collection_formats['project_id'] = 'csv' + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + collection_formats['tags'] = 'multi' + + 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 = ['PkiTokenAuth'] + + 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_all_resources(self, request): """列举所有资源 @@ -5020,6 +5182,155 @@ def _list_resources_http_info(cls, request): return http_info + def list_tracked_resource_tags(self, request): + """列举资源记录器收集的资源标签 + + 查询当前用户资源记录器收集的资源的标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListTrackedResourceTags + :type request: :class:`huaweicloudsdkconfig.v1.ListTrackedResourceTagsRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.ListTrackedResourceTagsResponse` + """ + http_info = self._list_tracked_resource_tags_http_info(request) + return self._call_api(**http_info) + + def list_tracked_resource_tags_invoker(self, request): + http_info = self._list_tracked_resource_tags_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_tracked_resource_tags_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resource-manager/domains/{domain_id}/tracked-resources/tags", + "request_type": request.__class__.__name__, + "response_type": "ListTrackedResourceTagsResponse" + } + + 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 'key' in local_var_params: + query_params.append(('key', local_var_params['key'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + 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 = ['PkiTokenAuth'] + + 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_tracked_resources(self, request): + """列举资源记录器收集的全部资源 + + 查询当前用户资源记录器收集的全部资源,需要当前用户有rms:resources:list权限。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListTrackedResources + :type request: :class:`huaweicloudsdkconfig.v1.ListTrackedResourcesRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.ListTrackedResourcesResponse` + """ + http_info = self._list_tracked_resources_http_info(request) + return self._call_api(**http_info) + + def list_tracked_resources_invoker(self, request): + http_info = self._list_tracked_resources_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_tracked_resources_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resource-manager/domains/{domain_id}/tracked-resources", + "request_type": request.__class__.__name__, + "response_type": "ListTrackedResourcesResponse" + } + + 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 'region_id' in local_var_params: + query_params.append(('region_id', local_var_params['region_id'])) + if 'ep_id' in local_var_params: + query_params.append(('ep_id', local_var_params['ep_id'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + collection_formats['tags'] = 'multi' + + 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 = ['PkiTokenAuth'] + + 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_resource_by_id(self, request): """查询单个资源 @@ -5154,6 +5465,71 @@ def _show_resource_detail_http_info(cls, request): return http_info + def show_tracked_resource_detail(self, request): + """查询资源记录器收集的单个资源 + + 查询当前用户资源记录器收集的单个资源。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowTrackedResourceDetail + :type request: :class:`huaweicloudsdkconfig.v1.ShowTrackedResourceDetailRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.ShowTrackedResourceDetailResponse` + """ + http_info = self._show_tracked_resource_detail_http_info(request) + return self._call_api(**http_info) + + def show_tracked_resource_detail_invoker(self, request): + http_info = self._show_tracked_resource_detail_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_tracked_resource_detail_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resource-manager/domains/{domain_id}/tracked-resources/{resource_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowTrackedResourceDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'resource_id' in local_var_params: + path_params['resource_id'] = local_var_params['resource_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 = ['PkiTokenAuth'] + + 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_tracker_config(self, request): """创建或更新记录器 diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/__init__.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/__init__.py index ec6dd01824..f815e5833f 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/__init__.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/__init__.py @@ -22,6 +22,8 @@ from huaweicloudsdkconfig.v1.model.collect_all_resources_summary_response import CollectAllResourcesSummaryResponse from huaweicloudsdkconfig.v1.model.collect_conformance_pack_compliance_summary_request import CollectConformancePackComplianceSummaryRequest from huaweicloudsdkconfig.v1.model.collect_conformance_pack_compliance_summary_response import CollectConformancePackComplianceSummaryResponse +from huaweicloudsdkconfig.v1.model.collect_tracked_resources_summary_request import CollectTrackedResourcesSummaryRequest +from huaweicloudsdkconfig.v1.model.collect_tracked_resources_summary_response import CollectTrackedResourcesSummaryResponse from huaweicloudsdkconfig.v1.model.compliance import Compliance from huaweicloudsdkconfig.v1.model.configuration_aggregator_request import ConfigurationAggregatorRequest from huaweicloudsdkconfig.v1.model.configuration_aggregator_resp import ConfigurationAggregatorResp @@ -34,6 +36,8 @@ from huaweicloudsdkconfig.v1.model.conformance_pack_template import ConformancePackTemplate from huaweicloudsdkconfig.v1.model.count_all_resources_request import CountAllResourcesRequest from huaweicloudsdkconfig.v1.model.count_all_resources_response import CountAllResourcesResponse +from huaweicloudsdkconfig.v1.model.count_tracked_resources_request import CountTrackedResourcesRequest +from huaweicloudsdkconfig.v1.model.count_tracked_resources_response import CountTrackedResourcesResponse from huaweicloudsdkconfig.v1.model.create_aggregation_authorization_request import CreateAggregationAuthorizationRequest from huaweicloudsdkconfig.v1.model.create_aggregation_authorization_response import CreateAggregationAuthorizationResponse from huaweicloudsdkconfig.v1.model.create_configuration_aggregator_request import CreateConfigurationAggregatorRequest @@ -125,6 +129,10 @@ from huaweicloudsdkconfig.v1.model.list_schemas_response import ListSchemasResponse from huaweicloudsdkconfig.v1.model.list_stored_queries_request import ListStoredQueriesRequest from huaweicloudsdkconfig.v1.model.list_stored_queries_response import ListStoredQueriesResponse +from huaweicloudsdkconfig.v1.model.list_tracked_resource_tags_request import ListTrackedResourceTagsRequest +from huaweicloudsdkconfig.v1.model.list_tracked_resource_tags_response import ListTrackedResourceTagsResponse +from huaweicloudsdkconfig.v1.model.list_tracked_resources_request import ListTrackedResourcesRequest +from huaweicloudsdkconfig.v1.model.list_tracked_resources_response import ListTrackedResourcesResponse from huaweicloudsdkconfig.v1.model.managed_policy_assignment_metadata import ManagedPolicyAssignmentMetadata from huaweicloudsdkconfig.v1.model.org_conformance_pack_detailed_status import OrgConformancePackDetailedStatus from huaweicloudsdkconfig.v1.model.org_conformance_pack_request_body import OrgConformancePackRequestBody @@ -214,6 +222,8 @@ from huaweicloudsdkconfig.v1.model.show_resource_relations_response import ShowResourceRelationsResponse from huaweicloudsdkconfig.v1.model.show_stored_query_request import ShowStoredQueryRequest from huaweicloudsdkconfig.v1.model.show_stored_query_response import ShowStoredQueryResponse +from huaweicloudsdkconfig.v1.model.show_tracked_resource_detail_request import ShowTrackedResourceDetailRequest +from huaweicloudsdkconfig.v1.model.show_tracked_resource_detail_response import ShowTrackedResourceDetailResponse from huaweicloudsdkconfig.v1.model.show_tracker_config_request import ShowTrackerConfigRequest from huaweicloudsdkconfig.v1.model.show_tracker_config_response import ShowTrackerConfigResponse from huaweicloudsdkconfig.v1.model.stored_query import StoredQuery diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/collect_tracked_resources_summary_request.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/collect_tracked_resources_summary_request.py new file mode 100644 index 0000000000..414985f515 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/collect_tracked_resources_summary_request.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CollectTrackedResourcesSummaryRequest: + + """ + 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', + 'type': 'list[str]', + 'region_id': 'list[str]', + 'ep_id': 'list[str]', + 'project_id': 'list[str]', + 'tags': 'list[str]' + } + + attribute_map = { + 'name': 'name', + 'type': 'type', + 'region_id': 'region_id', + 'ep_id': 'ep_id', + 'project_id': 'project_id', + 'tags': 'tags' + } + + def __init__(self, name=None, type=None, region_id=None, ep_id=None, project_id=None, tags=None): + """CollectTrackedResourcesSummaryRequest + + The model defined in huaweicloud sdk + + :param name: 资源名称 + :type name: str + :param type: 资源类型(provider.type) + :type type: list[str] + :param region_id: 区域ID列表 + :type region_id: list[str] + :param ep_id: 企业项目ID列表 + :type ep_id: list[str] + :param project_id: 项目ID + :type project_id: list[str] + :param tags: 标签列表 + :type tags: list[str] + """ + + + + self._name = None + self._type = None + self._region_id = None + self._ep_id = None + self._project_id = None + self._tags = None + self.discriminator = None + + if name is not None: + self.name = name + if type is not None: + self.type = type + if region_id is not None: + self.region_id = region_id + if ep_id is not None: + self.ep_id = ep_id + if project_id is not None: + self.project_id = project_id + if tags is not None: + self.tags = tags + + @property + def name(self): + """Gets the name of this CollectTrackedResourcesSummaryRequest. + + 资源名称 + + :return: The name of this CollectTrackedResourcesSummaryRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CollectTrackedResourcesSummaryRequest. + + 资源名称 + + :param name: The name of this CollectTrackedResourcesSummaryRequest. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this CollectTrackedResourcesSummaryRequest. + + 资源类型(provider.type) + + :return: The type of this CollectTrackedResourcesSummaryRequest. + :rtype: list[str] + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CollectTrackedResourcesSummaryRequest. + + 资源类型(provider.type) + + :param type: The type of this CollectTrackedResourcesSummaryRequest. + :type type: list[str] + """ + self._type = type + + @property + def region_id(self): + """Gets the region_id of this CollectTrackedResourcesSummaryRequest. + + 区域ID列表 + + :return: The region_id of this CollectTrackedResourcesSummaryRequest. + :rtype: list[str] + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this CollectTrackedResourcesSummaryRequest. + + 区域ID列表 + + :param region_id: The region_id of this CollectTrackedResourcesSummaryRequest. + :type region_id: list[str] + """ + self._region_id = region_id + + @property + def ep_id(self): + """Gets the ep_id of this CollectTrackedResourcesSummaryRequest. + + 企业项目ID列表 + + :return: The ep_id of this CollectTrackedResourcesSummaryRequest. + :rtype: list[str] + """ + return self._ep_id + + @ep_id.setter + def ep_id(self, ep_id): + """Sets the ep_id of this CollectTrackedResourcesSummaryRequest. + + 企业项目ID列表 + + :param ep_id: The ep_id of this CollectTrackedResourcesSummaryRequest. + :type ep_id: list[str] + """ + self._ep_id = ep_id + + @property + def project_id(self): + """Gets the project_id of this CollectTrackedResourcesSummaryRequest. + + 项目ID + + :return: The project_id of this CollectTrackedResourcesSummaryRequest. + :rtype: list[str] + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CollectTrackedResourcesSummaryRequest. + + 项目ID + + :param project_id: The project_id of this CollectTrackedResourcesSummaryRequest. + :type project_id: list[str] + """ + self._project_id = project_id + + @property + def tags(self): + """Gets the tags of this CollectTrackedResourcesSummaryRequest. + + 标签列表 + + :return: The tags of this CollectTrackedResourcesSummaryRequest. + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CollectTrackedResourcesSummaryRequest. + + 标签列表 + + :param tags: The tags of this CollectTrackedResourcesSummaryRequest. + :type tags: list[str] + """ + self._tags = tags + + 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, CollectTrackedResourcesSummaryRequest): + 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-config/huaweicloudsdkconfig/v1/model/collect_tracked_resources_summary_response.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/collect_tracked_resources_summary_response.py new file mode 100644 index 0000000000..2ef7337d35 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/collect_tracked_resources_summary_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 CollectTrackedResourcesSummaryResponse(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': 'list[ResourceSummaryResponseItem]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CollectTrackedResourcesSummaryResponse + + The model defined in huaweicloud sdk + + :param body: 资源概要信息列表 + :type body: list[:class:`huaweicloudsdkconfig.v1.ResourceSummaryResponseItem`] + """ + + super(CollectTrackedResourcesSummaryResponse, 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 CollectTrackedResourcesSummaryResponse. + + 资源概要信息列表 + + :return: The body of this CollectTrackedResourcesSummaryResponse. + :rtype: list[:class:`huaweicloudsdkconfig.v1.ResourceSummaryResponseItem`] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CollectTrackedResourcesSummaryResponse. + + 资源概要信息列表 + + :param body: The body of this CollectTrackedResourcesSummaryResponse. + :type body: list[:class:`huaweicloudsdkconfig.v1.ResourceSummaryResponseItem`] + """ + 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, CollectTrackedResourcesSummaryResponse): + 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-config/huaweicloudsdkconfig/v1/model/count_tracked_resources_request.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/count_tracked_resources_request.py new file mode 100644 index 0000000000..64a87e7e08 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/count_tracked_resources_request.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CountTrackedResourcesRequest: + + """ + 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', + 'name': 'str', + 'type': 'list[str]', + 'region_id': 'list[str]', + 'ep_id': 'list[str]', + 'project_id': 'list[str]', + 'tags': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'type': 'type', + 'region_id': 'region_id', + 'ep_id': 'ep_id', + 'project_id': 'project_id', + 'tags': 'tags' + } + + def __init__(self, id=None, name=None, type=None, region_id=None, ep_id=None, project_id=None, tags=None): + """CountTrackedResourcesRequest + + The model defined in huaweicloud sdk + + :param id: 资源ID + :type id: str + :param name: 资源名称 + :type name: str + :param type: 资源类型(provider.type) + :type type: list[str] + :param region_id: 区域ID列表 + :type region_id: list[str] + :param ep_id: 企业项目ID列表 + :type ep_id: list[str] + :param project_id: 项目ID + :type project_id: list[str] + :param tags: 标签列表 + :type tags: list[str] + """ + + + + self._id = None + self._name = None + self._type = None + self._region_id = None + self._ep_id = None + self._project_id = None + self._tags = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if type is not None: + self.type = type + if region_id is not None: + self.region_id = region_id + if ep_id is not None: + self.ep_id = ep_id + if project_id is not None: + self.project_id = project_id + if tags is not None: + self.tags = tags + + @property + def id(self): + """Gets the id of this CountTrackedResourcesRequest. + + 资源ID + + :return: The id of this CountTrackedResourcesRequest. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CountTrackedResourcesRequest. + + 资源ID + + :param id: The id of this CountTrackedResourcesRequest. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CountTrackedResourcesRequest. + + 资源名称 + + :return: The name of this CountTrackedResourcesRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CountTrackedResourcesRequest. + + 资源名称 + + :param name: The name of this CountTrackedResourcesRequest. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this CountTrackedResourcesRequest. + + 资源类型(provider.type) + + :return: The type of this CountTrackedResourcesRequest. + :rtype: list[str] + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CountTrackedResourcesRequest. + + 资源类型(provider.type) + + :param type: The type of this CountTrackedResourcesRequest. + :type type: list[str] + """ + self._type = type + + @property + def region_id(self): + """Gets the region_id of this CountTrackedResourcesRequest. + + 区域ID列表 + + :return: The region_id of this CountTrackedResourcesRequest. + :rtype: list[str] + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this CountTrackedResourcesRequest. + + 区域ID列表 + + :param region_id: The region_id of this CountTrackedResourcesRequest. + :type region_id: list[str] + """ + self._region_id = region_id + + @property + def ep_id(self): + """Gets the ep_id of this CountTrackedResourcesRequest. + + 企业项目ID列表 + + :return: The ep_id of this CountTrackedResourcesRequest. + :rtype: list[str] + """ + return self._ep_id + + @ep_id.setter + def ep_id(self, ep_id): + """Sets the ep_id of this CountTrackedResourcesRequest. + + 企业项目ID列表 + + :param ep_id: The ep_id of this CountTrackedResourcesRequest. + :type ep_id: list[str] + """ + self._ep_id = ep_id + + @property + def project_id(self): + """Gets the project_id of this CountTrackedResourcesRequest. + + 项目ID + + :return: The project_id of this CountTrackedResourcesRequest. + :rtype: list[str] + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CountTrackedResourcesRequest. + + 项目ID + + :param project_id: The project_id of this CountTrackedResourcesRequest. + :type project_id: list[str] + """ + self._project_id = project_id + + @property + def tags(self): + """Gets the tags of this CountTrackedResourcesRequest. + + 标签列表 + + :return: The tags of this CountTrackedResourcesRequest. + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CountTrackedResourcesRequest. + + 标签列表 + + :param tags: The tags of this CountTrackedResourcesRequest. + :type tags: list[str] + """ + self._tags = tags + + 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, CountTrackedResourcesRequest): + 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-config/huaweicloudsdkconfig/v1/model/count_tracked_resources_response.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/count_tracked_resources_response.py new file mode 100644 index 0000000000..b7bd70f27d --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/count_tracked_resources_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 CountTrackedResourcesResponse(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 = { + 'total_count': 'int' + } + + attribute_map = { + 'total_count': 'total_count' + } + + def __init__(self, total_count=None): + """CountTrackedResourcesResponse + + The model defined in huaweicloud sdk + + :param total_count: 资源总数 + :type total_count: int + """ + + super(CountTrackedResourcesResponse, self).__init__() + + self._total_count = None + self.discriminator = None + + if total_count is not None: + self.total_count = total_count + + @property + def total_count(self): + """Gets the total_count of this CountTrackedResourcesResponse. + + 资源总数 + + :return: The total_count of this CountTrackedResourcesResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this CountTrackedResourcesResponse. + + 资源总数 + + :param total_count: The total_count of this CountTrackedResourcesResponse. + :type total_count: int + """ + self._total_count = total_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, CountTrackedResourcesResponse): + 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-config/huaweicloudsdkconfig/v1/model/list_tracked_resource_tags_request.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_tracked_resource_tags_request.py new file mode 100644 index 0000000000..2c0b9a9c25 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_tracked_resource_tags_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListTrackedResourceTagsRequest: + + """ + 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', + 'marker': 'str', + 'limit': 'int' + } + + attribute_map = { + 'key': 'key', + 'marker': 'marker', + 'limit': 'limit' + } + + def __init__(self, key=None, marker=None, limit=None): + """ListTrackedResourceTagsRequest + + The model defined in huaweicloud sdk + + :param key: 标签键名 + :type key: str + :param marker: 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + :type marker: str + :param limit: 最大的返回数量。 + :type limit: int + """ + + + + self._key = None + self._marker = None + self._limit = None + self.discriminator = None + + if key is not None: + self.key = key + if marker is not None: + self.marker = marker + if limit is not None: + self.limit = limit + + @property + def key(self): + """Gets the key of this ListTrackedResourceTagsRequest. + + 标签键名 + + :return: The key of this ListTrackedResourceTagsRequest. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this ListTrackedResourceTagsRequest. + + 标签键名 + + :param key: The key of this ListTrackedResourceTagsRequest. + :type key: str + """ + self._key = key + + @property + def marker(self): + """Gets the marker of this ListTrackedResourceTagsRequest. + + 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + + :return: The marker of this ListTrackedResourceTagsRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListTrackedResourceTagsRequest. + + 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + + :param marker: The marker of this ListTrackedResourceTagsRequest. + :type marker: str + """ + self._marker = marker + + @property + def limit(self): + """Gets the limit of this ListTrackedResourceTagsRequest. + + 最大的返回数量。 + + :return: The limit of this ListTrackedResourceTagsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListTrackedResourceTagsRequest. + + 最大的返回数量。 + + :param limit: The limit of this ListTrackedResourceTagsRequest. + :type limit: int + """ + self._limit = limit + + 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, ListTrackedResourceTagsRequest): + 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-config/huaweicloudsdkconfig/v1/model/list_tracked_resource_tags_response.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_tracked_resource_tags_response.py new file mode 100644 index 0000000000..21a36978f4 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_tracked_resource_tags_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 ListTrackedResourceTagsResponse(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 = { + 'tags': 'list[TagDetail]', + 'page_info': 'PageInfo' + } + + attribute_map = { + 'tags': 'tags', + 'page_info': 'page_info' + } + + def __init__(self, tags=None, page_info=None): + """ListTrackedResourceTagsResponse + + The model defined in huaweicloud sdk + + :param tags: 标签列表 + :type tags: list[:class:`huaweicloudsdkconfig.v1.TagDetail`] + :param page_info: + :type page_info: :class:`huaweicloudsdkconfig.v1.PageInfo` + """ + + super(ListTrackedResourceTagsResponse, self).__init__() + + self._tags = None + self._page_info = None + self.discriminator = None + + if tags is not None: + self.tags = tags + if page_info is not None: + self.page_info = page_info + + @property + def tags(self): + """Gets the tags of this ListTrackedResourceTagsResponse. + + 标签列表 + + :return: The tags of this ListTrackedResourceTagsResponse. + :rtype: list[:class:`huaweicloudsdkconfig.v1.TagDetail`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ListTrackedResourceTagsResponse. + + 标签列表 + + :param tags: The tags of this ListTrackedResourceTagsResponse. + :type tags: list[:class:`huaweicloudsdkconfig.v1.TagDetail`] + """ + self._tags = tags + + @property + def page_info(self): + """Gets the page_info of this ListTrackedResourceTagsResponse. + + :return: The page_info of this ListTrackedResourceTagsResponse. + :rtype: :class:`huaweicloudsdkconfig.v1.PageInfo` + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this ListTrackedResourceTagsResponse. + + :param page_info: The page_info of this ListTrackedResourceTagsResponse. + :type page_info: :class:`huaweicloudsdkconfig.v1.PageInfo` + """ + self._page_info = page_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, ListTrackedResourceTagsResponse): + 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-config/huaweicloudsdkconfig/v1/model/list_tracked_resources_request.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_tracked_resources_request.py new file mode 100644 index 0000000000..293786dfd4 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_tracked_resources_request.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListTrackedResourcesRequest: + + """ + 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 = { + 'region_id': 'str', + 'ep_id': 'str', + 'type': 'str', + 'limit': 'int', + 'marker': 'str', + 'id': 'str', + 'name': 'str', + 'tags': 'list[str]' + } + + attribute_map = { + 'region_id': 'region_id', + 'ep_id': 'ep_id', + 'type': 'type', + 'limit': 'limit', + 'marker': 'marker', + 'id': 'id', + 'name': 'name', + 'tags': 'tags' + } + + def __init__(self, region_id=None, ep_id=None, type=None, limit=None, marker=None, id=None, name=None, tags=None): + """ListTrackedResourcesRequest + + The model defined in huaweicloud sdk + + :param region_id: 区域ID + :type region_id: str + :param ep_id: 企业项目ID + :type ep_id: str + :param type: 资源类型(provider.type) + :type type: str + :param limit: 最大的返回数量。 + :type limit: int + :param marker: 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + :type marker: str + :param id: 资源ID + :type id: str + :param name: 资源名称 + :type name: str + :param tags: 标签列表 + :type tags: list[str] + """ + + + + self._region_id = None + self._ep_id = None + self._type = None + self._limit = None + self._marker = None + self._id = None + self._name = None + self._tags = None + self.discriminator = None + + if region_id is not None: + self.region_id = region_id + if ep_id is not None: + self.ep_id = ep_id + if type is not None: + self.type = type + if limit is not None: + self.limit = limit + if marker is not None: + self.marker = marker + if id is not None: + self.id = id + if name is not None: + self.name = name + if tags is not None: + self.tags = tags + + @property + def region_id(self): + """Gets the region_id of this ListTrackedResourcesRequest. + + 区域ID + + :return: The region_id of this ListTrackedResourcesRequest. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ListTrackedResourcesRequest. + + 区域ID + + :param region_id: The region_id of this ListTrackedResourcesRequest. + :type region_id: str + """ + self._region_id = region_id + + @property + def ep_id(self): + """Gets the ep_id of this ListTrackedResourcesRequest. + + 企业项目ID + + :return: The ep_id of this ListTrackedResourcesRequest. + :rtype: str + """ + return self._ep_id + + @ep_id.setter + def ep_id(self, ep_id): + """Sets the ep_id of this ListTrackedResourcesRequest. + + 企业项目ID + + :param ep_id: The ep_id of this ListTrackedResourcesRequest. + :type ep_id: str + """ + self._ep_id = ep_id + + @property + def type(self): + """Gets the type of this ListTrackedResourcesRequest. + + 资源类型(provider.type) + + :return: The type of this ListTrackedResourcesRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListTrackedResourcesRequest. + + 资源类型(provider.type) + + :param type: The type of this ListTrackedResourcesRequest. + :type type: str + """ + self._type = type + + @property + def limit(self): + """Gets the limit of this ListTrackedResourcesRequest. + + 最大的返回数量。 + + :return: The limit of this ListTrackedResourcesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListTrackedResourcesRequest. + + 最大的返回数量。 + + :param limit: The limit of this ListTrackedResourcesRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this ListTrackedResourcesRequest. + + 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + + :return: The marker of this ListTrackedResourcesRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListTrackedResourcesRequest. + + 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + + :param marker: The marker of this ListTrackedResourcesRequest. + :type marker: str + """ + self._marker = marker + + @property + def id(self): + """Gets the id of this ListTrackedResourcesRequest. + + 资源ID + + :return: The id of this ListTrackedResourcesRequest. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ListTrackedResourcesRequest. + + 资源ID + + :param id: The id of this ListTrackedResourcesRequest. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ListTrackedResourcesRequest. + + 资源名称 + + :return: The name of this ListTrackedResourcesRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListTrackedResourcesRequest. + + 资源名称 + + :param name: The name of this ListTrackedResourcesRequest. + :type name: str + """ + self._name = name + + @property + def tags(self): + """Gets the tags of this ListTrackedResourcesRequest. + + 标签列表 + + :return: The tags of this ListTrackedResourcesRequest. + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ListTrackedResourcesRequest. + + 标签列表 + + :param tags: The tags of this ListTrackedResourcesRequest. + :type tags: list[str] + """ + self._tags = tags + + 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, ListTrackedResourcesRequest): + 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-config/huaweicloudsdkconfig/v1/model/list_tracked_resources_response.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_tracked_resources_response.py new file mode 100644 index 0000000000..ea083b4557 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_tracked_resources_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 ListTrackedResourcesResponse(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 = { + 'resources': 'list[ResourceEntity]', + 'page_info': 'PageInfo' + } + + attribute_map = { + 'resources': 'resources', + 'page_info': 'page_info' + } + + def __init__(self, resources=None, page_info=None): + """ListTrackedResourcesResponse + + The model defined in huaweicloud sdk + + :param resources: 资源列表 + :type resources: list[:class:`huaweicloudsdkconfig.v1.ResourceEntity`] + :param page_info: + :type page_info: :class:`huaweicloudsdkconfig.v1.PageInfo` + """ + + super(ListTrackedResourcesResponse, self).__init__() + + self._resources = None + self._page_info = None + self.discriminator = None + + if resources is not None: + self.resources = resources + if page_info is not None: + self.page_info = page_info + + @property + def resources(self): + """Gets the resources of this ListTrackedResourcesResponse. + + 资源列表 + + :return: The resources of this ListTrackedResourcesResponse. + :rtype: list[:class:`huaweicloudsdkconfig.v1.ResourceEntity`] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this ListTrackedResourcesResponse. + + 资源列表 + + :param resources: The resources of this ListTrackedResourcesResponse. + :type resources: list[:class:`huaweicloudsdkconfig.v1.ResourceEntity`] + """ + self._resources = resources + + @property + def page_info(self): + """Gets the page_info of this ListTrackedResourcesResponse. + + :return: The page_info of this ListTrackedResourcesResponse. + :rtype: :class:`huaweicloudsdkconfig.v1.PageInfo` + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this ListTrackedResourcesResponse. + + :param page_info: The page_info of this ListTrackedResourcesResponse. + :type page_info: :class:`huaweicloudsdkconfig.v1.PageInfo` + """ + self._page_info = page_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, ListTrackedResourcesResponse): + 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-config/huaweicloudsdkconfig/v1/model/show_tracked_resource_detail_request.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/show_tracked_resource_detail_request.py new file mode 100644 index 0000000000..94ae88d787 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/show_tracked_resource_detail_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTrackedResourceDetailRequest: + + """ + 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 = { + 'resource_id': 'str' + } + + attribute_map = { + 'resource_id': 'resource_id' + } + + def __init__(self, resource_id=None): + """ShowTrackedResourceDetailRequest + + The model defined in huaweicloud sdk + + :param resource_id: 资源ID + :type resource_id: str + """ + + + + self._resource_id = None + self.discriminator = None + + self.resource_id = resource_id + + @property + def resource_id(self): + """Gets the resource_id of this ShowTrackedResourceDetailRequest. + + 资源ID + + :return: The resource_id of this ShowTrackedResourceDetailRequest. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this ShowTrackedResourceDetailRequest. + + 资源ID + + :param resource_id: The resource_id of this ShowTrackedResourceDetailRequest. + :type resource_id: str + """ + self._resource_id = resource_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, ShowTrackedResourceDetailRequest): + 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-config/huaweicloudsdkconfig/v1/model/show_tracked_resource_detail_response.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/show_tracked_resource_detail_response.py new file mode 100644 index 0000000000..ebeefe9142 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/show_tracked_resource_detail_response.py @@ -0,0 +1,522 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTrackedResourceDetailResponse(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', + 'name': 'str', + 'provider': 'str', + 'type': 'str', + 'region_id': 'str', + 'project_id': 'str', + 'project_name': 'str', + 'ep_id': 'str', + 'ep_name': 'str', + 'checksum': 'str', + 'created': 'str', + 'updated': 'str', + 'provisioning_state': 'str', + 'tags': 'dict(str, str)', + 'properties': 'dict(str, object)' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'provider': 'provider', + 'type': 'type', + 'region_id': 'region_id', + 'project_id': 'project_id', + 'project_name': 'project_name', + 'ep_id': 'ep_id', + 'ep_name': 'ep_name', + 'checksum': 'checksum', + 'created': 'created', + 'updated': 'updated', + 'provisioning_state': 'provisioning_state', + 'tags': 'tags', + 'properties': 'properties' + } + + def __init__(self, id=None, name=None, provider=None, type=None, region_id=None, project_id=None, project_name=None, ep_id=None, ep_name=None, checksum=None, created=None, updated=None, provisioning_state=None, tags=None, properties=None): + """ShowTrackedResourceDetailResponse + + The model defined in huaweicloud sdk + + :param id: 资源id + :type id: str + :param name: 资源名称 + :type name: str + :param provider: 云服务名称 + :type provider: str + :param type: 资源类型 + :type type: str + :param region_id: 区域id + :type region_id: str + :param project_id: Openstack中的项目id + :type project_id: str + :param project_name: Openstack中的项目名称 + :type project_name: str + :param ep_id: 企业项目id + :type ep_id: str + :param ep_name: 企业项目名称 + :type ep_name: str + :param checksum: 资源详情校验码 + :type checksum: str + :param created: 资源创建时间 + :type created: str + :param updated: 资源更新时间 + :type updated: str + :param provisioning_state: 资源操作状态 + :type provisioning_state: str + :param tags: 资源Tag + :type tags: dict(str, str) + :param properties: 资源详细属性 + :type properties: dict(str, object) + """ + + super(ShowTrackedResourceDetailResponse, self).__init__() + + self._id = None + self._name = None + self._provider = None + self._type = None + self._region_id = None + self._project_id = None + self._project_name = None + self._ep_id = None + self._ep_name = None + self._checksum = None + self._created = None + self._updated = None + self._provisioning_state = None + self._tags = None + self._properties = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if provider is not None: + self.provider = provider + if type is not None: + self.type = type + if region_id is not None: + self.region_id = region_id + if project_id is not None: + self.project_id = project_id + if project_name is not None: + self.project_name = project_name + if ep_id is not None: + self.ep_id = ep_id + if ep_name is not None: + self.ep_name = ep_name + if checksum is not None: + self.checksum = checksum + if created is not None: + self.created = created + if updated is not None: + self.updated = updated + if provisioning_state is not None: + self.provisioning_state = provisioning_state + if tags is not None: + self.tags = tags + if properties is not None: + self.properties = properties + + @property + def id(self): + """Gets the id of this ShowTrackedResourceDetailResponse. + + 资源id + + :return: The id of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowTrackedResourceDetailResponse. + + 资源id + + :param id: The id of this ShowTrackedResourceDetailResponse. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ShowTrackedResourceDetailResponse. + + 资源名称 + + :return: The name of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowTrackedResourceDetailResponse. + + 资源名称 + + :param name: The name of this ShowTrackedResourceDetailResponse. + :type name: str + """ + self._name = name + + @property + def provider(self): + """Gets the provider of this ShowTrackedResourceDetailResponse. + + 云服务名称 + + :return: The provider of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._provider + + @provider.setter + def provider(self, provider): + """Sets the provider of this ShowTrackedResourceDetailResponse. + + 云服务名称 + + :param provider: The provider of this ShowTrackedResourceDetailResponse. + :type provider: str + """ + self._provider = provider + + @property + def type(self): + """Gets the type of this ShowTrackedResourceDetailResponse. + + 资源类型 + + :return: The type of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ShowTrackedResourceDetailResponse. + + 资源类型 + + :param type: The type of this ShowTrackedResourceDetailResponse. + :type type: str + """ + self._type = type + + @property + def region_id(self): + """Gets the region_id of this ShowTrackedResourceDetailResponse. + + 区域id + + :return: The region_id of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ShowTrackedResourceDetailResponse. + + 区域id + + :param region_id: The region_id of this ShowTrackedResourceDetailResponse. + :type region_id: str + """ + self._region_id = region_id + + @property + def project_id(self): + """Gets the project_id of this ShowTrackedResourceDetailResponse. + + Openstack中的项目id + + :return: The project_id of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowTrackedResourceDetailResponse. + + Openstack中的项目id + + :param project_id: The project_id of this ShowTrackedResourceDetailResponse. + :type project_id: str + """ + self._project_id = project_id + + @property + def project_name(self): + """Gets the project_name of this ShowTrackedResourceDetailResponse. + + Openstack中的项目名称 + + :return: The project_name of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._project_name + + @project_name.setter + def project_name(self, project_name): + """Sets the project_name of this ShowTrackedResourceDetailResponse. + + Openstack中的项目名称 + + :param project_name: The project_name of this ShowTrackedResourceDetailResponse. + :type project_name: str + """ + self._project_name = project_name + + @property + def ep_id(self): + """Gets the ep_id of this ShowTrackedResourceDetailResponse. + + 企业项目id + + :return: The ep_id of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._ep_id + + @ep_id.setter + def ep_id(self, ep_id): + """Sets the ep_id of this ShowTrackedResourceDetailResponse. + + 企业项目id + + :param ep_id: The ep_id of this ShowTrackedResourceDetailResponse. + :type ep_id: str + """ + self._ep_id = ep_id + + @property + def ep_name(self): + """Gets the ep_name of this ShowTrackedResourceDetailResponse. + + 企业项目名称 + + :return: The ep_name of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._ep_name + + @ep_name.setter + def ep_name(self, ep_name): + """Sets the ep_name of this ShowTrackedResourceDetailResponse. + + 企业项目名称 + + :param ep_name: The ep_name of this ShowTrackedResourceDetailResponse. + :type ep_name: str + """ + self._ep_name = ep_name + + @property + def checksum(self): + """Gets the checksum of this ShowTrackedResourceDetailResponse. + + 资源详情校验码 + + :return: The checksum of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._checksum + + @checksum.setter + def checksum(self, checksum): + """Sets the checksum of this ShowTrackedResourceDetailResponse. + + 资源详情校验码 + + :param checksum: The checksum of this ShowTrackedResourceDetailResponse. + :type checksum: str + """ + self._checksum = checksum + + @property + def created(self): + """Gets the created of this ShowTrackedResourceDetailResponse. + + 资源创建时间 + + :return: The created of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """Sets the created of this ShowTrackedResourceDetailResponse. + + 资源创建时间 + + :param created: The created of this ShowTrackedResourceDetailResponse. + :type created: str + """ + self._created = created + + @property + def updated(self): + """Gets the updated of this ShowTrackedResourceDetailResponse. + + 资源更新时间 + + :return: The updated of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._updated + + @updated.setter + def updated(self, updated): + """Sets the updated of this ShowTrackedResourceDetailResponse. + + 资源更新时间 + + :param updated: The updated of this ShowTrackedResourceDetailResponse. + :type updated: str + """ + self._updated = updated + + @property + def provisioning_state(self): + """Gets the provisioning_state of this ShowTrackedResourceDetailResponse. + + 资源操作状态 + + :return: The provisioning_state of this ShowTrackedResourceDetailResponse. + :rtype: str + """ + return self._provisioning_state + + @provisioning_state.setter + def provisioning_state(self, provisioning_state): + """Sets the provisioning_state of this ShowTrackedResourceDetailResponse. + + 资源操作状态 + + :param provisioning_state: The provisioning_state of this ShowTrackedResourceDetailResponse. + :type provisioning_state: str + """ + self._provisioning_state = provisioning_state + + @property + def tags(self): + """Gets the tags of this ShowTrackedResourceDetailResponse. + + 资源Tag + + :return: The tags of this ShowTrackedResourceDetailResponse. + :rtype: dict(str, str) + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ShowTrackedResourceDetailResponse. + + 资源Tag + + :param tags: The tags of this ShowTrackedResourceDetailResponse. + :type tags: dict(str, str) + """ + self._tags = tags + + @property + def properties(self): + """Gets the properties of this ShowTrackedResourceDetailResponse. + + 资源详细属性 + + :return: The properties of this ShowTrackedResourceDetailResponse. + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ShowTrackedResourceDetailResponse. + + 资源详细属性 + + :param properties: The properties of this ShowTrackedResourceDetailResponse. + :type properties: dict(str, object) + """ + self._properties = properties + + 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, ShowTrackedResourceDetailResponse): + 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-config/huaweicloudsdkconfig/v1/model/template_parameter_definition.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/template_parameter_definition.py index 9ee19fe07f..637035de3a 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/template_parameter_definition.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/template_parameter_definition.py @@ -43,7 +43,7 @@ def __init__(self, name=None, description=None, default_value=None, allowed_valu :type description: str :param default_value: 预定义合规包模板参数默认值。 :type default_value: object - :param allowed_values: 预定义合规包模板参数允许值列表 + :param allowed_values: 预定义合规包模板参数允许值列表。 :type allowed_values: list[object] :param type: 预定义合规包模板参数类型。 :type type: str @@ -139,7 +139,7 @@ def default_value(self, default_value): def allowed_values(self): """Gets the allowed_values of this TemplateParameterDefinition. - 预定义合规包模板参数允许值列表 + 预定义合规包模板参数允许值列表。 :return: The allowed_values of this TemplateParameterDefinition. :rtype: list[object] @@ -150,7 +150,7 @@ def allowed_values(self): def allowed_values(self, allowed_values): """Sets the allowed_values of this TemplateParameterDefinition. - 预定义合规包模板参数允许值列表 + 预定义合规包模板参数允许值列表。 :param allowed_values: The allowed_values of this TemplateParameterDefinition. :type allowed_values: list[object] diff --git a/huaweicloud-sdk-config/requirements.txt b/huaweicloud-sdk-config/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-config/requirements.txt +++ b/huaweicloud-sdk-config/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-config/setup.py b/huaweicloud-sdk-config/setup.py index 05a77835d4..16b0926319 100644 --- a/huaweicloud-sdk-config/setup.py +++ b/huaweicloud-sdk-config/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkconfig" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index b4cb20ae58..ee420cf616 100644 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.1.71" +VERSION = "3.1.72" 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 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index d61f6de78e..4ebf60d250 100644 --- a/huaweicloud-sdk-cph/setup.py +++ b/huaweicloud-sdk-cph/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcph" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index 2792288018..4d74e94dac 100644 --- a/huaweicloud-sdk-cpts/setup.py +++ b/huaweicloud-sdk-cpts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcpts" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cse/huaweicloudsdkcse/v1/model/entrypoint_item.py b/huaweicloud-sdk-cse/huaweicloudsdkcse/v1/model/entrypoint_item.py index 0f3989bd8a..3214540f3a 100644 --- a/huaweicloud-sdk-cse/huaweicloudsdkcse/v1/model/entrypoint_item.py +++ b/huaweicloud-sdk-cse/huaweicloudsdkcse/v1/model/entrypoint_item.py @@ -27,7 +27,7 @@ class EntrypointItem: attribute_map = { 'master_entrypoint': 'masterEntrypoint', 'master_entrypoint_ipv6': 'masterEntrypointIpv6', - 'slave_entrypoint': 'slave_entrypoint', + 'slave_entrypoint': 'slaveEntrypoint', 'slave_entrypoint_ipv6': 'slaveEntrypointIpv6', 'type': 'type' } diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index 84ce9a282c..0f02399543 100644 --- a/huaweicloud-sdk-cse/setup.py +++ b/huaweicloud-sdk-cse/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcse" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index 388d94256f..b23763b331 100644 --- a/huaweicloud-sdk-csms/setup.py +++ b/huaweicloud-sdk-csms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcsms" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index 08d63ff3e8..8e23db83bb 100644 --- a/huaweicloud-sdk-css/setup.py +++ b/huaweicloud-sdk-css/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcss" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index 323cedd15b..3523da7671 100644 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index 0791f497d6..d8d15ded80 100644 --- a/huaweicloud-sdk-das/setup.py +++ b/huaweicloud-sdk-das/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdas" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsstudio/requirements.txt b/huaweicloud-sdk-dataartsstudio/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dataartsstudio/requirements.txt +++ b/huaweicloud-sdk-dataartsstudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsstudio/setup.py b/huaweicloud-sdk-dataartsstudio/setup.py index fe13dd00c1..c31bc69c30 100644 --- a/huaweicloud-sdk-dataartsstudio/setup.py +++ b/huaweicloud-sdk-dataartsstudio/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdataartsstudio" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index ec88003963..6dd69526d6 100644 --- a/huaweicloud-sdk-dbss/setup.py +++ b/huaweicloud-sdk-dbss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdbss" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index 08c02544b7..a1d04137d7 100644 --- a/huaweicloud-sdk-dc/setup.py +++ b/huaweicloud-sdk-dc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdc" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index 299598b82d..0787ef1431 100644 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index cd7025dd30..111b59e554 100644 --- a/huaweicloud-sdk-ddm/setup.py +++ b/huaweicloud-sdk-ddm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkddm" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py index 68ef739ff5..36e8515e82 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py @@ -47,6 +47,12 @@ class DdsRegion: "https://dds.la-south-2.myhuaweicloud.com") CN_NORTH_9 = Region("cn-north-9", "https://dds.cn-north-9.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://dds.me-east-1.myhuaweicloud.com") + TR_WEST_1 = Region("tr-west-1", + "https://dds.tr-west-1.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://dds.ap-southeast-4.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -68,6 +74,9 @@ class DdsRegion: "sa-brazil-1": SA_BRAZIL_1, "la-south-2": LA_SOUTH_2, "cn-north-9": CN_NORTH_9, + "me-east-1": ME_EAST_1, + "tr-west-1": TR_WEST_1, + "ap-southeast-4": AP_SOUTHEAST_4, } @classmethod diff --git a/huaweicloud-sdk-dds/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 728d00cbbe..bd847ce6ff 100644 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index cbd87846a2..cedac29f97 100644 --- a/huaweicloud-sdk-deh/setup.py +++ b/huaweicloud-sdk-deh/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdeh" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devsecurity/requirements.txt b/huaweicloud-sdk-devsecurity/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-devsecurity/requirements.txt +++ b/huaweicloud-sdk-devsecurity/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-devsecurity/setup.py b/huaweicloud-sdk-devsecurity/setup.py index 34cf8dae19..1625a4d5e6 100644 --- a/huaweicloud-sdk-devsecurity/setup.py +++ b/huaweicloud-sdk-devsecurity/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdevsecurity" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index f3ac16e6b6..07bb09451d 100644 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index f55e5f4ba2..8a0bba087e 100644 --- a/huaweicloud-sdk-dgc/setup.py +++ b/huaweicloud-sdk-dgc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdgc" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dis/requirements.txt b/huaweicloud-sdk-dis/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dis/requirements.txt +++ b/huaweicloud-sdk-dis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dis/setup.py b/huaweicloud-sdk-dis/setup.py index b57cf66517..19a164caa3 100644 --- a/huaweicloud-sdk-dis/setup.py +++ b/huaweicloud-sdk-dis/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdis" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index a2985045a9..fb6cd80569 100644 --- a/huaweicloud-sdk-dlf/setup.py +++ b/huaweicloud-sdk-dlf/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdlf" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/__init__.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/__init__.py index a484a9a4e7..e6a534161e 100644 --- a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/__init__.py +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/__init__.py @@ -93,6 +93,9 @@ from huaweicloudsdkdli.v1.model.create_queue_request import CreateQueueRequest from huaweicloudsdkdli.v1.model.create_queue_response import CreateQueueResponse from huaweicloudsdkdli.v1.model.create_route_request_body import CreateRouteRequestBody +from huaweicloudsdkdli.v1.model.create_route_to_enhanced_connection_request import CreateRouteToEnhancedConnectionRequest +from huaweicloudsdkdli.v1.model.create_route_to_enhanced_connection_request_body import CreateRouteToEnhancedConnectionRequestBody +from huaweicloudsdkdli.v1.model.create_route_to_enhanced_connection_response import CreateRouteToEnhancedConnectionResponse from huaweicloudsdkdli.v1.model.create_session_req_group import CreateSessionReqGroup from huaweicloudsdkdli.v1.model.create_session_req_resource import CreateSessionReqResource from huaweicloudsdkdli.v1.model.create_spark_job_request import CreateSparkJobRequest @@ -139,6 +142,8 @@ from huaweicloudsdkdli.v1.model.delete_queue_response import DeleteQueueResponse from huaweicloudsdkdli.v1.model.delete_resource_request import DeleteResourceRequest from huaweicloudsdkdli.v1.model.delete_resource_response import DeleteResourceResponse +from huaweicloudsdkdli.v1.model.delete_route_from_enhanced_connection_request import DeleteRouteFromEnhancedConnectionRequest +from huaweicloudsdkdli.v1.model.delete_route_from_enhanced_connection_response import DeleteRouteFromEnhancedConnectionResponse from huaweicloudsdkdli.v1.model.delete_sql_templates_request_body import DeleteSqlTemplatesRequestBody from huaweicloudsdkdli.v1.model.delete_table_request import DeleteTableRequest from huaweicloudsdkdli.v1.model.delete_table_response import DeleteTableResponse diff --git a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/dli_async_client.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/dli_async_client.py index 5d9f5867cf..df98318eae 100644 --- a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/dli_async_client.py +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/dli_async_client.py @@ -32,31 +32,31 @@ def new_builder(cls, clazz=None): return client_builder - def batch_delete_sql_job_templates_async(self, request): - """批量删除SQL模板 + def associate_queue_to_elastic_resource_pool_async(self, request): + """关联队列到弹性资源池 - 该API用于批量删除SQL模板。 + 关联队列到弹性资源池 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchDeleteSqlJobTemplates - :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteSqlJobTemplatesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteSqlJobTemplatesResponse` + :param request: Request instance for AssociateQueueToElasticResourcePool + :type request: :class:`huaweicloudsdkdli.v1.AssociateQueueToElasticResourcePoolRequest` + :rtype: :class:`huaweicloudsdkdli.v1.AssociateQueueToElasticResourcePoolResponse` """ - http_info = self._batch_delete_sql_job_templates_http_info(request) + http_info = self._associate_queue_to_elastic_resource_pool_http_info(request) return self._call_api(**http_info) - def batch_delete_sql_job_templates_async_invoker(self, request): - http_info = self._batch_delete_sql_job_templates_http_info(request) + def associate_queue_to_elastic_resource_pool_async_invoker(self, request): + http_info = self._associate_queue_to_elastic_resource_pool_http_info(request) return AsyncInvoker(self, http_info) - def _batch_delete_sql_job_templates_http_info(self, request): + def _associate_queue_to_elastic_resource_pool_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/sqls-deletion", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues", "request_type": request.__class__.__name__, - "response_type": "BatchDeleteSqlJobTemplatesResponse" + "response_type": "AssociateQueueToElasticResourcePoolResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -66,6 +66,8 @@ def _batch_delete_sql_job_templates_http_info(self, request): collection_formats = {} path_params = {} + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] @@ -97,31 +99,31 @@ def _batch_delete_sql_job_templates_http_info(self, request): return http_info - def create_spark_job_template_async(self, request): - """创建作业模板 + def associate_queue_to_enhanced_connection_async(self, request): + """绑定队列 - 该API用于创建作业模板。 + 该API用于在已创建的增强型跨源中绑定队列。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateSparkJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.CreateSparkJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateSparkJobTemplateResponse` + :param request: Request instance for AssociateQueueToEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.AssociateQueueToEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.AssociateQueueToEnhancedConnectionResponse` """ - http_info = self._create_spark_job_template_http_info(request) + http_info = self._associate_queue_to_enhanced_connection_http_info(request) return self._call_api(**http_info) - def create_spark_job_template_async_invoker(self, request): - http_info = self._create_spark_job_template_http_info(request) + def associate_queue_to_enhanced_connection_async_invoker(self, request): + http_info = self._associate_queue_to_enhanced_connection_http_info(request) return AsyncInvoker(self, http_info) - def _create_spark_job_template_http_info(self, request): + def _associate_queue_to_enhanced_connection_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v3/{project_id}/templates", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/associate-queue", "request_type": request.__class__.__name__, - "response_type": "CreateSparkJobTemplateResponse" + "response_type": "AssociateQueueToEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -131,6 +133,8 @@ def _create_spark_job_template_http_info(self, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -162,31 +166,33 @@ def _create_spark_job_template_http_info(self, request): return http_info - def create_sql_job_template_async(self, request): - """存储指定SQL语句 + def batch_delete_queue_plans_async(self, request): + """批量删除队列定时扩缩容计划 - 该API用于存储指定的SQL语句,后续可以重复使用。 + 该API用于批量删除队列定时扩缩容计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateSqlJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.CreateSqlJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateSqlJobTemplateResponse` + :param request: Request instance for BatchDeleteQueuePlans + :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteQueuePlansRequest` + :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteQueuePlansResponse` """ - http_info = self._create_sql_job_template_http_info(request) + warnings.warn("Method 'batch_delete_queue_plans_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._batch_delete_queue_plans_http_info(request) return self._call_api(**http_info) - def create_sql_job_template_async_invoker(self, request): - http_info = self._create_sql_job_template_http_info(request) + def batch_delete_queue_plans_async_invoker(self, request): + warnings.warn("Method 'batch_delete_queue_plans_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._batch_delete_queue_plans_http_info(request) return AsyncInvoker(self, http_info) - def _create_sql_job_template_http_info(self, request): + def _batch_delete_queue_plans_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/sqls", + "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/batch-delete", "request_type": request.__class__.__name__, - "response_type": "CreateSqlJobTemplateResponse" + "response_type": "BatchDeleteQueuePlansResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -196,6 +202,8 @@ def _create_sql_job_template_http_info(self, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -227,31 +235,35 @@ def _create_sql_job_template_http_info(self, request): return http_info - def list_spark_job_templates_async(self, request): - """查询作业模板列表 + def change_authorization_async(self, request): + """数据赋权(用户) - 该API用于查询作业模板列表。 + 该API用于将数据库或数据表的数据权限赋给指定的其他用户。 + 说明: + 被赋权用户所在用户组的所属区域需具有Tenant Guest权限。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListSparkJobTemplates - :type request: :class:`huaweicloudsdkdli.v1.ListSparkJobTemplatesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListSparkJobTemplatesResponse` + :param request: Request instance for ChangeAuthorization + :type request: :class:`huaweicloudsdkdli.v1.ChangeAuthorizationRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ChangeAuthorizationResponse` """ - http_info = self._list_spark_job_templates_http_info(request) + warnings.warn("Method 'change_authorization_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_authorization_http_info(request) return self._call_api(**http_info) - def list_spark_job_templates_async_invoker(self, request): - http_info = self._list_spark_job_templates_http_info(request) + def change_authorization_async_invoker(self, request): + warnings.warn("Method 'change_authorization_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_authorization_http_info(request) return AsyncInvoker(self, http_info) - def _list_spark_job_templates_http_info(self, request): + def _change_authorization_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/templates", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/user-authorization", "request_type": request.__class__.__name__, - "response_type": "ListSparkJobTemplatesResponse" + "response_type": "ChangeAuthorizationResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -263,20 +275,14 @@ def _list_spark_job_templates_http_info(self, request): path_params = {} query_params = [] - if 'type' in local_var_params: - query_params.append(('type', local_var_params['type'])) - if 'keyword' in local_var_params: - query_params.append(('keyword', local_var_params['keyword'])) - if 'page_size' in local_var_params: - query_params.append(('page-size', local_var_params['page_size'])) - if 'current_page' in local_var_params: - query_params.append(('current-page', local_var_params['current_page'])) 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() @@ -298,31 +304,33 @@ def _list_spark_job_templates_http_info(self, request): return http_info - def list_sql_job_templates_async(self, request): - """查看所有SQL模板 + def change_queue_plan_async(self, request): + """修改队列定时扩缩容计划 - 该API用查看用户保存的所有SQL模板。 + 该API用于修改指定ID的队列定时扩缩容计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListSqlJobTemplates - :type request: :class:`huaweicloudsdkdli.v1.ListSqlJobTemplatesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListSqlJobTemplatesResponse` + :param request: Request instance for ChangeQueuePlan + :type request: :class:`huaweicloudsdkdli.v1.ChangeQueuePlanRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ChangeQueuePlanResponse` """ - http_info = self._list_sql_job_templates_http_info(request) + warnings.warn("Method 'change_queue_plan_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_queue_plan_http_info(request) return self._call_api(**http_info) - def list_sql_job_templates_async_invoker(self, request): - http_info = self._list_sql_job_templates_http_info(request) + def change_queue_plan_async_invoker(self, request): + warnings.warn("Method 'change_queue_plan_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_queue_plan_http_info(request) return AsyncInvoker(self, http_info) - def _list_sql_job_templates_http_info(self, request): + def _change_queue_plan_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/sqls", + "method": "PUT", + "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/{plan_id}", "request_type": request.__class__.__name__, - "response_type": "ListSqlJobTemplatesResponse" + "response_type": "ChangeQueuePlanResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -332,16 +340,20 @@ def _list_sql_job_templates_http_info(self, request): collection_formats = {} path_params = {} + if 'plan_id' in local_var_params: + path_params['plan_id'] = local_var_params['plan_id'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] - if 'keyword' in local_var_params: - query_params.append(('keyword', local_var_params['keyword'])) 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() @@ -363,31 +375,33 @@ def _list_sql_job_templates_http_info(self, request): return http_info - def show_spark_job_template_async(self, request): - """获取作业模板 + def create_auth_info_async(self, request): + """创建跨源认证 - 该API用于获取作业模板。 + 该API用于创建跨源认证。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowSparkJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.ShowSparkJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowSparkJobTemplateResponse` + :param request: Request instance for CreateAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.CreateAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateAuthInfoResponse` """ - http_info = self._show_spark_job_template_http_info(request) + warnings.warn("Method 'create_auth_info_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_auth_info_http_info(request) return self._call_api(**http_info) - def show_spark_job_template_async_invoker(self, request): - http_info = self._show_spark_job_template_http_info(request) + def create_auth_info_async_invoker(self, request): + warnings.warn("Method 'create_auth_info_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_auth_info_http_info(request) return AsyncInvoker(self, http_info) - def _show_spark_job_template_http_info(self, request): + def _create_auth_info_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/templates/{template_id}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "ShowSparkJobTemplateResponse" + "response_type": "CreateAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -397,8 +411,6 @@ def _show_spark_job_template_http_info(self, request): collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['template_id'] = local_var_params['template_id'] query_params = [] @@ -407,6 +419,8 @@ def _show_spark_job_template_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -428,33 +442,31 @@ def _show_spark_job_template_http_info(self, request): return http_info - def show_sql_sample_templates_async(self, request): - """查询所有SQL样例模板 + def create_connectivity_task_async(self, request): + """创建地址连通性请求 - 该API用于查询所有SQL样例模板。 + 创建地址连通性请求API接口,往指定集群发送地址连通性测试请求,并将测试地址插入表内 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowSqlSampleTemplates - :type request: :class:`huaweicloudsdkdli.v1.ShowSqlSampleTemplatesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlSampleTemplatesResponse` + :param request: Request instance for CreateConnectivityTask + :type request: :class:`huaweicloudsdkdli.v1.CreateConnectivityTaskRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateConnectivityTaskResponse` """ - warnings.warn("Method 'show_sql_sample_templates_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_sql_sample_templates_http_info(request) + http_info = self._create_connectivity_task_http_info(request) return self._call_api(**http_info) - def show_sql_sample_templates_async_invoker(self, request): - warnings.warn("Method 'show_sql_sample_templates_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_sql_sample_templates_http_info(request) + def create_connectivity_task_async_invoker(self, request): + http_info = self._create_connectivity_task_http_info(request) return AsyncInvoker(self, http_info) - def _show_sql_sample_templates_http_info(self, request): + def _create_connectivity_task_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/sqls/sample", + "method": "POST", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}/connection-test", "request_type": request.__class__.__name__, - "response_type": "ShowSqlSampleTemplatesResponse" + "response_type": "CreateConnectivityTaskResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -464,6 +476,8 @@ def _show_sql_sample_templates_http_info(self, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -472,6 +486,8 @@ def _show_sql_sample_templates_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -493,31 +509,36 @@ def _show_sql_sample_templates_http_info(self, request): return http_info - def update_spark_job_template_async(self, request): - """修改作业模板 + def create_datasource_connection_async(self, request): + """创建经典型跨源连接 - 该API用于修改作业模板。 + 该API用于创建与其他服务的经典型跨源连接。 + 说明: + 如果需要了解Console界面的使用方法,可参考经典型跨源连接。 + 系统default队列不支持创建跨源连接。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateSparkJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.UpdateSparkJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateSparkJobTemplateResponse` + :param request: Request instance for CreateDatasourceConnection + :type request: :class:`huaweicloudsdkdli.v1.CreateDatasourceConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateDatasourceConnectionResponse` """ - http_info = self._update_spark_job_template_http_info(request) + warnings.warn("Method 'create_datasource_connection_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_datasource_connection_http_info(request) return self._call_api(**http_info) - def update_spark_job_template_async_invoker(self, request): - http_info = self._update_spark_job_template_http_info(request) + def create_datasource_connection_async_invoker(self, request): + warnings.warn("Method 'create_datasource_connection_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_datasource_connection_http_info(request) return AsyncInvoker(self, http_info) - def _update_spark_job_template_http_info(self, request): + def _create_datasource_connection_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/templates/{template_id}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/datasource-connection", "request_type": request.__class__.__name__, - "response_type": "UpdateSparkJobTemplateResponse" + "response_type": "CreateDatasourceConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -527,8 +548,6 @@ def _update_spark_job_template_http_info(self, request): collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['template_id'] = local_var_params['template_id'] query_params = [] @@ -560,31 +579,33 @@ def _update_spark_job_template_http_info(self, request): return http_info - def update_sql_job_template_async(self, request): - """更新SQL模板 - - 该API用于更新SQL模板。 + def create_dli_agency_async(self, request): + """创建DLI委托 + + 创建DLI委托 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateSqlJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.UpdateSqlJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateSqlJobTemplateResponse` + :param request: Request instance for CreateDliAgency + :type request: :class:`huaweicloudsdkdli.v1.CreateDliAgencyRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateDliAgencyResponse` """ - http_info = self._update_sql_job_template_http_info(request) + warnings.warn("Method 'create_dli_agency_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_dli_agency_http_info(request) return self._call_api(**http_info) - def update_sql_job_template_async_invoker(self, request): - http_info = self._update_sql_job_template_http_info(request) + def create_dli_agency_async_invoker(self, request): + warnings.warn("Method 'create_dli_agency_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_dli_agency_http_info(request) return AsyncInvoker(self, http_info) - def _update_sql_job_template_http_info(self, request): + def _create_dli_agency_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/sqls/{sql_id}", + "method": "POST", + "resource_path": "/v2/{project_id}/agency", "request_type": request.__class__.__name__, - "response_type": "UpdateSqlJobTemplateResponse" + "response_type": "CreateDliAgencyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -594,8 +615,6 @@ def _update_sql_job_template_http_info(self, request): collection_formats = {} path_params = {} - if 'sql_id' in local_var_params: - path_params['sql_id'] = local_var_params['sql_id'] query_params = [] @@ -627,31 +646,31 @@ def _update_sql_job_template_http_info(self, request): return http_info - def associate_queue_to_elastic_resource_pool_async(self, request): - """关联队列到弹性资源池 + def create_elastic_resource_pool_async(self, request): + """创建弹性资源池 - 关联队列到弹性资源池 + 创建弹性资源池 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for AssociateQueueToElasticResourcePool - :type request: :class:`huaweicloudsdkdli.v1.AssociateQueueToElasticResourcePoolRequest` - :rtype: :class:`huaweicloudsdkdli.v1.AssociateQueueToElasticResourcePoolResponse` + :param request: Request instance for CreateElasticResourcePool + :type request: :class:`huaweicloudsdkdli.v1.CreateElasticResourcePoolRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateElasticResourcePoolResponse` """ - http_info = self._associate_queue_to_elastic_resource_pool_http_info(request) + http_info = self._create_elastic_resource_pool_http_info(request) return self._call_api(**http_info) - def associate_queue_to_elastic_resource_pool_async_invoker(self, request): - http_info = self._associate_queue_to_elastic_resource_pool_http_info(request) + def create_elastic_resource_pool_async_invoker(self, request): + http_info = self._create_elastic_resource_pool_http_info(request) return AsyncInvoker(self, http_info) - def _associate_queue_to_elastic_resource_pool_http_info(self, request): + def _create_elastic_resource_pool_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues", + "resource_path": "/v3/{project_id}/elastic-resource-pools", "request_type": request.__class__.__name__, - "response_type": "AssociateQueueToElasticResourcePoolResponse" + "response_type": "CreateElasticResourcePoolResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -661,8 +680,6 @@ def _associate_queue_to_elastic_resource_pool_http_info(self, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] @@ -694,31 +711,31 @@ def _associate_queue_to_elastic_resource_pool_http_info(self, request): return http_info - def associate_queue_to_enhanced_connection_async(self, request): - """绑定队列 + def create_enhanced_connection_async(self, request): + """创建增强型跨源连接 - 该API用于在已创建的增强型跨源中绑定队列。 + 该API用于创建与其他服务的增强型跨源连接。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for AssociateQueueToEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.AssociateQueueToEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.AssociateQueueToEnhancedConnectionResponse` + :param request: Request instance for CreateEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionResponse` """ - http_info = self._associate_queue_to_enhanced_connection_http_info(request) + http_info = self._create_enhanced_connection_http_info(request) return self._call_api(**http_info) - def associate_queue_to_enhanced_connection_async_invoker(self, request): - http_info = self._associate_queue_to_enhanced_connection_http_info(request) + def create_enhanced_connection_async_invoker(self, request): + http_info = self._create_enhanced_connection_http_info(request) return AsyncInvoker(self, http_info) - def _associate_queue_to_enhanced_connection_http_info(self, request): + def _create_enhanced_connection_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/associate-queue", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections", "request_type": request.__class__.__name__, - "response_type": "AssociateQueueToEnhancedConnectionResponse" + "response_type": "CreateEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -728,8 +745,6 @@ def _associate_queue_to_enhanced_connection_http_info(self, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -761,33 +776,33 @@ def _associate_queue_to_enhanced_connection_http_info(self, request): return http_info - def batch_delete_queue_plans_async(self, request): - """批量删除队列定时扩缩容计划 + def create_enhanced_connection_routes_async(self, request): + """创建路由 - 该API用于批量删除队列定时扩缩容计划。 + 该API用于创建跨源需要的路由。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchDeleteQueuePlans - :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteQueuePlansRequest` - :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteQueuePlansResponse` + :param request: Request instance for CreateEnhancedConnectionRoutes + :type request: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRoutesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRoutesResponse` """ - warnings.warn("Method 'batch_delete_queue_plans_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._batch_delete_queue_plans_http_info(request) + warnings.warn("Method 'create_enhanced_connection_routes_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_enhanced_connection_routes_http_info(request) return self._call_api(**http_info) - def batch_delete_queue_plans_async_invoker(self, request): - warnings.warn("Method 'batch_delete_queue_plans_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._batch_delete_queue_plans_http_info(request) + def create_enhanced_connection_routes_async_invoker(self, request): + warnings.warn("Method 'create_enhanced_connection_routes_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_enhanced_connection_routes_http_info(request) return AsyncInvoker(self, http_info) - def _batch_delete_queue_plans_http_info(self, request): + def _create_enhanced_connection_routes_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/batch-delete", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/routes", "request_type": request.__class__.__name__, - "response_type": "BatchDeleteQueuePlansResponse" + "response_type": "CreateEnhancedConnectionRoutesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -797,8 +812,8 @@ def _batch_delete_queue_plans_http_info(self, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -830,35 +845,31 @@ def _batch_delete_queue_plans_http_info(self, request): return http_info - def change_authorization_async(self, request): - """数据赋权(用户) + def create_global_variable_async(self, request): + """创建DLI全局变量 - 该API用于将数据库或数据表的数据权限赋给指定的其他用户。 - 说明: - 被赋权用户所在用户组的所属区域需具有Tenant Guest权限。 + 创建全局变量。全局变量用于替换SQL作业中的敏感数据。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ChangeAuthorization - :type request: :class:`huaweicloudsdkdli.v1.ChangeAuthorizationRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ChangeAuthorizationResponse` + :param request: Request instance for CreateGlobalVariable + :type request: :class:`huaweicloudsdkdli.v1.CreateGlobalVariableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateGlobalVariableResponse` """ - warnings.warn("Method 'change_authorization_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_authorization_http_info(request) + http_info = self._create_global_variable_http_info(request) return self._call_api(**http_info) - def change_authorization_async_invoker(self, request): - warnings.warn("Method 'change_authorization_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_authorization_http_info(request) + def create_global_variable_async_invoker(self, request): + http_info = self._create_global_variable_http_info(request) return AsyncInvoker(self, http_info) - def _change_authorization_http_info(self, request): + def _create_global_variable_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/user-authorization", + "method": "POST", + "resource_path": "/v1.0/{project_id}/variables", "request_type": request.__class__.__name__, - "response_type": "ChangeAuthorizationResponse" + "response_type": "CreateGlobalVariableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -899,33 +910,31 @@ def _change_authorization_http_info(self, request): return http_info - def change_queue_plan_async(self, request): - """修改队列定时扩缩容计划 + def create_job_auth_info_async(self, request): + """创建跨源认证 - 该API用于修改指定ID的队列定时扩缩容计划。 + 该API用于创建跨源认证。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ChangeQueuePlan - :type request: :class:`huaweicloudsdkdli.v1.ChangeQueuePlanRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ChangeQueuePlanResponse` + :param request: Request instance for CreateJobAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.CreateJobAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateJobAuthInfoResponse` """ - warnings.warn("Method 'change_queue_plan_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_queue_plan_http_info(request) + http_info = self._create_job_auth_info_http_info(request) return self._call_api(**http_info) - def change_queue_plan_async_invoker(self, request): - warnings.warn("Method 'change_queue_plan_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_queue_plan_http_info(request) + def create_job_auth_info_async_invoker(self, request): + http_info = self._create_job_auth_info_http_info(request) return AsyncInvoker(self, http_info) - def _change_queue_plan_http_info(self, request): + def _create_job_auth_info_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/{plan_id}", + "method": "POST", + "resource_path": "/v3/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "ChangeQueuePlanResponse" + "response_type": "CreateJobAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -935,10 +944,6 @@ def _change_queue_plan_http_info(self, request): collection_formats = {} path_params = {} - if 'plan_id' in local_var_params: - path_params['plan_id'] = local_var_params['plan_id'] - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -970,33 +975,31 @@ def _change_queue_plan_http_info(self, request): return http_info - def create_auth_info_async(self, request): - """创建跨源认证 + def create_queue_async(self, request): + """创建队列 - 该API用于创建跨源认证。 + 该API用于创建队列,该队列将会绑定用户指定的计算资源。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.CreateAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateAuthInfoResponse` + :param request: Request instance for CreateQueue + :type request: :class:`huaweicloudsdkdli.v1.CreateQueueRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateQueueResponse` """ - warnings.warn("Method 'create_auth_info_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_auth_info_http_info(request) + http_info = self._create_queue_http_info(request) return self._call_api(**http_info) - def create_auth_info_async_invoker(self, request): - warnings.warn("Method 'create_auth_info_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_auth_info_http_info(request) + def create_queue_async_invoker(self, request): + http_info = self._create_queue_http_info(request) return AsyncInvoker(self, http_info) - def _create_auth_info_http_info(self, request): + def _create_queue_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource/auth-infos", + "resource_path": "/v1.0/{project_id}/queues", "request_type": request.__class__.__name__, - "response_type": "CreateAuthInfoResponse" + "response_type": "CreateQueueResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1037,31 +1040,33 @@ def _create_auth_info_http_info(self, request): return http_info - def create_connectivity_task_async(self, request): - """创建地址连通性请求 + def create_queue_plan_async(self, request): + """创建队列定时扩缩容计划 - 创建地址连通性请求API接口,往指定集群发送地址连通性测试请求,并将测试地址插入表内 + 创建队列定时扩缩容计划接口,对指定的队列创建定时规格变更计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateConnectivityTask - :type request: :class:`huaweicloudsdkdli.v1.CreateConnectivityTaskRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateConnectivityTaskResponse` + :param request: Request instance for CreateQueuePlan + :type request: :class:`huaweicloudsdkdli.v1.CreateQueuePlanRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateQueuePlanResponse` """ - http_info = self._create_connectivity_task_http_info(request) + warnings.warn("Method 'create_queue_plan_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_queue_plan_http_info(request) return self._call_api(**http_info) - def create_connectivity_task_async_invoker(self, request): - http_info = self._create_connectivity_task_http_info(request) + def create_queue_plan_async_invoker(self, request): + warnings.warn("Method 'create_queue_plan_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_queue_plan_http_info(request) return AsyncInvoker(self, http_info) - def _create_connectivity_task_http_info(self, request): + def _create_queue_plan_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}/connection-test", + "resource_path": "/v1/{project_id}/queues/{queue_name}/plans", "request_type": request.__class__.__name__, - "response_type": "CreateConnectivityTaskResponse" + "response_type": "CreateQueuePlanResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1104,36 +1109,31 @@ def _create_connectivity_task_http_info(self, request): return http_info - def create_datasource_connection_async(self, request): - """创建经典型跨源连接 + def create_queue_property_async(self, request): + """新增队列属性 - 该API用于创建与其他服务的经典型跨源连接。 - 说明: - 如果需要了解Console界面的使用方法,可参考经典型跨源连接。 - 系统default队列不支持创建跨源连接。 + 该接口用于增加队列属性, 一次可增加多个属性。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateDatasourceConnection - :type request: :class:`huaweicloudsdkdli.v1.CreateDatasourceConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateDatasourceConnectionResponse` + :param request: Request instance for CreateQueueProperty + :type request: :class:`huaweicloudsdkdli.v1.CreateQueuePropertyRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateQueuePropertyResponse` """ - warnings.warn("Method 'create_datasource_connection_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_datasource_connection_http_info(request) + http_info = self._create_queue_property_http_info(request) return self._call_api(**http_info) - def create_datasource_connection_async_invoker(self, request): - warnings.warn("Method 'create_datasource_connection_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_datasource_connection_http_info(request) + def create_queue_property_async_invoker(self, request): + http_info = self._create_queue_property_http_info(request) return AsyncInvoker(self, http_info) - def _create_datasource_connection_http_info(self, request): + def _create_queue_property_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource-connection", + "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", "request_type": request.__class__.__name__, - "response_type": "CreateDatasourceConnectionResponse" + "response_type": "CreateQueuePropertyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1143,6 +1143,8 @@ def _create_datasource_connection_http_info(self, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -1174,33 +1176,31 @@ def _create_datasource_connection_http_info(self, request): return http_info - def create_dli_agency_async(self, request): - """创建DLI委托 + def create_route_to_enhanced_connection_async(self, request): + """创建路由 - 创建DLI委托 + 该API用于创建跨源需要的路由。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateDliAgency - :type request: :class:`huaweicloudsdkdli.v1.CreateDliAgencyRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateDliAgencyResponse` + :param request: Request instance for CreateRouteToEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.CreateRouteToEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateRouteToEnhancedConnectionResponse` """ - warnings.warn("Method 'create_dli_agency_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_dli_agency_http_info(request) + http_info = self._create_route_to_enhanced_connection_http_info(request) return self._call_api(**http_info) - def create_dli_agency_async_invoker(self, request): - warnings.warn("Method 'create_dli_agency_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_dli_agency_http_info(request) + def create_route_to_enhanced_connection_async_invoker(self, request): + http_info = self._create_route_to_enhanced_connection_http_info(request) return AsyncInvoker(self, http_info) - def _create_dli_agency_http_info(self, request): + def _create_route_to_enhanced_connection_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v2/{project_id}/agency", + "resource_path": "/v3/{project_id}/datasource/enhanced-connections/{connection_id}/routes", "request_type": request.__class__.__name__, - "response_type": "CreateDliAgencyResponse" + "response_type": "CreateRouteToEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1210,6 +1210,8 @@ def _create_dli_agency_http_info(self, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -1241,31 +1243,33 @@ def _create_dli_agency_http_info(self, request): return http_info - def create_elastic_resource_pool_async(self, request): - """创建弹性资源池 + def delete_auth_info_async(self, request): + """删除跨源认证 - 创建弹性资源池 + 该API用于删除跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateElasticResourcePool - :type request: :class:`huaweicloudsdkdli.v1.CreateElasticResourcePoolRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateElasticResourcePoolResponse` + :param request: Request instance for DeleteAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.DeleteAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteAuthInfoResponse` """ - http_info = self._create_elastic_resource_pool_http_info(request) + warnings.warn("Method 'delete_auth_info_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_auth_info_http_info(request) return self._call_api(**http_info) - def create_elastic_resource_pool_async_invoker(self, request): - http_info = self._create_elastic_resource_pool_http_info(request) + def delete_auth_info_async_invoker(self, request): + warnings.warn("Method 'delete_auth_info_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_auth_info_http_info(request) return AsyncInvoker(self, http_info) - def _create_elastic_resource_pool_http_info(self, request): + def _delete_auth_info_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/elastic-resource-pools", + "method": "DELETE", + "resource_path": "/v2.0/{project_id}/datasource/auth-infos/{auth_info_name}", "request_type": request.__class__.__name__, - "response_type": "CreateElasticResourcePoolResponse" + "response_type": "DeleteAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1275,6 +1279,8 @@ def _create_elastic_resource_pool_http_info(self, request): collection_formats = {} path_params = {} + if 'auth_info_name' in local_var_params: + path_params['auth_info_name'] = local_var_params['auth_info_name'] query_params = [] @@ -1283,8 +1289,6 @@ def _create_elastic_resource_pool_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1306,31 +1310,35 @@ def _create_elastic_resource_pool_http_info(self, request): return http_info - def create_enhanced_connection_async(self, request): - """创建增强型跨源连接 + def delete_datasource_connection_async(self, request): + """删除经典型跨源连接 - 该API用于创建与其他服务的增强型跨源连接。 + 该API用于删除已创建的经典型跨源连接。 + 说明: + 创建中的连接,无法删除。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionResponse` + :param request: Request instance for DeleteDatasourceConnection + :type request: :class:`huaweicloudsdkdli.v1.DeleteDatasourceConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteDatasourceConnectionResponse` """ - http_info = self._create_enhanced_connection_http_info(request) + warnings.warn("Method 'delete_datasource_connection_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_datasource_connection_http_info(request) return self._call_api(**http_info) - def create_enhanced_connection_async_invoker(self, request): - http_info = self._create_enhanced_connection_http_info(request) + def delete_datasource_connection_async_invoker(self, request): + warnings.warn("Method 'delete_datasource_connection_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_datasource_connection_http_info(request) return AsyncInvoker(self, http_info) - def _create_enhanced_connection_http_info(self, request): + def _delete_datasource_connection_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections", + "method": "DELETE", + "resource_path": "/v2.0/{project_id}/datasource-connection/{connection_id}", "request_type": request.__class__.__name__, - "response_type": "CreateEnhancedConnectionResponse" + "response_type": "DeleteDatasourceConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1340,6 +1348,8 @@ def _create_enhanced_connection_http_info(self, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -1348,8 +1358,6 @@ def _create_enhanced_connection_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1371,33 +1379,31 @@ def _create_enhanced_connection_http_info(self, request): return http_info - def create_enhanced_connection_routes_async(self, request): - """创建路由 + def delete_elastic_resource_pool_async(self, request): + """删除弹性资源池 - 该API用于创建跨源需要的路由。 + 删除弹性资源池 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateEnhancedConnectionRoutes - :type request: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRoutesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRoutesResponse` + :param request: Request instance for DeleteElasticResourcePool + :type request: :class:`huaweicloudsdkdli.v1.DeleteElasticResourcePoolRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteElasticResourcePoolResponse` """ - warnings.warn("Method 'create_enhanced_connection_routes_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_enhanced_connection_routes_http_info(request) + http_info = self._delete_elastic_resource_pool_http_info(request) return self._call_api(**http_info) - def create_enhanced_connection_routes_async_invoker(self, request): - warnings.warn("Method 'create_enhanced_connection_routes_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_enhanced_connection_routes_http_info(request) + def delete_elastic_resource_pool_async_invoker(self, request): + http_info = self._delete_elastic_resource_pool_http_info(request) return AsyncInvoker(self, http_info) - def _create_enhanced_connection_routes_http_info(self, request): + def _delete_elastic_resource_pool_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/routes", + "method": "DELETE", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}", "request_type": request.__class__.__name__, - "response_type": "CreateEnhancedConnectionRoutesResponse" + "response_type": "DeleteElasticResourcePoolResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1407,8 +1413,8 @@ def _create_enhanced_connection_routes_http_info(self, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] @@ -1417,8 +1423,6 @@ def _create_enhanced_connection_routes_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1440,31 +1444,31 @@ def _create_enhanced_connection_routes_http_info(self, request): return http_info - def create_global_variable_async(self, request): - """创建DLI全局变量 + def delete_enhanced_connection_async(self, request): + """删除增强型跨源连接 - 创建全局变量。全局变量用于替换SQL作业中的敏感数据。 + 该API用于删除已创建的增强型跨源连接。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateGlobalVariable - :type request: :class:`huaweicloudsdkdli.v1.CreateGlobalVariableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateGlobalVariableResponse` + :param request: Request instance for DeleteEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionResponse` """ - http_info = self._create_global_variable_http_info(request) + http_info = self._delete_enhanced_connection_http_info(request) return self._call_api(**http_info) - def create_global_variable_async_invoker(self, request): - http_info = self._create_global_variable_http_info(request) + def delete_enhanced_connection_async_invoker(self, request): + http_info = self._delete_enhanced_connection_http_info(request) return AsyncInvoker(self, http_info) - def _create_global_variable_http_info(self, request): + def _delete_enhanced_connection_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/variables", + "method": "DELETE", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", "request_type": request.__class__.__name__, - "response_type": "CreateGlobalVariableResponse" + "response_type": "DeleteEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1474,6 +1478,8 @@ def _create_global_variable_http_info(self, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -1482,8 +1488,6 @@ def _create_global_variable_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1505,31 +1509,33 @@ def _create_global_variable_http_info(self, request): return http_info - def create_job_auth_info_async(self, request): - """创建跨源认证 + def delete_enhanced_connection_routes_async(self, request): + """删除路由 - 该API用于创建跨源认证。 + 该API用于删除跨源需要的路由。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateJobAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.CreateJobAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateJobAuthInfoResponse` + :param request: Request instance for DeleteEnhancedConnectionRoutes + :type request: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRoutesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRoutesResponse` """ - http_info = self._create_job_auth_info_http_info(request) + warnings.warn("Method 'delete_enhanced_connection_routes_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_enhanced_connection_routes_http_info(request) return self._call_api(**http_info) - def create_job_auth_info_async_invoker(self, request): - http_info = self._create_job_auth_info_http_info(request) + def delete_enhanced_connection_routes_async_invoker(self, request): + warnings.warn("Method 'delete_enhanced_connection_routes_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_enhanced_connection_routes_http_info(request) return AsyncInvoker(self, http_info) - def _create_job_auth_info_http_info(self, request): + def _delete_enhanced_connection_routes_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/datasource/auth-infos", + "method": "DELETE", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/routes/{name}", "request_type": request.__class__.__name__, - "response_type": "CreateJobAuthInfoResponse" + "response_type": "DeleteEnhancedConnectionRoutesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1539,6 +1545,10 @@ def _create_job_auth_info_http_info(self, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] query_params = [] @@ -1547,8 +1557,6 @@ def _create_job_auth_info_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1570,31 +1578,31 @@ def _create_job_auth_info_http_info(self, request): return http_info - def create_queue_async(self, request): - """创建队列 + def delete_global_variable_async(self, request): + """删除DLI全局变量 - 该API用于创建队列,该队列将会绑定用户指定的计算资源。 + 删除全局变量。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateQueue - :type request: :class:`huaweicloudsdkdli.v1.CreateQueueRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateQueueResponse` + :param request: Request instance for DeleteGlobalVariable + :type request: :class:`huaweicloudsdkdli.v1.DeleteGlobalVariableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteGlobalVariableResponse` """ - http_info = self._create_queue_http_info(request) + http_info = self._delete_global_variable_http_info(request) return self._call_api(**http_info) - def create_queue_async_invoker(self, request): - http_info = self._create_queue_http_info(request) + def delete_global_variable_async_invoker(self, request): + http_info = self._delete_global_variable_http_info(request) return AsyncInvoker(self, http_info) - def _create_queue_http_info(self, request): + def _delete_global_variable_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/queues", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/variables/{var_name}", "request_type": request.__class__.__name__, - "response_type": "CreateQueueResponse" + "response_type": "DeleteGlobalVariableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1604,6 +1612,8 @@ def _create_queue_http_info(self, request): collection_formats = {} path_params = {} + if 'var_name' in local_var_params: + path_params['var_name'] = local_var_params['var_name'] query_params = [] @@ -1612,8 +1622,6 @@ def _create_queue_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1635,33 +1643,31 @@ def _create_queue_http_info(self, request): return http_info - def create_queue_plan_async(self, request): - """创建队列定时扩缩容计划 + def delete_job_auth_info_async(self, request): + """删除跨源认证 - 创建队列定时扩缩容计划接口,对指定的队列创建定时规格变更计划。 + 该API用于删除跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateQueuePlan - :type request: :class:`huaweicloudsdkdli.v1.CreateQueuePlanRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateQueuePlanResponse` + :param request: Request instance for DeleteJobAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.DeleteJobAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteJobAuthInfoResponse` """ - warnings.warn("Method 'create_queue_plan_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_queue_plan_http_info(request) + http_info = self._delete_job_auth_info_http_info(request) return self._call_api(**http_info) - def create_queue_plan_async_invoker(self, request): - warnings.warn("Method 'create_queue_plan_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_queue_plan_http_info(request) + def delete_job_auth_info_async_invoker(self, request): + http_info = self._delete_job_auth_info_http_info(request) return AsyncInvoker(self, http_info) - def _create_queue_plan_http_info(self, request): + def _delete_job_auth_info_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/queues/{queue_name}/plans", + "method": "DELETE", + "resource_path": "/v3/{project_id}/datasource/auth-infos/{auth_info_name}", "request_type": request.__class__.__name__, - "response_type": "CreateQueuePlanResponse" + "response_type": "DeleteJobAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1671,8 +1677,8 @@ def _create_queue_plan_http_info(self, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] + if 'auth_info_name' in local_var_params: + path_params['auth_info_name'] = local_var_params['auth_info_name'] query_params = [] @@ -1681,8 +1687,6 @@ def _create_queue_plan_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1704,31 +1708,33 @@ def _create_queue_plan_http_info(self, request): return http_info - def create_queue_property_async(self, request): - """新增队列属性 + def delete_queue_async(self, request): + """删除队列 - 该接口用于增加队列属性, 一次可增加多个属性。 + 该API用于删除指定队列。 + 说明: + 若指定队列正在执行任务,则不允许删除。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateQueueProperty - :type request: :class:`huaweicloudsdkdli.v1.CreateQueuePropertyRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateQueuePropertyResponse` + :param request: Request instance for DeleteQueue + :type request: :class:`huaweicloudsdkdli.v1.DeleteQueueRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueueResponse` """ - http_info = self._create_queue_property_http_info(request) + http_info = self._delete_queue_http_info(request) return self._call_api(**http_info) - def create_queue_property_async_invoker(self, request): - http_info = self._create_queue_property_http_info(request) + def delete_queue_async_invoker(self, request): + http_info = self._delete_queue_http_info(request) return AsyncInvoker(self, http_info) - def _create_queue_property_http_info(self, request): + def _delete_queue_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}", "request_type": request.__class__.__name__, - "response_type": "CreateQueuePropertyResponse" + "response_type": "DeleteQueueResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1748,8 +1754,6 @@ def _create_queue_property_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1771,33 +1775,33 @@ def _create_queue_property_http_info(self, request): return http_info - def delete_auth_info_async(self, request): - """删除跨源认证 + def delete_queue_plan_async(self, request): + """单个删除队列定时扩缩容计划 - 该API用于删除跨源认证信息。 + 该API用于删除指定ID的队列定时扩缩容计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.DeleteAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteAuthInfoResponse` + :param request: Request instance for DeleteQueuePlan + :type request: :class:`huaweicloudsdkdli.v1.DeleteQueuePlanRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueuePlanResponse` """ - warnings.warn("Method 'delete_auth_info_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_auth_info_http_info(request) + warnings.warn("Method 'delete_queue_plan_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_queue_plan_http_info(request) return self._call_api(**http_info) - def delete_auth_info_async_invoker(self, request): - warnings.warn("Method 'delete_auth_info_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_auth_info_http_info(request) + def delete_queue_plan_async_invoker(self, request): + warnings.warn("Method 'delete_queue_plan_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_queue_plan_http_info(request) return AsyncInvoker(self, http_info) - def _delete_auth_info_http_info(self, request): + def _delete_queue_plan_http_info(self, request): http_info = { "method": "DELETE", - "resource_path": "/v2.0/{project_id}/datasource/auth-infos/{auth_info_name}", + "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/{plan_id}", "request_type": request.__class__.__name__, - "response_type": "DeleteAuthInfoResponse" + "response_type": "DeleteQueuePlanResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1807,8 +1811,10 @@ def _delete_auth_info_http_info(self, request): collection_formats = {} path_params = {} - if 'auth_info_name' in local_var_params: - path_params['auth_info_name'] = local_var_params['auth_info_name'] + if 'plan_id' in local_var_params: + path_params['plan_id'] = local_var_params['plan_id'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -1838,35 +1844,31 @@ def _delete_auth_info_http_info(self, request): return http_info - def delete_datasource_connection_async(self, request): - """删除经典型跨源连接 + def delete_queue_property_async(self, request): + """删除队列的属性 - 该API用于删除已创建的经典型跨源连接。 - 说明: - 创建中的连接,无法删除。 + 该接口用于删除队列的属性,一次可删除多个属性值。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteDatasourceConnection - :type request: :class:`huaweicloudsdkdli.v1.DeleteDatasourceConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteDatasourceConnectionResponse` + :param request: Request instance for DeleteQueueProperty + :type request: :class:`huaweicloudsdkdli.v1.DeleteQueuePropertyRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueuePropertyResponse` """ - warnings.warn("Method 'delete_datasource_connection_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_datasource_connection_http_info(request) + http_info = self._delete_queue_property_http_info(request) return self._call_api(**http_info) - def delete_datasource_connection_async_invoker(self, request): - warnings.warn("Method 'delete_datasource_connection_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_datasource_connection_http_info(request) + def delete_queue_property_async_invoker(self, request): + http_info = self._delete_queue_property_http_info(request) return AsyncInvoker(self, http_info) - def _delete_datasource_connection_http_info(self, request): + def _delete_queue_property_http_info(self, request): http_info = { "method": "DELETE", - "resource_path": "/v2.0/{project_id}/datasource-connection/{connection_id}", + "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", "request_type": request.__class__.__name__, - "response_type": "DeleteDatasourceConnectionResponse" + "response_type": "DeleteQueuePropertyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1876,8 +1878,8 @@ def _delete_datasource_connection_http_info(self, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -1886,6 +1888,8 @@ def _delete_datasource_connection_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1907,31 +1911,33 @@ def _delete_datasource_connection_http_info(self, request): return http_info - def delete_elastic_resource_pool_async(self, request): - """删除弹性资源池 + def delete_resource_async(self, request): + """删除组内资源包 - 删除弹性资源池 + 该API用于删除某个project某个分组下的资源包 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteElasticResourcePool - :type request: :class:`huaweicloudsdkdli.v1.DeleteElasticResourcePoolRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteElasticResourcePoolResponse` + :param request: Request instance for DeleteResource + :type request: :class:`huaweicloudsdkdli.v1.DeleteResourceRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteResourceResponse` """ - http_info = self._delete_elastic_resource_pool_http_info(request) + warnings.warn("Method 'delete_resource_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_resource_http_info(request) return self._call_api(**http_info) - def delete_elastic_resource_pool_async_invoker(self, request): - http_info = self._delete_elastic_resource_pool_http_info(request) + def delete_resource_async_invoker(self, request): + warnings.warn("Method 'delete_resource_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_resource_http_info(request) return AsyncInvoker(self, http_info) - def _delete_elastic_resource_pool_http_info(self, request): + def _delete_resource_http_info(self, request): http_info = { "method": "DELETE", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}", + "resource_path": "/v2.0/{project_id}/resources/{resource_name}", "request_type": request.__class__.__name__, - "response_type": "DeleteElasticResourcePoolResponse" + "response_type": "DeleteResourceResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1941,10 +1947,12 @@ def _delete_elastic_resource_pool_http_info(self, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] + if 'resource_name' in local_var_params: + path_params['resource_name'] = local_var_params['resource_name'] query_params = [] + if 'group' in local_var_params: + query_params.append(('group', local_var_params['group'])) header_params = {} @@ -1972,31 +1980,31 @@ def _delete_elastic_resource_pool_http_info(self, request): return http_info - def delete_enhanced_connection_async(self, request): - """删除增强型跨源连接 + def delete_route_from_enhanced_connection_async(self, request): + """删除路由 - 该API用于删除已创建的增强型跨源连接。 + 该API用于删除跨源需要的路由。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionResponse` + :param request: Request instance for DeleteRouteFromEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.DeleteRouteFromEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteRouteFromEnhancedConnectionResponse` """ - http_info = self._delete_enhanced_connection_http_info(request) + http_info = self._delete_route_from_enhanced_connection_http_info(request) return self._call_api(**http_info) - def delete_enhanced_connection_async_invoker(self, request): - http_info = self._delete_enhanced_connection_http_info(request) + def delete_route_from_enhanced_connection_async_invoker(self, request): + http_info = self._delete_route_from_enhanced_connection_http_info(request) return AsyncInvoker(self, http_info) - def _delete_enhanced_connection_http_info(self, request): + def _delete_route_from_enhanced_connection_http_info(self, request): http_info = { "method": "DELETE", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", + "resource_path": "/v3/{project_id}/datasource/enhanced-connections/{connection_id}/routes/{name}", "request_type": request.__class__.__name__, - "response_type": "DeleteEnhancedConnectionResponse" + "response_type": "DeleteRouteFromEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2008,6 +2016,8 @@ def _delete_enhanced_connection_http_info(self, request): path_params = {} if 'connection_id' in local_var_params: path_params['connection_id'] = local_var_params['connection_id'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] query_params = [] @@ -2037,33 +2047,31 @@ def _delete_enhanced_connection_http_info(self, request): return http_info - def delete_enhanced_connection_routes_async(self, request): - """删除路由 + def disassociate_queue_from_enhanced_connection_async(self, request): + """解绑队列 - 该API用于删除跨源需要的路由。 + 该API用于在增强型跨源中解绑已绑定的队列。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteEnhancedConnectionRoutes - :type request: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRoutesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRoutesResponse` + :param request: Request instance for DisassociateQueueFromEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.DisassociateQueueFromEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DisassociateQueueFromEnhancedConnectionResponse` """ - warnings.warn("Method 'delete_enhanced_connection_routes_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_enhanced_connection_routes_http_info(request) + http_info = self._disassociate_queue_from_enhanced_connection_http_info(request) return self._call_api(**http_info) - def delete_enhanced_connection_routes_async_invoker(self, request): - warnings.warn("Method 'delete_enhanced_connection_routes_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_enhanced_connection_routes_http_info(request) + def disassociate_queue_from_enhanced_connection_async_invoker(self, request): + http_info = self._disassociate_queue_from_enhanced_connection_http_info(request) return AsyncInvoker(self, http_info) - def _delete_enhanced_connection_routes_http_info(self, request): + def _disassociate_queue_from_enhanced_connection_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/routes/{name}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/disassociate-queue", "request_type": request.__class__.__name__, - "response_type": "DeleteEnhancedConnectionRoutesResponse" + "response_type": "DisassociateQueueFromEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2075,8 +2083,6 @@ def _delete_enhanced_connection_routes_http_info(self, request): path_params = {} if 'connection_id' in local_var_params: path_params['connection_id'] = local_var_params['connection_id'] - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] query_params = [] @@ -2085,6 +2091,8 @@ def _delete_enhanced_connection_routes_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -2106,31 +2114,33 @@ def _delete_enhanced_connection_routes_http_info(self, request): return http_info - def delete_global_variable_async(self, request): - """删除DLI全局变量 + def list_auth_info_async(self, request): + """获取跨源认证列表 - 删除全局变量。 + 该API用于查询跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteGlobalVariable - :type request: :class:`huaweicloudsdkdli.v1.DeleteGlobalVariableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteGlobalVariableResponse` + :param request: Request instance for ListAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.ListAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListAuthInfoResponse` """ - http_info = self._delete_global_variable_http_info(request) + warnings.warn("Method 'list_auth_info_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_auth_info_http_info(request) return self._call_api(**http_info) - def delete_global_variable_async_invoker(self, request): - http_info = self._delete_global_variable_http_info(request) + def list_auth_info_async_invoker(self, request): + warnings.warn("Method 'list_auth_info_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_auth_info_http_info(request) return AsyncInvoker(self, http_info) - def _delete_global_variable_http_info(self, request): + def _list_auth_info_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/variables/{var_name}", + "method": "GET", + "resource_path": "/v2.0/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "DeleteGlobalVariableResponse" + "response_type": "ListAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2140,10 +2150,14 @@ def _delete_global_variable_http_info(self, request): collection_formats = {} path_params = {} - if 'var_name' in local_var_params: - path_params['var_name'] = local_var_params['var_name'] query_params = [] + if 'auth_info_name' in local_var_params: + query_params.append(('auth_info_name', local_var_params['auth_info_name'])) + 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'])) header_params = {} @@ -2171,31 +2185,31 @@ def _delete_global_variable_http_info(self, request): return http_info - def delete_job_auth_info_async(self, request): - """删除跨源认证 + def list_authorization_privileges_async(self, request): + """查看赋权对象的用者权限信息 - 该API用于删除跨源认证信息。 + 获取对象赋权用户的权限信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteJobAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.DeleteJobAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteJobAuthInfoResponse` + :param request: Request instance for ListAuthorizationPrivileges + :type request: :class:`huaweicloudsdkdli.v1.ListAuthorizationPrivilegesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListAuthorizationPrivilegesResponse` """ - http_info = self._delete_job_auth_info_http_info(request) + http_info = self._list_authorization_privileges_http_info(request) return self._call_api(**http_info) - def delete_job_auth_info_async_invoker(self, request): - http_info = self._delete_job_auth_info_http_info(request) + def list_authorization_privileges_async_invoker(self, request): + http_info = self._list_authorization_privileges_http_info(request) return AsyncInvoker(self, http_info) - def _delete_job_auth_info_http_info(self, request): + def _list_authorization_privileges_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v3/{project_id}/datasource/auth-infos/{auth_info_name}", + "method": "GET", + "resource_path": "/v1.0/{project_id}/authorization/privileges", "request_type": request.__class__.__name__, - "response_type": "DeleteJobAuthInfoResponse" + "response_type": "ListAuthorizationPrivilegesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2205,10 +2219,10 @@ def _delete_job_auth_info_http_info(self, request): collection_formats = {} path_params = {} - if 'auth_info_name' in local_var_params: - path_params['auth_info_name'] = local_var_params['auth_info_name'] query_params = [] + if 'object' in local_var_params: + query_params.append(('object', local_var_params['object'])) header_params = {} @@ -2236,33 +2250,33 @@ def _delete_job_auth_info_http_info(self, request): return http_info - def delete_queue_async(self, request): - """删除队列 + def list_database_users_async(self, request): + """查看数据库的使用者 - 该API用于删除指定队列。 - 说明: - 若指定队列正在执行任务,则不允许删除。 + 该API用于查询可以使用的指定队列的所有用户名称。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteQueue - :type request: :class:`huaweicloudsdkdli.v1.DeleteQueueRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueueResponse` + :param request: Request instance for ListDatabaseUsers + :type request: :class:`huaweicloudsdkdli.v1.ListDatabaseUsersRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListDatabaseUsersResponse` """ - http_info = self._delete_queue_http_info(request) + warnings.warn("Method 'list_database_users_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_database_users_http_info(request) return self._call_api(**http_info) - def delete_queue_async_invoker(self, request): - http_info = self._delete_queue_http_info(request) - return AsyncInvoker(self, http_info) + def list_database_users_async_invoker(self, request): + warnings.warn("Method 'list_database_users_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_database_users_http_info(request) + return AsyncInvoker(self, http_info) - def _delete_queue_http_info(self, request): + def _list_database_users_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}", + "method": "GET", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/users", "request_type": request.__class__.__name__, - "response_type": "DeleteQueueResponse" + "response_type": "ListDatabaseUsersResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2272,8 +2286,8 @@ def _delete_queue_http_info(self, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] query_params = [] @@ -2303,33 +2317,33 @@ def _delete_queue_http_info(self, request): return http_info - def delete_queue_plan_async(self, request): - """单个删除队列定时扩缩容计划 + def list_datasource_connections_async(self, request): + """查询经典型跨源连接列表 - 该API用于删除指定ID的队列定时扩缩容计划。 + 该API用于查询该用户已创建的经典型跨源连接列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteQueuePlan - :type request: :class:`huaweicloudsdkdli.v1.DeleteQueuePlanRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueuePlanResponse` + :param request: Request instance for ListDatasourceConnections + :type request: :class:`huaweicloudsdkdli.v1.ListDatasourceConnectionsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListDatasourceConnectionsResponse` """ - warnings.warn("Method 'delete_queue_plan_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_queue_plan_http_info(request) + warnings.warn("Method 'list_datasource_connections_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_datasource_connections_http_info(request) return self._call_api(**http_info) - def delete_queue_plan_async_invoker(self, request): - warnings.warn("Method 'delete_queue_plan_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_queue_plan_http_info(request) + def list_datasource_connections_async_invoker(self, request): + warnings.warn("Method 'list_datasource_connections_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_datasource_connections_http_info(request) return AsyncInvoker(self, http_info) - def _delete_queue_plan_http_info(self, request): + def _list_datasource_connections_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/{plan_id}", + "method": "GET", + "resource_path": "/v2.0/{project_id}/datasource-connection", "request_type": request.__class__.__name__, - "response_type": "DeleteQueuePlanResponse" + "response_type": "ListDatasourceConnectionsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2339,12 +2353,10 @@ def _delete_queue_plan_http_info(self, request): collection_formats = {} path_params = {} - if 'plan_id' in local_var_params: - path_params['plan_id'] = local_var_params['plan_id'] - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) header_params = {} @@ -2372,31 +2384,31 @@ def _delete_queue_plan_http_info(self, request): return http_info - def delete_queue_property_async(self, request): - """删除队列的属性 + def list_elastic_resource_pool_queues_async(self, request): + """查询弹性资源池所属队列 - 该接口用于删除队列的属性,一次可删除多个属性值。 + 查询弹性资源池所属队列 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteQueueProperty - :type request: :class:`huaweicloudsdkdli.v1.DeleteQueuePropertyRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueuePropertyResponse` + :param request: Request instance for ListElasticResourcePoolQueues + :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolQueuesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolQueuesResponse` """ - http_info = self._delete_queue_property_http_info(request) + http_info = self._list_elastic_resource_pool_queues_http_info(request) return self._call_api(**http_info) - def delete_queue_property_async_invoker(self, request): - http_info = self._delete_queue_property_http_info(request) + def list_elastic_resource_pool_queues_async_invoker(self, request): + http_info = self._list_elastic_resource_pool_queues_http_info(request) return AsyncInvoker(self, http_info) - def _delete_queue_property_http_info(self, request): + def _list_elastic_resource_pool_queues_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", + "method": "GET", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues", "request_type": request.__class__.__name__, - "response_type": "DeleteQueuePropertyResponse" + "response_type": "ListElasticResourcePoolQueuesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2406,18 +2418,22 @@ def _delete_queue_property_http_info(self, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'queue_name' in local_var_params: + query_params.append(('queue_name', local_var_params['queue_name'])) 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() @@ -2439,33 +2455,31 @@ def _delete_queue_property_http_info(self, request): return http_info - def delete_resource_async(self, request): - """删除组内资源包 + def list_elastic_resource_pool_scale_records_async(self, request): + """弹性资源池扩缩容历史记录 - 该API用于删除某个project某个分组下的资源包 + 查询当前弹性资源池扩缩容历史记录 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteResource - :type request: :class:`huaweicloudsdkdli.v1.DeleteResourceRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteResourceResponse` + :param request: Request instance for ListElasticResourcePoolScaleRecords + :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolScaleRecordsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolScaleRecordsResponse` """ - warnings.warn("Method 'delete_resource_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_resource_http_info(request) + http_info = self._list_elastic_resource_pool_scale_records_http_info(request) return self._call_api(**http_info) - def delete_resource_async_invoker(self, request): - warnings.warn("Method 'delete_resource_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_resource_http_info(request) + def list_elastic_resource_pool_scale_records_async_invoker(self, request): + http_info = self._list_elastic_resource_pool_scale_records_http_info(request) return AsyncInvoker(self, http_info) - def _delete_resource_http_info(self, request): + def _list_elastic_resource_pool_scale_records_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v2.0/{project_id}/resources/{resource_name}", + "method": "GET", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/scale-records", "request_type": request.__class__.__name__, - "response_type": "DeleteResourceResponse" + "response_type": "ListElasticResourcePoolScaleRecordsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2475,12 +2489,20 @@ def _delete_resource_http_info(self, request): collection_formats = {} path_params = {} - if 'resource_name' in local_var_params: - path_params['resource_name'] = local_var_params['resource_name'] + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] - if 'group' in local_var_params: - query_params.append(('group', local_var_params['group'])) + 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 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + 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'])) header_params = {} @@ -2490,7 +2512,7 @@ def _delete_resource_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["X-Auth-Token", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -2508,31 +2530,31 @@ def _delete_resource_http_info(self, request): return http_info - def disassociate_queue_from_enhanced_connection_async(self, request): - """解绑队列 + def list_elastic_resource_pools_async(self, request): + """查询所有弹性资源池 - 该API用于在增强型跨源中解绑已绑定的队列。 + 查询所有弹性资源池 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DisassociateQueueFromEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.DisassociateQueueFromEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DisassociateQueueFromEnhancedConnectionResponse` + :param request: Request instance for ListElasticResourcePools + :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolsResponse` """ - http_info = self._disassociate_queue_from_enhanced_connection_http_info(request) + http_info = self._list_elastic_resource_pools_http_info(request) return self._call_api(**http_info) - def disassociate_queue_from_enhanced_connection_async_invoker(self, request): - http_info = self._disassociate_queue_from_enhanced_connection_http_info(request) + def list_elastic_resource_pools_async_invoker(self, request): + http_info = self._list_elastic_resource_pools_http_info(request) return AsyncInvoker(self, http_info) - def _disassociate_queue_from_enhanced_connection_http_info(self, request): + def _list_elastic_resource_pools_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/disassociate-queue", + "method": "GET", + "resource_path": "/v3/{project_id}/elastic-resource-pools", "request_type": request.__class__.__name__, - "response_type": "DisassociateQueueFromEnhancedConnectionResponse" + "response_type": "ListElasticResourcePoolsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2542,18 +2564,24 @@ def _disassociate_queue_from_enhanced_connection_http_info(self, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) 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() @@ -2575,33 +2603,31 @@ def _disassociate_queue_from_enhanced_connection_http_info(self, request): return http_info - def list_auth_info_async(self, request): - """获取跨源认证列表 + def list_enhanced_connections_async(self, request): + """查询增强型跨源连接列表 - 该API用于查询跨源认证信息。 + 该API用于查询该用户已创建的增强型跨源连接列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.ListAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListAuthInfoResponse` + :param request: Request instance for ListEnhancedConnections + :type request: :class:`huaweicloudsdkdli.v1.ListEnhancedConnectionsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListEnhancedConnectionsResponse` """ - warnings.warn("Method 'list_auth_info_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_auth_info_http_info(request) + http_info = self._list_enhanced_connections_http_info(request) return self._call_api(**http_info) - def list_auth_info_async_invoker(self, request): - warnings.warn("Method 'list_auth_info_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_auth_info_http_info(request) + def list_enhanced_connections_async_invoker(self, request): + http_info = self._list_enhanced_connections_http_info(request) return AsyncInvoker(self, http_info) - def _list_auth_info_http_info(self, request): + def _list_enhanced_connections_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource/auth-infos", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections", "request_type": request.__class__.__name__, - "response_type": "ListAuthInfoResponse" + "response_type": "ListEnhancedConnectionsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2613,12 +2639,16 @@ def _list_auth_info_http_info(self, request): path_params = {} query_params = [] - if 'auth_info_name' in local_var_params: - query_params.append(('auth_info_name', local_var_params['auth_info_name'])) - 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 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) header_params = {} @@ -2646,31 +2676,31 @@ def _list_auth_info_http_info(self, request): return http_info - def list_authorization_privileges_async(self, request): - """查看赋权对象的用者权限信息 + def list_global_variables_async(self, request): + """查询DLI全局变量列表 - 获取对象赋权用户的权限信息 + 查询全局变量列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAuthorizationPrivileges - :type request: :class:`huaweicloudsdkdli.v1.ListAuthorizationPrivilegesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListAuthorizationPrivilegesResponse` + :param request: Request instance for ListGlobalVariables + :type request: :class:`huaweicloudsdkdli.v1.ListGlobalVariablesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListGlobalVariablesResponse` """ - http_info = self._list_authorization_privileges_http_info(request) + http_info = self._list_global_variables_http_info(request) return self._call_api(**http_info) - def list_authorization_privileges_async_invoker(self, request): - http_info = self._list_authorization_privileges_http_info(request) + def list_global_variables_async_invoker(self, request): + http_info = self._list_global_variables_http_info(request) return AsyncInvoker(self, http_info) - def _list_authorization_privileges_http_info(self, request): + def _list_global_variables_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/authorization/privileges", + "resource_path": "/v1.0/{project_id}/variables", "request_type": request.__class__.__name__, - "response_type": "ListAuthorizationPrivilegesResponse" + "response_type": "ListGlobalVariablesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2682,8 +2712,10 @@ def _list_authorization_privileges_http_info(self, request): path_params = {} query_params = [] - if 'object' in local_var_params: - query_params.append(('object', local_var_params['object'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} @@ -2711,33 +2743,31 @@ def _list_authorization_privileges_http_info(self, request): return http_info - def list_database_users_async(self, request): - """查看数据库的使用者 + def list_job_auth_infos_async(self, request): + """查询增强型跨源授权信息 - 该API用于查询可以使用的指定队列的所有用户名称。 + 该API用于查询跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDatabaseUsers - :type request: :class:`huaweicloudsdkdli.v1.ListDatabaseUsersRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListDatabaseUsersResponse` + :param request: Request instance for ListJobAuthInfos + :type request: :class:`huaweicloudsdkdli.v1.ListJobAuthInfosRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListJobAuthInfosResponse` """ - warnings.warn("Method 'list_database_users_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_database_users_http_info(request) + http_info = self._list_job_auth_infos_http_info(request) return self._call_api(**http_info) - def list_database_users_async_invoker(self, request): - warnings.warn("Method 'list_database_users_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_database_users_http_info(request) + def list_job_auth_infos_async_invoker(self, request): + http_info = self._list_job_auth_infos_http_info(request) return AsyncInvoker(self, http_info) - def _list_database_users_http_info(self, request): + def _list_job_auth_infos_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/users", + "resource_path": "/v3/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "ListDatabaseUsersResponse" + "response_type": "ListJobAuthInfosResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2747,10 +2777,14 @@ def _list_database_users_http_info(self, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] query_params = [] + if 'auth_info_name' in local_var_params: + query_params.append(('auth_info_name', local_var_params['auth_info_name'])) + 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'])) header_params = {} @@ -2778,33 +2812,33 @@ def _list_database_users_http_info(self, request): return http_info - def list_datasource_connections_async(self, request): - """查询经典型跨源连接列表 + def list_queue_plans_async(self, request): + """查看队列定时扩缩容计划 - 该API用于查询该用户已创建的经典型跨源连接列表。 + 查看队列定时扩缩容计划接口,列出指定队列定时规格变更计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDatasourceConnections - :type request: :class:`huaweicloudsdkdli.v1.ListDatasourceConnectionsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListDatasourceConnectionsResponse` + :param request: Request instance for ListQueuePlans + :type request: :class:`huaweicloudsdkdli.v1.ListQueuePlansRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListQueuePlansResponse` """ - warnings.warn("Method 'list_datasource_connections_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_datasource_connections_http_info(request) + warnings.warn("Method 'list_queue_plans_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_queue_plans_http_info(request) return self._call_api(**http_info) - def list_datasource_connections_async_invoker(self, request): - warnings.warn("Method 'list_datasource_connections_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_datasource_connections_http_info(request) + def list_queue_plans_async_invoker(self, request): + warnings.warn("Method 'list_queue_plans_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_queue_plans_http_info(request) return AsyncInvoker(self, http_info) - def _list_datasource_connections_http_info(self, request): + def _list_queue_plans_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource-connection", + "resource_path": "/v1/{project_id}/queues/{queue_name}/plans", "request_type": request.__class__.__name__, - "response_type": "ListDatasourceConnectionsResponse" + "response_type": "ListQueuePlansResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2814,10 +2848,10 @@ def _list_datasource_connections_http_info(self, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) header_params = {} @@ -2845,31 +2879,31 @@ def _list_datasource_connections_http_info(self, request): return http_info - def list_elastic_resource_pool_queues_async(self, request): - """查询弹性资源池所属队列 + def list_queue_properties_async(self, request): + """获取队列属性 - 查询弹性资源池所属队列 + 获取队列配置的属性 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListElasticResourcePoolQueues - :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolQueuesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolQueuesResponse` + :param request: Request instance for ListQueueProperties + :type request: :class:`huaweicloudsdkdli.v1.ListQueuePropertiesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListQueuePropertiesResponse` """ - http_info = self._list_elastic_resource_pool_queues_http_info(request) + http_info = self._list_queue_properties_http_info(request) return self._call_api(**http_info) - def list_elastic_resource_pool_queues_async_invoker(self, request): - http_info = self._list_elastic_resource_pool_queues_http_info(request) + def list_queue_properties_async_invoker(self, request): + http_info = self._list_queue_properties_http_info(request) return AsyncInvoker(self, http_info) - def _list_elastic_resource_pool_queues_http_info(self, request): + def _list_queue_properties_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues", + "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", "request_type": request.__class__.__name__, - "response_type": "ListElasticResourcePoolQueuesResponse" + "response_type": "ListQueuePropertiesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2879,16 +2913,14 @@ def _list_elastic_resource_pool_queues_http_info(self, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) if 'offset' in local_var_params: query_params.append(('offset', local_var_params['offset'])) - if 'queue_name' in local_var_params: - query_params.append(('queue_name', local_var_params['queue_name'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) header_params = {} @@ -2916,31 +2948,33 @@ def _list_elastic_resource_pool_queues_http_info(self, request): return http_info - def list_elastic_resource_pool_scale_records_async(self, request): - """弹性资源池扩缩容历史记录 + def list_queue_users_async(self, request): + """查看队列的使用者 - 查询当前弹性资源池扩缩容历史记录 + 该API用于查询可以使用的指定队列的所有用户名称。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListElasticResourcePoolScaleRecords - :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolScaleRecordsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolScaleRecordsResponse` + :param request: Request instance for ListQueueUsers + :type request: :class:`huaweicloudsdkdli.v1.ListQueueUsersRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListQueueUsersResponse` """ - http_info = self._list_elastic_resource_pool_scale_records_http_info(request) + warnings.warn("Method 'list_queue_users_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_queue_users_http_info(request) return self._call_api(**http_info) - def list_elastic_resource_pool_scale_records_async_invoker(self, request): - http_info = self._list_elastic_resource_pool_scale_records_http_info(request) + def list_queue_users_async_invoker(self, request): + warnings.warn("Method 'list_queue_users_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_queue_users_http_info(request) return AsyncInvoker(self, http_info) - def _list_elastic_resource_pool_scale_records_http_info(self, request): + def _list_queue_users_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/scale-records", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}/users", "request_type": request.__class__.__name__, - "response_type": "ListElasticResourcePoolScaleRecordsResponse" + "response_type": "ListQueueUsersResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2950,20 +2984,10 @@ def _list_elastic_resource_pool_scale_records_http_info(self, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] - 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 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) - 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'])) header_params = {} @@ -2973,7 +2997,7 @@ def _list_elastic_resource_pool_scale_records_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Auth-Token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -2991,31 +3015,31 @@ def _list_elastic_resource_pool_scale_records_http_info(self, request): return http_info - def list_elastic_resource_pools_async(self, request): - """查询所有弹性资源池 + def list_queues_async(self, request): + """查询所有队列 - 查询所有弹性资源池 + 该API用于列出该project下所有的队列。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListElasticResourcePools - :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolsResponse` + :param request: Request instance for ListQueues + :type request: :class:`huaweicloudsdkdli.v1.ListQueuesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListQueuesResponse` """ - http_info = self._list_elastic_resource_pools_http_info(request) + http_info = self._list_queues_http_info(request) return self._call_api(**http_info) - def list_elastic_resource_pools_async_invoker(self, request): - http_info = self._list_elastic_resource_pools_http_info(request) + def list_queues_async_invoker(self, request): + http_info = self._list_queues_http_info(request) return AsyncInvoker(self, http_info) - def _list_elastic_resource_pools_http_info(self, request): + def _list_queues_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/elastic-resource-pools", + "resource_path": "/v1.0/{project_id}/queues", "request_type": request.__class__.__name__, - "response_type": "ListElasticResourcePoolsResponse" + "response_type": "ListQueuesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3027,16 +3051,14 @@ def _list_elastic_resource_pools_http_info(self, request): path_params = {} query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) + if 'queue_type' in local_var_params: + query_params.append(('queue_type', local_var_params['queue_type'])) if 'tags' in local_var_params: query_params.append(('tags', local_var_params['tags'])) + if 'with_charge_info' in local_var_params: + query_params.append(('with-charge-info', local_var_params['with_charge_info'])) + if 'with_priv' in local_var_params: + query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -3064,31 +3086,33 @@ def _list_elastic_resource_pools_http_info(self, request): return http_info - def list_enhanced_connections_async(self, request): - """查询增强型跨源连接列表 + def list_resources_async(self, request): + """查看分组资源列表 - 该API用于查询该用户已创建的增强型跨源连接列表。 + 该API用于查看某个project下的所有资源,其中包含Group。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListEnhancedConnections - :type request: :class:`huaweicloudsdkdli.v1.ListEnhancedConnectionsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListEnhancedConnectionsResponse` + :param request: Request instance for ListResources + :type request: :class:`huaweicloudsdkdli.v1.ListResourcesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListResourcesResponse` """ - http_info = self._list_enhanced_connections_http_info(request) + warnings.warn("Method 'list_resources_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_resources_http_info(request) return self._call_api(**http_info) - def list_enhanced_connections_async_invoker(self, request): - http_info = self._list_enhanced_connections_http_info(request) + def list_resources_async_invoker(self, request): + warnings.warn("Method 'list_resources_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_resources_http_info(request) return AsyncInvoker(self, http_info) - def _list_enhanced_connections_http_info(self, request): + def _list_resources_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections", + "resource_path": "/v2.0/{project_id}/resources", "request_type": request.__class__.__name__, - "response_type": "ListEnhancedConnectionsResponse" + "response_type": "ListResourcesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3100,14 +3124,8 @@ def _list_enhanced_connections_http_info(self, request): path_params = {} query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) + if 'kind' in local_var_params: + query_params.append(('kind', local_var_params['kind'])) if 'tags' in local_var_params: query_params.append(('tags', local_var_params['tags'])) @@ -3137,31 +3155,33 @@ def _list_enhanced_connections_http_info(self, request): return http_info - def list_global_variables_async(self, request): - """查询DLI全局变量列表 + def list_table_privileges_async(self, request): + """查看表的用户权限 - 查询全局变量列表。 + 该API用于查询指定用户在表上的权限。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListGlobalVariables - :type request: :class:`huaweicloudsdkdli.v1.ListGlobalVariablesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListGlobalVariablesResponse` + :param request: Request instance for ListTablePrivileges + :type request: :class:`huaweicloudsdkdli.v1.ListTablePrivilegesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListTablePrivilegesResponse` """ - http_info = self._list_global_variables_http_info(request) + warnings.warn("Method 'list_table_privileges_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_table_privileges_http_info(request) return self._call_api(**http_info) - def list_global_variables_async_invoker(self, request): - http_info = self._list_global_variables_http_info(request) + def list_table_privileges_async_invoker(self, request): + warnings.warn("Method 'list_table_privileges_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_table_privileges_http_info(request) return AsyncInvoker(self, http_info) - def _list_global_variables_http_info(self, request): + def _list_table_privileges_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/variables", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/users/{user_name}", "request_type": request.__class__.__name__, - "response_type": "ListGlobalVariablesResponse" + "response_type": "ListTablePrivilegesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3171,12 +3191,14 @@ def _list_global_variables_http_info(self, request): collection_formats = {} path_params = {} + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] + if 'user_name' in local_var_params: + path_params['user_name'] = local_var_params['user_name'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} @@ -3204,31 +3226,33 @@ def _list_global_variables_http_info(self, request): return http_info - def list_job_auth_infos_async(self, request): - """查询增强型跨源授权信息 + def list_table_users_async(self, request): + """查看表的使用者 - 该API用于查询跨源认证信息。 + 该API用于查看有权访问指定表或表的列的所有用户。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListJobAuthInfos - :type request: :class:`huaweicloudsdkdli.v1.ListJobAuthInfosRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListJobAuthInfosResponse` + :param request: Request instance for ListTableUsers + :type request: :class:`huaweicloudsdkdli.v1.ListTableUsersRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListTableUsersResponse` """ - http_info = self._list_job_auth_infos_http_info(request) + warnings.warn("Method 'list_table_users_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_table_users_http_info(request) return self._call_api(**http_info) - def list_job_auth_infos_async_invoker(self, request): - http_info = self._list_job_auth_infos_http_info(request) + def list_table_users_async_invoker(self, request): + warnings.warn("Method 'list_table_users_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_table_users_http_info(request) return AsyncInvoker(self, http_info) - def _list_job_auth_infos_http_info(self, request): + def _list_table_users_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/datasource/auth-infos", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/users", "request_type": request.__class__.__name__, - "response_type": "ListJobAuthInfosResponse" + "response_type": "ListTableUsersResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3238,14 +3262,12 @@ def _list_job_auth_infos_http_info(self, request): collection_formats = {} path_params = {} + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] query_params = [] - if 'auth_info_name' in local_var_params: - query_params.append(('auth_info_name', local_var_params['auth_info_name'])) - 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'])) header_params = {} @@ -3273,33 +3295,33 @@ def _list_job_auth_infos_http_info(self, request): return http_info - def list_queue_plans_async(self, request): - """查看队列定时扩缩容计划 + def register_authorized_queue_async(self, request): + """队列赋权 - 查看队列定时扩缩容计划接口,列出指定队列定时规格变更计划。 + 该API用于与其他用户共享指定的队列,可以给用户赋使用指定的队列的权限或者收回使用权限。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListQueuePlans - :type request: :class:`huaweicloudsdkdli.v1.ListQueuePlansRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListQueuePlansResponse` + :param request: Request instance for RegisterAuthorizedQueue + :type request: :class:`huaweicloudsdkdli.v1.RegisterAuthorizedQueueRequest` + :rtype: :class:`huaweicloudsdkdli.v1.RegisterAuthorizedQueueResponse` """ - warnings.warn("Method 'list_queue_plans_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_queue_plans_http_info(request) + warnings.warn("Method 'register_authorized_queue_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._register_authorized_queue_http_info(request) return self._call_api(**http_info) - def list_queue_plans_async_invoker(self, request): - warnings.warn("Method 'list_queue_plans_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_queue_plans_http_info(request) + def register_authorized_queue_async_invoker(self, request): + warnings.warn("Method 'register_authorized_queue_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._register_authorized_queue_http_info(request) return AsyncInvoker(self, http_info) - def _list_queue_plans_http_info(self, request): + def _register_authorized_queue_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/queues/{queue_name}/plans", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/queues/user-authorization", "request_type": request.__class__.__name__, - "response_type": "ListQueuePlansResponse" + "response_type": "RegisterAuthorizedQueueResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3309,8 +3331,6 @@ def _list_queue_plans_http_info(self, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -3319,6 +3339,8 @@ def _list_queue_plans_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3340,31 +3362,31 @@ def _list_queue_plans_http_info(self, request): return http_info - def list_queue_properties_async(self, request): - """获取队列属性 + def run_authorization_action_async(self, request): + """数据赋权(用户、项目) - 获取队列配置的属性 + 该API用于将DLI资源权限赋给、回收、更新指定的其他用户或项目。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListQueueProperties - :type request: :class:`huaweicloudsdkdli.v1.ListQueuePropertiesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListQueuePropertiesResponse` + :param request: Request instance for RunAuthorizationAction + :type request: :class:`huaweicloudsdkdli.v1.RunAuthorizationActionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.RunAuthorizationActionResponse` """ - http_info = self._list_queue_properties_http_info(request) + http_info = self._run_authorization_action_http_info(request) return self._call_api(**http_info) - def list_queue_properties_async_invoker(self, request): - http_info = self._list_queue_properties_http_info(request) + def run_authorization_action_async_invoker(self, request): + http_info = self._run_authorization_action_http_info(request) return AsyncInvoker(self, http_info) - def _list_queue_properties_http_info(self, request): + def _run_authorization_action_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/authorization", "request_type": request.__class__.__name__, - "response_type": "ListQueuePropertiesResponse" + "response_type": "RunAuthorizationActionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3374,20 +3396,16 @@ def _list_queue_properties_http_info(self, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] 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'])) 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() @@ -3409,33 +3427,31 @@ def _list_queue_properties_http_info(self, request): return http_info - def list_queue_users_async(self, request): - """查看队列的使用者 + def run_queue_action_async(self, request): + """重启/扩容/缩容队列 - 该API用于查询可以使用的指定队列的所有用户名称。 + 该功能用于重新启动队列、扩容队列、缩容队列。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListQueueUsers - :type request: :class:`huaweicloudsdkdli.v1.ListQueueUsersRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListQueueUsersResponse` + :param request: Request instance for RunQueueAction + :type request: :class:`huaweicloudsdkdli.v1.RunQueueActionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.RunQueueActionResponse` """ - warnings.warn("Method 'list_queue_users_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_queue_users_http_info(request) + http_info = self._run_queue_action_http_info(request) return self._call_api(**http_info) - def list_queue_users_async_invoker(self, request): - warnings.warn("Method 'list_queue_users_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_queue_users_http_info(request) + def run_queue_action_async_invoker(self, request): + http_info = self._run_queue_action_http_info(request) return AsyncInvoker(self, http_info) - def _list_queue_users_http_info(self, request): + def _run_queue_action_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}/users", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}/action", "request_type": request.__class__.__name__, - "response_type": "ListQueueUsersResponse" + "response_type": "RunQueueActionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3455,6 +3471,8 @@ def _list_queue_users_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3476,31 +3494,31 @@ def _list_queue_users_http_info(self, request): return http_info - def list_queues_async(self, request): - """查询所有队列 + def show_connectivity_task_async(self, request): + """查询指定地址连通性测试详情 - 该API用于列出该project下所有的队列。 + 该API用于在连通性测试提交后查询连通性结果。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListQueues - :type request: :class:`huaweicloudsdkdli.v1.ListQueuesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListQueuesResponse` + :param request: Request instance for ShowConnectivityTask + :type request: :class:`huaweicloudsdkdli.v1.ShowConnectivityTaskRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowConnectivityTaskResponse` """ - http_info = self._list_queues_http_info(request) + http_info = self._show_connectivity_task_http_info(request) return self._call_api(**http_info) - def list_queues_async_invoker(self, request): - http_info = self._list_queues_http_info(request) + def show_connectivity_task_async_invoker(self, request): + http_info = self._show_connectivity_task_http_info(request) return AsyncInvoker(self, http_info) - def _list_queues_http_info(self, request): + def _show_connectivity_task_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/queues", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}/connection-test/{task_id}", "request_type": request.__class__.__name__, - "response_type": "ListQueuesResponse" + "response_type": "ShowConnectivityTaskResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3510,16 +3528,12 @@ def _list_queues_http_info(self, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] query_params = [] - if 'queue_type' in local_var_params: - query_params.append(('queue_type', local_var_params['queue_type'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) - if 'with_charge_info' in local_var_params: - query_params.append(('with-charge-info', local_var_params['with_charge_info'])) - if 'with_priv' in local_var_params: - query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -3547,33 +3561,33 @@ def _list_queues_http_info(self, request): return http_info - def list_resources_async(self, request): - """查看分组资源列表 + def show_datasource_connection_async(self, request): + """查询经典型跨源连接 - 该API用于查看某个project下的所有资源,其中包含Group。 + 该API用于查询该用户指定的已创建的经典型跨源连接。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListResources - :type request: :class:`huaweicloudsdkdli.v1.ListResourcesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListResourcesResponse` + :param request: Request instance for ShowDatasourceConnection + :type request: :class:`huaweicloudsdkdli.v1.ShowDatasourceConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowDatasourceConnectionResponse` """ - warnings.warn("Method 'list_resources_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_resources_http_info(request) + warnings.warn("Method 'show_datasource_connection_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_datasource_connection_http_info(request) return self._call_api(**http_info) - def list_resources_async_invoker(self, request): - warnings.warn("Method 'list_resources_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_resources_http_info(request) + def show_datasource_connection_async_invoker(self, request): + warnings.warn("Method 'show_datasource_connection_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_datasource_connection_http_info(request) return AsyncInvoker(self, http_info) - def _list_resources_http_info(self, request): + def _show_datasource_connection_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v2.0/{project_id}/resources", + "resource_path": "/v2.0/{project_id}/datasource-connection/{connection_id}", "request_type": request.__class__.__name__, - "response_type": "ListResourcesResponse" + "response_type": "ShowDatasourceConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3583,12 +3597,10 @@ def _list_resources_http_info(self, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] - if 'kind' in local_var_params: - query_params.append(('kind', local_var_params['kind'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) header_params = {} @@ -3616,33 +3628,33 @@ def _list_resources_http_info(self, request): return http_info - def list_table_privileges_async(self, request): - """查看表的用户权限 + def show_dli_agency_async(self, request): + """获取dli委托信息 - 该API用于查询指定用户在表上的权限。 + 获取dli委托信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListTablePrivileges - :type request: :class:`huaweicloudsdkdli.v1.ListTablePrivilegesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListTablePrivilegesResponse` + :param request: Request instance for ShowDliAgency + :type request: :class:`huaweicloudsdkdli.v1.ShowDliAgencyRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowDliAgencyResponse` """ - warnings.warn("Method 'list_table_privileges_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_table_privileges_http_info(request) + warnings.warn("Method 'show_dli_agency_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_dli_agency_http_info(request) return self._call_api(**http_info) - def list_table_privileges_async_invoker(self, request): - warnings.warn("Method 'list_table_privileges_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_table_privileges_http_info(request) + def show_dli_agency_async_invoker(self, request): + warnings.warn("Method 'show_dli_agency_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_dli_agency_http_info(request) return AsyncInvoker(self, http_info) - def _list_table_privileges_http_info(self, request): + def _show_dli_agency_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/users/{user_name}", + "resource_path": "/v2/{project_id}/agency", "request_type": request.__class__.__name__, - "response_type": "ListTablePrivilegesResponse" + "response_type": "ShowDliAgencyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3652,12 +3664,6 @@ def _list_table_privileges_http_info(self, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] - if 'user_name' in local_var_params: - path_params['user_name'] = local_var_params['user_name'] query_params = [] @@ -3687,33 +3693,31 @@ def _list_table_privileges_http_info(self, request): return http_info - def list_table_users_async(self, request): - """查看表的使用者 + def show_enhanced_connection_async(self, request): + """查询增强型跨源连接 - 该API用于查看有权访问指定表或表的列的所有用户。 + 该API用于查询该用户指定的已创建的增强型跨源连接。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListTableUsers - :type request: :class:`huaweicloudsdkdli.v1.ListTableUsersRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListTableUsersResponse` + :param request: Request instance for ShowEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionResponse` """ - warnings.warn("Method 'list_table_users_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_table_users_http_info(request) + http_info = self._show_enhanced_connection_http_info(request) return self._call_api(**http_info) - def list_table_users_async_invoker(self, request): - warnings.warn("Method 'list_table_users_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_table_users_http_info(request) + def show_enhanced_connection_async_invoker(self, request): + http_info = self._show_enhanced_connection_http_info(request) return AsyncInvoker(self, http_info) - def _list_table_users_http_info(self, request): + def _show_enhanced_connection_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/users", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", "request_type": request.__class__.__name__, - "response_type": "ListTableUsersResponse" + "response_type": "ShowEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3723,10 +3727,8 @@ def _list_table_users_http_info(self, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -3756,33 +3758,31 @@ def _list_table_users_http_info(self, request): return http_info - def register_authorized_queue_async(self, request): - """队列赋权 + def show_enhanced_connection_privilege_async(self, request): + """查询增强型跨源授权信息 - 该API用于与其他用户共享指定的队列,可以给用户赋使用指定的队列的权限或者收回使用权限。 + 该API用于查询增强型跨源连接授权的信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RegisterAuthorizedQueue - :type request: :class:`huaweicloudsdkdli.v1.RegisterAuthorizedQueueRequest` - :rtype: :class:`huaweicloudsdkdli.v1.RegisterAuthorizedQueueResponse` + :param request: Request instance for ShowEnhancedConnectionPrivilege + :type request: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionPrivilegeRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionPrivilegeResponse` """ - warnings.warn("Method 'register_authorized_queue_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._register_authorized_queue_http_info(request) + http_info = self._show_enhanced_connection_privilege_http_info(request) return self._call_api(**http_info) - def register_authorized_queue_async_invoker(self, request): - warnings.warn("Method 'register_authorized_queue_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._register_authorized_queue_http_info(request) + def show_enhanced_connection_privilege_async_invoker(self, request): + http_info = self._show_enhanced_connection_privilege_http_info(request) return AsyncInvoker(self, http_info) - def _register_authorized_queue_http_info(self, request): + def _show_enhanced_connection_privilege_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/queues/user-authorization", + "method": "GET", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/privileges", "request_type": request.__class__.__name__, - "response_type": "RegisterAuthorizedQueueResponse" + "response_type": "ShowEnhancedConnectionPrivilegeResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3792,6 +3792,8 @@ def _register_authorized_queue_http_info(self, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -3800,8 +3802,6 @@ def _register_authorized_queue_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3823,31 +3823,31 @@ def _register_authorized_queue_http_info(self, request): return http_info - def run_authorization_action_async(self, request): - """数据赋权(用户、项目) + def show_queue_async(self, request): + """查询队列详情 - 该API用于将DLI资源权限赋给、回收、更新指定的其他用户或项目。 + 该API用于列出该project下指定的队列详情。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RunAuthorizationAction - :type request: :class:`huaweicloudsdkdli.v1.RunAuthorizationActionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.RunAuthorizationActionResponse` + :param request: Request instance for ShowQueue + :type request: :class:`huaweicloudsdkdli.v1.ShowQueueRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowQueueResponse` """ - http_info = self._run_authorization_action_http_info(request) + http_info = self._show_queue_http_info(request) return self._call_api(**http_info) - def run_authorization_action_async_invoker(self, request): - http_info = self._run_authorization_action_http_info(request) + def show_queue_async_invoker(self, request): + http_info = self._show_queue_http_info(request) return AsyncInvoker(self, http_info) - def _run_authorization_action_http_info(self, request): + def _show_queue_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/authorization", + "method": "GET", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}", "request_type": request.__class__.__name__, - "response_type": "RunAuthorizationActionResponse" + "response_type": "ShowQueueResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3857,6 +3857,8 @@ def _run_authorization_action_http_info(self, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -3865,8 +3867,6 @@ def _run_authorization_action_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3888,31 +3888,31 @@ def _run_authorization_action_http_info(self, request): return http_info - def run_queue_action_async(self, request): - """重启/扩容/缩容队列 + def show_quota_async(self, request): + """查询配额 - 该功能用于重新启动队列、扩容队列、缩容队列。 + 该API用于获取用户配额信息列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RunQueueAction - :type request: :class:`huaweicloudsdkdli.v1.RunQueueActionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.RunQueueActionResponse` + :param request: Request instance for ShowQuota + :type request: :class:`huaweicloudsdkdli.v1.ShowQuotaRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowQuotaResponse` """ - http_info = self._run_queue_action_http_info(request) + http_info = self._show_quota_http_info(request) return self._call_api(**http_info) - def run_queue_action_async_invoker(self, request): - http_info = self._run_queue_action_http_info(request) + def show_quota_async_invoker(self, request): + http_info = self._show_quota_http_info(request) return AsyncInvoker(self, http_info) - def _run_queue_action_http_info(self, request): + def _show_quota_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}/action", + "method": "GET", + "resource_path": "/v3/{project_id}/quotas", "request_type": request.__class__.__name__, - "response_type": "RunQueueActionResponse" + "response_type": "ShowQuotaResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3922,8 +3922,6 @@ def _run_queue_action_http_info(self, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -3932,8 +3930,6 @@ def _run_queue_action_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3955,31 +3951,33 @@ def _run_queue_action_http_info(self, request): return http_info - def show_connectivity_task_async(self, request): - """查询指定地址连通性测试详情 + def show_resource_info_async(self, request): + """查看组内资源包 - 该API用于在连通性测试提交后查询连通性结果。 + 该API用于查看某个project某个分组下的具体资源信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowConnectivityTask - :type request: :class:`huaweicloudsdkdli.v1.ShowConnectivityTaskRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowConnectivityTaskResponse` + :param request: Request instance for ShowResourceInfo + :type request: :class:`huaweicloudsdkdli.v1.ShowResourceInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowResourceInfoResponse` """ - http_info = self._show_connectivity_task_http_info(request) + warnings.warn("Method 'show_resource_info_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_resource_info_http_info(request) return self._call_api(**http_info) - def show_connectivity_task_async_invoker(self, request): - http_info = self._show_connectivity_task_http_info(request) + def show_resource_info_async_invoker(self, request): + warnings.warn("Method 'show_resource_info_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_resource_info_http_info(request) return AsyncInvoker(self, http_info) - def _show_connectivity_task_http_info(self, request): + def _show_resource_info_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}/connection-test/{task_id}", + "resource_path": "/v2.0/{project_id}/resources/{resource_name}", "request_type": request.__class__.__name__, - "response_type": "ShowConnectivityTaskResponse" + "response_type": "ShowResourceInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3989,12 +3987,12 @@ def _show_connectivity_task_http_info(self, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] - if 'task_id' in local_var_params: - path_params['task_id'] = local_var_params['task_id'] + if 'resource_name' in local_var_params: + path_params['resource_name'] = local_var_params['resource_name'] query_params = [] + if 'group' in local_var_params: + query_params.append(('group', local_var_params['group'])) header_params = {} @@ -4022,33 +4020,33 @@ def _show_connectivity_task_http_info(self, request): return http_info - def show_datasource_connection_async(self, request): - """查询经典型跨源连接 + def update_auth_info_async(self, request): + """更新跨源认证 - 该API用于查询该用户指定的已创建的经典型跨源连接。 + 该API用于更新跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDatasourceConnection - :type request: :class:`huaweicloudsdkdli.v1.ShowDatasourceConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowDatasourceConnectionResponse` + :param request: Request instance for UpdateAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.UpdateAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateAuthInfoResponse` """ - warnings.warn("Method 'show_datasource_connection_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_datasource_connection_http_info(request) + warnings.warn("Method 'update_auth_info_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_auth_info_http_info(request) return self._call_api(**http_info) - def show_datasource_connection_async_invoker(self, request): - warnings.warn("Method 'show_datasource_connection_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_datasource_connection_http_info(request) + def update_auth_info_async_invoker(self, request): + warnings.warn("Method 'update_auth_info_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_auth_info_http_info(request) return AsyncInvoker(self, http_info) - def _show_datasource_connection_http_info(self, request): + def _update_auth_info_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource-connection/{connection_id}", + "method": "PUT", + "resource_path": "/v2.0/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "ShowDatasourceConnectionResponse" + "response_type": "UpdateAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4058,8 +4056,6 @@ def _show_datasource_connection_http_info(self, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -4068,6 +4064,8 @@ def _show_datasource_connection_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4089,33 +4087,31 @@ def _show_datasource_connection_http_info(self, request): return http_info - def show_dli_agency_async(self, request): - """获取dli委托信息 + def update_elastic_resource_pool_async(self, request): + """修改弹性资源池信息 - 获取dli委托信息 + 修改弹性资源池信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDliAgency - :type request: :class:`huaweicloudsdkdli.v1.ShowDliAgencyRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowDliAgencyResponse` + :param request: Request instance for UpdateElasticResourcePool + :type request: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolResponse` """ - warnings.warn("Method 'show_dli_agency_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_dli_agency_http_info(request) + http_info = self._update_elastic_resource_pool_http_info(request) return self._call_api(**http_info) - def show_dli_agency_async_invoker(self, request): - warnings.warn("Method 'show_dli_agency_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_dli_agency_http_info(request) + def update_elastic_resource_pool_async_invoker(self, request): + http_info = self._update_elastic_resource_pool_http_info(request) return AsyncInvoker(self, http_info) - def _show_dli_agency_http_info(self, request): + def _update_elastic_resource_pool_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v2/{project_id}/agency", + "method": "PUT", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}", "request_type": request.__class__.__name__, - "response_type": "ShowDliAgencyResponse" + "response_type": "UpdateElasticResourcePoolResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4125,6 +4121,8 @@ def _show_dli_agency_http_info(self, request): collection_formats = {} path_params = {} + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] @@ -4133,6 +4131,8 @@ def _show_dli_agency_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4154,31 +4154,31 @@ def _show_dli_agency_http_info(self, request): return http_info - def show_enhanced_connection_async(self, request): - """查询增强型跨源连接 + def update_elastic_resource_pool_queue_async(self, request): + """修改弹性资源池关联的队列优先级 - 该API用于查询该用户指定的已创建的增强型跨源连接。 + 设置弹性资源池指定队列的扩缩容策略信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionResponse` + :param request: Request instance for UpdateElasticResourcePoolQueue + :type request: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolQueueRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolQueueResponse` """ - http_info = self._show_enhanced_connection_http_info(request) + http_info = self._update_elastic_resource_pool_queue_http_info(request) return self._call_api(**http_info) - def show_enhanced_connection_async_invoker(self, request): - http_info = self._show_enhanced_connection_http_info(request) + def update_elastic_resource_pool_queue_async_invoker(self, request): + http_info = self._update_elastic_resource_pool_queue_http_info(request) return AsyncInvoker(self, http_info) - def _show_enhanced_connection_http_info(self, request): + def _update_elastic_resource_pool_queue_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", + "method": "PUT", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues/{queue_name}", "request_type": request.__class__.__name__, - "response_type": "ShowEnhancedConnectionResponse" + "response_type": "UpdateElasticResourcePoolQueueResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4188,8 +4188,10 @@ def _show_enhanced_connection_http_info(self, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -4198,6 +4200,8 @@ def _show_enhanced_connection_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4219,31 +4223,31 @@ def _show_enhanced_connection_http_info(self, request): return http_info - def show_enhanced_connection_privilege_async(self, request): - """查询增强型跨源授权信息 + def update_enhanced_connection_async(self, request): + """修改增强型跨源主机信息 - 该API用于查询增强型跨源连接授权的信息。 + 该API用于在跨源中修改数据源主机信息,仅支持全量覆盖。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowEnhancedConnectionPrivilege - :type request: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionPrivilegeRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionPrivilegeResponse` + :param request: Request instance for UpdateEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.UpdateEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateEnhancedConnectionResponse` """ - http_info = self._show_enhanced_connection_privilege_http_info(request) + http_info = self._update_enhanced_connection_http_info(request) return self._call_api(**http_info) - def show_enhanced_connection_privilege_async_invoker(self, request): - http_info = self._show_enhanced_connection_privilege_http_info(request) + def update_enhanced_connection_async_invoker(self, request): + http_info = self._update_enhanced_connection_http_info(request) return AsyncInvoker(self, http_info) - def _show_enhanced_connection_privilege_http_info(self, request): + def _update_enhanced_connection_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/privileges", + "method": "PUT", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", "request_type": request.__class__.__name__, - "response_type": "ShowEnhancedConnectionPrivilegeResponse" + "response_type": "UpdateEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4263,6 +4267,8 @@ def _show_enhanced_connection_privilege_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4284,31 +4290,31 @@ def _show_enhanced_connection_privilege_http_info(self, request): return http_info - def show_queue_async(self, request): - """查询队列详情 + def update_global_variable_async(self, request): + """修改DLI全局变量 - 该API用于列出该project下指定的队列详情。 + 修改全局变量。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowQueue - :type request: :class:`huaweicloudsdkdli.v1.ShowQueueRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowQueueResponse` + :param request: Request instance for UpdateGlobalVariable + :type request: :class:`huaweicloudsdkdli.v1.UpdateGlobalVariableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateGlobalVariableResponse` """ - http_info = self._show_queue_http_info(request) + http_info = self._update_global_variable_http_info(request) return self._call_api(**http_info) - def show_queue_async_invoker(self, request): - http_info = self._show_queue_http_info(request) + def update_global_variable_async_invoker(self, request): + http_info = self._update_global_variable_http_info(request) return AsyncInvoker(self, http_info) - def _show_queue_http_info(self, request): + def _update_global_variable_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/variables/{var_name}", "request_type": request.__class__.__name__, - "response_type": "ShowQueueResponse" + "response_type": "UpdateGlobalVariableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4318,8 +4324,8 @@ def _show_queue_http_info(self, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] + if 'var_name' in local_var_params: + path_params['var_name'] = local_var_params['var_name'] query_params = [] @@ -4328,6 +4334,8 @@ def _show_queue_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4349,31 +4357,33 @@ def _show_queue_http_info(self, request): return http_info - def show_quota_async(self, request): - """查询配额 + def update_group_or_resource_owner_async(self, request): + """修改组或者资源包拥有者 - 该API用于获取用户配额信息列表。 + 用于修改程序包的owner。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowQuota - :type request: :class:`huaweicloudsdkdli.v1.ShowQuotaRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowQuotaResponse` + :param request: Request instance for UpdateGroupOrResourceOwner + :type request: :class:`huaweicloudsdkdli.v1.UpdateGroupOrResourceOwnerRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateGroupOrResourceOwnerResponse` """ - http_info = self._show_quota_http_info(request) + warnings.warn("Method 'update_group_or_resource_owner_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_group_or_resource_owner_http_info(request) return self._call_api(**http_info) - def show_quota_async_invoker(self, request): - http_info = self._show_quota_http_info(request) + def update_group_or_resource_owner_async_invoker(self, request): + warnings.warn("Method 'update_group_or_resource_owner_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_group_or_resource_owner_http_info(request) return AsyncInvoker(self, http_info) - def _show_quota_http_info(self, request): + def _update_group_or_resource_owner_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/quotas", + "method": "PUT", + "resource_path": "/v2.0/{project_id}/resources/owner", "request_type": request.__class__.__name__, - "response_type": "ShowQuotaResponse" + "response_type": "UpdateGroupOrResourceOwnerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4391,6 +4401,8 @@ def _show_quota_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4412,33 +4424,31 @@ def _show_quota_http_info(self, request): return http_info - def show_resource_info_async(self, request): - """查看组内资源包 + def update_job_auth_info_async(self, request): + """更新跨源认证 - 该API用于查看某个project某个分组下的具体资源信息。 + 该API用于更新跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowResourceInfo - :type request: :class:`huaweicloudsdkdli.v1.ShowResourceInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowResourceInfoResponse` + :param request: Request instance for UpdateJobAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.UpdateJobAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateJobAuthInfoResponse` """ - warnings.warn("Method 'show_resource_info_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_resource_info_http_info(request) + http_info = self._update_job_auth_info_http_info(request) return self._call_api(**http_info) - def show_resource_info_async_invoker(self, request): - warnings.warn("Method 'show_resource_info_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_resource_info_http_info(request) + def update_job_auth_info_async_invoker(self, request): + http_info = self._update_job_auth_info_http_info(request) return AsyncInvoker(self, http_info) - def _show_resource_info_http_info(self, request): + def _update_job_auth_info_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v2.0/{project_id}/resources/{resource_name}", + "method": "PUT", + "resource_path": "/v3/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "ShowResourceInfoResponse" + "response_type": "UpdateJobAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4448,18 +4458,16 @@ def _show_resource_info_http_info(self, request): collection_formats = {} path_params = {} - if 'resource_name' in local_var_params: - path_params['resource_name'] = local_var_params['resource_name'] query_params = [] - if 'group' in local_var_params: - query_params.append(('group', local_var_params['group'])) 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() @@ -4481,33 +4489,35 @@ def _show_resource_info_http_info(self, request): return http_info - def update_auth_info_async(self, request): - """更新跨源认证 + def update_queue_cidr_async(self, request): + """修改队列网段 - 该API用于更新跨源认证信息。 + 该功能用于修改包年包月队列网段。 + 说明: + 如果待修改网段的队列中有正在提交或正在运行的作业,或者改队列已经绑定了增强型跨源,将不支持修改网段操作。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.UpdateAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateAuthInfoResponse` + :param request: Request instance for UpdateQueueCidr + :type request: :class:`huaweicloudsdkdli.v1.UpdateQueueCidrRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateQueueCidrResponse` """ - warnings.warn("Method 'update_auth_info_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_auth_info_http_info(request) + warnings.warn("Method 'update_queue_cidr_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_queue_cidr_http_info(request) return self._call_api(**http_info) - def update_auth_info_async_invoker(self, request): - warnings.warn("Method 'update_auth_info_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_auth_info_http_info(request) + def update_queue_cidr_async_invoker(self, request): + warnings.warn("Method 'update_queue_cidr_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_queue_cidr_http_info(request) return AsyncInvoker(self, http_info) - def _update_auth_info_http_info(self, request): + def _update_queue_cidr_http_info(self, request): http_info = { "method": "PUT", - "resource_path": "/v2.0/{project_id}/datasource/auth-infos", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}", "request_type": request.__class__.__name__, - "response_type": "UpdateAuthInfoResponse" + "response_type": "UpdateQueueCidrResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4517,6 +4527,8 @@ def _update_auth_info_http_info(self, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -4548,31 +4560,31 @@ def _update_auth_info_http_info(self, request): return http_info - def update_elastic_resource_pool_async(self, request): - """修改弹性资源池信息 + def update_queue_property_async(self, request): + """更新队列属性 - 修改弹性资源池信息 + 更新队列属性 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateElasticResourcePool - :type request: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolResponse` + :param request: Request instance for UpdateQueueProperty + :type request: :class:`huaweicloudsdkdli.v1.UpdateQueuePropertyRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateQueuePropertyResponse` """ - http_info = self._update_elastic_resource_pool_http_info(request) + http_info = self._update_queue_property_http_info(request) return self._call_api(**http_info) - def update_elastic_resource_pool_async_invoker(self, request): - http_info = self._update_elastic_resource_pool_http_info(request) + def update_queue_property_async_invoker(self, request): + http_info = self._update_queue_property_http_info(request) return AsyncInvoker(self, http_info) - def _update_elastic_resource_pool_http_info(self, request): + def _update_queue_property_http_info(self, request): http_info = { "method": "PUT", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}", + "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", "request_type": request.__class__.__name__, - "response_type": "UpdateElasticResourcePoolResponse" + "response_type": "UpdateQueuePropertyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4582,8 +4594,8 @@ def _update_elastic_resource_pool_http_info(self, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -4615,31 +4627,34 @@ def _update_elastic_resource_pool_http_info(self, request): return http_info - def update_elastic_resource_pool_queue_async(self, request): - """修改弹性资源池关联的队列优先级 + def upload_files_async(self, request): + """上传file类型分组资源 - 设置弹性资源池指定队列的扩缩容策略信息。 + 该API用于在project下上传file类型模块。 + 说明: 上传同名file模块时,新模块将会覆盖旧模块。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateElasticResourcePoolQueue - :type request: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolQueueRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolQueueResponse` + :param request: Request instance for UploadFiles + :type request: :class:`huaweicloudsdkdli.v1.UploadFilesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UploadFilesResponse` """ - http_info = self._update_elastic_resource_pool_queue_http_info(request) + warnings.warn("Method 'upload_files_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_files_http_info(request) return self._call_api(**http_info) - def update_elastic_resource_pool_queue_async_invoker(self, request): - http_info = self._update_elastic_resource_pool_queue_http_info(request) + def upload_files_async_invoker(self, request): + warnings.warn("Method 'upload_files_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_files_http_info(request) return AsyncInvoker(self, http_info) - def _update_elastic_resource_pool_queue_http_info(self, request): + def _upload_files_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues/{queue_name}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/resources/files", "request_type": request.__class__.__name__, - "response_type": "UpdateElasticResourcePoolQueueResponse" + "response_type": "UploadFilesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4649,14 +4664,12 @@ def _update_elastic_resource_pool_queue_http_info(self, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] header_params = {} + if 'user_id' in local_var_params: + header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -4684,31 +4697,34 @@ def _update_elastic_resource_pool_queue_http_info(self, request): return http_info - def update_enhanced_connection_async(self, request): - """修改增强型跨源主机信息 + def upload_jars_async(self, request): + """上传jar类型分组资源 - 该API用于在跨源中修改数据源主机信息,仅支持全量覆盖。 + 该API用于在project下上传jar类型分组资源。 + 说明:上传同名资源模块时,新模块将会覆盖旧模块。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.UpdateEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateEnhancedConnectionResponse` + :param request: Request instance for UploadJars + :type request: :class:`huaweicloudsdkdli.v1.UploadJarsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UploadJarsResponse` """ - http_info = self._update_enhanced_connection_http_info(request) + warnings.warn("Method 'upload_jars_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_jars_http_info(request) return self._call_api(**http_info) - def update_enhanced_connection_async_invoker(self, request): - http_info = self._update_enhanced_connection_http_info(request) + def upload_jars_async_invoker(self, request): + warnings.warn("Method 'upload_jars_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_jars_http_info(request) return AsyncInvoker(self, http_info) - def _update_enhanced_connection_http_info(self, request): + def _upload_jars_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/resources/jars", "request_type": request.__class__.__name__, - "response_type": "UpdateEnhancedConnectionResponse" + "response_type": "UploadJarsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4718,12 +4734,12 @@ def _update_enhanced_connection_http_info(self, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] query_params = [] header_params = {} + if 'user_id' in local_var_params: + header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -4751,31 +4767,34 @@ def _update_enhanced_connection_http_info(self, request): return http_info - def update_global_variable_async(self, request): - """修改DLI全局变量 + def upload_python_files_async(self, request): + """上传pyfile类型分组资源 - 修改全局变量。 + 该API用于在project下的上传pyfile类型模块。 + 说明: 上传同名pyfile类型模块时,新模块将会覆盖旧模块。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateGlobalVariable - :type request: :class:`huaweicloudsdkdli.v1.UpdateGlobalVariableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateGlobalVariableResponse` + :param request: Request instance for UploadPythonFiles + :type request: :class:`huaweicloudsdkdli.v1.UploadPythonFilesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UploadPythonFilesResponse` """ - http_info = self._update_global_variable_http_info(request) + warnings.warn("Method 'upload_python_files_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_python_files_http_info(request) return self._call_api(**http_info) - def update_global_variable_async_invoker(self, request): - http_info = self._update_global_variable_http_info(request) + def upload_python_files_async_invoker(self, request): + warnings.warn("Method 'upload_python_files_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_python_files_http_info(request) return AsyncInvoker(self, http_info) - def _update_global_variable_http_info(self, request): + def _upload_python_files_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/variables/{var_name}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/resources/pyfiles", "request_type": request.__class__.__name__, - "response_type": "UpdateGlobalVariableResponse" + "response_type": "UploadPythonFilesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4785,12 +4804,12 @@ def _update_global_variable_http_info(self, request): collection_formats = {} path_params = {} - if 'var_name' in local_var_params: - path_params['var_name'] = local_var_params['var_name'] query_params = [] header_params = {} + if 'user_id' in local_var_params: + header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -4818,33 +4837,33 @@ def _update_global_variable_http_info(self, request): return http_info - def update_group_or_resource_owner_async(self, request): - """修改组或者资源包拥有者 - - 用于修改程序包的owner。 + def upload_resources_async(self, request): + """上传分组资源 + + 该API用于上传分组资源到某个project下。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateGroupOrResourceOwner - :type request: :class:`huaweicloudsdkdli.v1.UpdateGroupOrResourceOwnerRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateGroupOrResourceOwnerResponse` + :param request: Request instance for UploadResources + :type request: :class:`huaweicloudsdkdli.v1.UploadResourcesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UploadResourcesResponse` """ - warnings.warn("Method 'update_group_or_resource_owner_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_group_or_resource_owner_http_info(request) + warnings.warn("Method 'upload_resources_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_resources_http_info(request) return self._call_api(**http_info) - def update_group_or_resource_owner_async_invoker(self, request): - warnings.warn("Method 'update_group_or_resource_owner_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_group_or_resource_owner_http_info(request) + def upload_resources_async_invoker(self, request): + warnings.warn("Method 'upload_resources_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_resources_http_info(request) return AsyncInvoker(self, http_info) - def _update_group_or_resource_owner_http_info(self, request): + def _upload_resources_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v2.0/{project_id}/resources/owner", + "method": "POST", + "resource_path": "/v2.0/{project_id}/resources", "request_type": request.__class__.__name__, - "response_type": "UpdateGroupOrResourceOwnerResponse" + "response_type": "UploadResourcesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4858,6 +4877,8 @@ def _update_group_or_resource_owner_http_info(self, request): query_params = [] header_params = {} + if 'user_id' in local_var_params: + header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -4885,31 +4906,31 @@ def _update_group_or_resource_owner_http_info(self, request): return http_info - def update_job_auth_info_async(self, request): - """更新跨源认证 + def batch_delete_flink_jobs_async(self, request): + """批量删除Flink作业 - 该API用于更新跨源认证信息。 + 批量删除任何状态的作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateJobAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.UpdateJobAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateJobAuthInfoResponse` + :param request: Request instance for BatchDeleteFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteFlinkJobsResponse` """ - http_info = self._update_job_auth_info_http_info(request) + http_info = self._batch_delete_flink_jobs_http_info(request) return self._call_api(**http_info) - def update_job_auth_info_async_invoker(self, request): - http_info = self._update_job_auth_info_http_info(request) + def batch_delete_flink_jobs_async_invoker(self, request): + http_info = self._batch_delete_flink_jobs_http_info(request) return AsyncInvoker(self, http_info) - def _update_job_auth_info_http_info(self, request): + def _batch_delete_flink_jobs_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/datasource/auth-infos", + "method": "POST", + "resource_path": "/v1.0/{project_id}/streaming/jobs/delete", "request_type": request.__class__.__name__, - "response_type": "UpdateJobAuthInfoResponse" + "response_type": "BatchDeleteFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4950,35 +4971,31 @@ def _update_job_auth_info_http_info(self, request): return http_info - def update_queue_cidr_async(self, request): - """修改队列网段 + def batch_run_flink_jobs_async(self, request): + """批量运行Flink作业 - 该功能用于修改包年包月队列网段。 - 说明: - 如果待修改网段的队列中有正在提交或正在运行的作业,或者改队列已经绑定了增强型跨源,将不支持修改网段操作。 + 触发批量运行Flink作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateQueueCidr - :type request: :class:`huaweicloudsdkdli.v1.UpdateQueueCidrRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateQueueCidrResponse` + :param request: Request instance for BatchRunFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.BatchRunFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.BatchRunFlinkJobsResponse` """ - warnings.warn("Method 'update_queue_cidr_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_queue_cidr_http_info(request) + http_info = self._batch_run_flink_jobs_http_info(request) return self._call_api(**http_info) - def update_queue_cidr_async_invoker(self, request): - warnings.warn("Method 'update_queue_cidr_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_queue_cidr_http_info(request) + def batch_run_flink_jobs_async_invoker(self, request): + http_info = self._batch_run_flink_jobs_http_info(request) return AsyncInvoker(self, http_info) - def _update_queue_cidr_http_info(self, request): + def _batch_run_flink_jobs_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}", + "method": "POST", + "resource_path": "/v1.0/{project_id}/streaming/jobs/run", "request_type": request.__class__.__name__, - "response_type": "UpdateQueueCidrResponse" + "response_type": "BatchRunFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4988,8 +5005,6 @@ def _update_queue_cidr_http_info(self, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -5021,31 +5036,33 @@ def _update_queue_cidr_http_info(self, request): return http_info - def update_queue_property_async(self, request): - """更新队列属性 + def change_flink_job_status_report_async(self, request): + """边缘Flink作业状态信息上报 - 更新队列属性 + 该API用于处理边缘Flink作业状态上报信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateQueueProperty - :type request: :class:`huaweicloudsdkdli.v1.UpdateQueuePropertyRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateQueuePropertyResponse` + :param request: Request instance for ChangeFlinkJobStatusReport + :type request: :class:`huaweicloudsdkdli.v1.ChangeFlinkJobStatusReportRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ChangeFlinkJobStatusReportResponse` """ - http_info = self._update_queue_property_http_info(request) + warnings.warn("Method 'change_flink_job_status_report_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_flink_job_status_report_http_info(request) return self._call_api(**http_info) - def update_queue_property_async_invoker(self, request): - http_info = self._update_queue_property_http_info(request) + def change_flink_job_status_report_async_invoker(self, request): + warnings.warn("Method 'change_flink_job_status_report_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_flink_job_status_report_http_info(request) return AsyncInvoker(self, http_info) - def _update_queue_property_http_info(self, request): + def _change_flink_job_status_report_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", + "method": "POST", + "resource_path": "/v1/{project_id}/edgesrv/job-report", "request_type": request.__class__.__name__, - "response_type": "UpdateQueuePropertyResponse" + "response_type": "ChangeFlinkJobStatusReportResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5055,8 +5072,6 @@ def _update_queue_property_http_info(self, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -5088,34 +5103,31 @@ def _update_queue_property_http_info(self, request): return http_info - def upload_files_async(self, request): - """上传file类型分组资源 + def create_flink_jar_job_async(self, request): + """新建Flink Jar作业 - 该API用于在project下上传file类型模块。 - 说明: 上传同名file模块时,新模块将会覆盖旧模块。 + 用户自定义作业目前支持jar格式,运行在独享集群中。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UploadFiles - :type request: :class:`huaweicloudsdkdli.v1.UploadFilesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UploadFilesResponse` + :param request: Request instance for CreateFlinkJarJob + :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkJarJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkJarJobResponse` """ - warnings.warn("Method 'upload_files_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_files_http_info(request) + http_info = self._create_flink_jar_job_http_info(request) return self._call_api(**http_info) - def upload_files_async_invoker(self, request): - warnings.warn("Method 'upload_files_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_files_http_info(request) + def create_flink_jar_job_async_invoker(self, request): + http_info = self._create_flink_jar_job_http_info(request) return AsyncInvoker(self, http_info) - def _upload_files_http_info(self, request): + def _create_flink_jar_job_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/resources/files", + "resource_path": "/v1.0/{project_id}/streaming/flink-jobs", "request_type": request.__class__.__name__, - "response_type": "UploadFilesResponse" + "response_type": "CreateFlinkJarJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5129,8 +5141,6 @@ def _upload_files_http_info(self, request): query_params = [] header_params = {} - if 'user_id' in local_var_params: - header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -5158,34 +5168,31 @@ def _upload_files_http_info(self, request): return http_info - def upload_jars_async(self, request): - """上传jar类型分组资源 + def create_flink_sql_job_async(self, request): + """新建Flink SQL作业 - 该API用于在project下上传jar类型分组资源。 - 说明:上传同名资源模块时,新模块将会覆盖旧模块。 + 通过POST方式,提交流式SQL作业,请求体为JSON格式。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UploadJars - :type request: :class:`huaweicloudsdkdli.v1.UploadJarsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UploadJarsResponse` + :param request: Request instance for CreateFlinkSqlJob + :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobResponse` """ - warnings.warn("Method 'upload_jars_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_jars_http_info(request) + http_info = self._create_flink_sql_job_http_info(request) return self._call_api(**http_info) - def upload_jars_async_invoker(self, request): - warnings.warn("Method 'upload_jars_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_jars_http_info(request) + def create_flink_sql_job_async_invoker(self, request): + http_info = self._create_flink_sql_job_http_info(request) return AsyncInvoker(self, http_info) - def _upload_jars_http_info(self, request): + def _create_flink_sql_job_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/resources/jars", + "resource_path": "/v1.0/{project_id}/streaming/sql-jobs", "request_type": request.__class__.__name__, - "response_type": "UploadJarsResponse" + "response_type": "CreateFlinkSqlJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5199,8 +5206,6 @@ def _upload_jars_http_info(self, request): query_params = [] header_params = {} - if 'user_id' in local_var_params: - header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -5228,34 +5233,31 @@ def _upload_jars_http_info(self, request): return http_info - def upload_python_files_async(self, request): - """上传pyfile类型分组资源 + def create_flink_sql_job_graph_async(self, request): + """生成flink SQL作业的静态流图 - 该API用于在project下的上传pyfile类型模块。 - 说明: 上传同名pyfile类型模块时,新模块将会覆盖旧模块。 + 生成flink SQL作业的静态流图 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UploadPythonFiles - :type request: :class:`huaweicloudsdkdli.v1.UploadPythonFilesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UploadPythonFilesResponse` + :param request: Request instance for CreateFlinkSqlJobGraph + :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobGraphRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobGraphResponse` """ - warnings.warn("Method 'upload_python_files_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_python_files_http_info(request) + http_info = self._create_flink_sql_job_graph_http_info(request) return self._call_api(**http_info) - def upload_python_files_async_invoker(self, request): - warnings.warn("Method 'upload_python_files_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_python_files_http_info(request) + def create_flink_sql_job_graph_async_invoker(self, request): + http_info = self._create_flink_sql_job_graph_http_info(request) return AsyncInvoker(self, http_info) - def _upload_python_files_http_info(self, request): + def _create_flink_sql_job_graph_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/resources/pyfiles", + "resource_path": "/v3/{project_id}/streaming/jobs/{job_id}/gen-graph", "request_type": request.__class__.__name__, - "response_type": "UploadPythonFilesResponse" + "response_type": "CreateFlinkSqlJobGraphResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5265,12 +5267,12 @@ def _upload_python_files_http_info(self, request): 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 'user_id' in local_var_params: - header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -5298,33 +5300,31 @@ def _upload_python_files_http_info(self, request): return http_info - def upload_resources_async(self, request): - """上传分组资源 + def create_flink_sql_job_template_async(self, request): + """新建Flink作业模板 - 该API用于上传分组资源到某个project下。 + 在DLI服务中新建一个Flink作业模板,最多100个。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UploadResources - :type request: :class:`huaweicloudsdkdli.v1.UploadResourcesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UploadResourcesResponse` + :param request: Request instance for CreateFlinkSqlJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobTemplateResponse` """ - warnings.warn("Method 'upload_resources_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_resources_http_info(request) + http_info = self._create_flink_sql_job_template_http_info(request) return self._call_api(**http_info) - def upload_resources_async_invoker(self, request): - warnings.warn("Method 'upload_resources_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_resources_http_info(request) + def create_flink_sql_job_template_async_invoker(self, request): + http_info = self._create_flink_sql_job_template_http_info(request) return AsyncInvoker(self, http_info) - def _upload_resources_http_info(self, request): + def _create_flink_sql_job_template_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/resources", + "resource_path": "/v1.0/{project_id}/streaming/job-templates", "request_type": request.__class__.__name__, - "response_type": "UploadResourcesResponse" + "response_type": "CreateFlinkSqlJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5338,8 +5338,6 @@ def _upload_resources_http_info(self, request): query_params = [] header_params = {} - if 'user_id' in local_var_params: - header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -5367,31 +5365,33 @@ def _upload_resources_http_info(self, request): return http_info - def batch_delete_flink_jobs_async(self, request): - """批量删除Flink作业 + def create_ief_message_channel_async(self, request): + """创建IEF消息通道 - 批量删除任何状态的作业。 + 该API用于创建IEF消息通道 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchDeleteFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteFlinkJobsResponse` + :param request: Request instance for CreateIefMessageChannel + :type request: :class:`huaweicloudsdkdli.v1.CreateIefMessageChannelRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateIefMessageChannelResponse` """ - http_info = self._batch_delete_flink_jobs_http_info(request) + warnings.warn("Method 'create_ief_message_channel_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_ief_message_channel_http_info(request) return self._call_api(**http_info) - def batch_delete_flink_jobs_async_invoker(self, request): - http_info = self._batch_delete_flink_jobs_http_info(request) + def create_ief_message_channel_async_invoker(self, request): + warnings.warn("Method 'create_ief_message_channel_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_ief_message_channel_http_info(request) return AsyncInvoker(self, http_info) - def _batch_delete_flink_jobs_http_info(self, request): + def _create_ief_message_channel_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/delete", + "resource_path": "/v1/{project_id}/edgesrv/message-channel", "request_type": request.__class__.__name__, - "response_type": "BatchDeleteFlinkJobsResponse" + "response_type": "CreateIefMessageChannelResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5432,31 +5432,33 @@ def _batch_delete_flink_jobs_http_info(self, request): return http_info - def batch_run_flink_jobs_async(self, request): - """批量运行Flink作业 + def create_ief_system_events_async(self, request): + """IEF系统事件上报 - 触发批量运行Flink作业。 + 该API用于处理IEF系统事件上报 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchRunFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.BatchRunFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.BatchRunFlinkJobsResponse` + :param request: Request instance for CreateIefSystemEvents + :type request: :class:`huaweicloudsdkdli.v1.CreateIefSystemEventsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateIefSystemEventsResponse` """ - http_info = self._batch_run_flink_jobs_http_info(request) + warnings.warn("Method 'create_ief_system_events_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_ief_system_events_http_info(request) return self._call_api(**http_info) - def batch_run_flink_jobs_async_invoker(self, request): - http_info = self._batch_run_flink_jobs_http_info(request) + def create_ief_system_events_async_invoker(self, request): + warnings.warn("Method 'create_ief_system_events_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_ief_system_events_http_info(request) return AsyncInvoker(self, http_info) - def _batch_run_flink_jobs_http_info(self, request): + def _create_ief_system_events_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/run", + "resource_path": "/v1/{project_id}/edgesrv/system-events", "request_type": request.__class__.__name__, - "response_type": "BatchRunFlinkJobsResponse" + "response_type": "CreateIefSystemEventsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5497,33 +5499,31 @@ def _batch_run_flink_jobs_http_info(self, request): return http_info - def change_flink_job_status_report_async(self, request): - """边缘Flink作业状态信息上报 + def delete_flink_job_async(self, request): + """删除作业 - 该API用于处理边缘Flink作业状态上报信息 + 删除任何状态的作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ChangeFlinkJobStatusReport - :type request: :class:`huaweicloudsdkdli.v1.ChangeFlinkJobStatusReportRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ChangeFlinkJobStatusReportResponse` + :param request: Request instance for DeleteFlinkJob + :type request: :class:`huaweicloudsdkdli.v1.DeleteFlinkJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteFlinkJobResponse` """ - warnings.warn("Method 'change_flink_job_status_report_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_flink_job_status_report_http_info(request) + http_info = self._delete_flink_job_http_info(request) return self._call_api(**http_info) - def change_flink_job_status_report_async_invoker(self, request): - warnings.warn("Method 'change_flink_job_status_report_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_flink_job_status_report_http_info(request) + def delete_flink_job_async_invoker(self, request): + http_info = self._delete_flink_job_http_info(request) return AsyncInvoker(self, http_info) - def _change_flink_job_status_report_http_info(self, request): + def _delete_flink_job_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/edgesrv/job-report", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "ChangeFlinkJobStatusReportResponse" + "response_type": "DeleteFlinkJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5533,6 +5533,8 @@ def _change_flink_job_status_report_http_info(self, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -5541,8 +5543,6 @@ def _change_flink_job_status_report_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -5564,31 +5564,31 @@ def _change_flink_job_status_report_http_info(self, request): return http_info - def create_flink_jar_job_async(self, request): - """新建Flink Jar作业 + def delete_flink_sql_job_template_async(self, request): + """删除Flink作业模板 - 用户自定义作业目前支持jar格式,运行在独享集群中。 + 删除一个Flink作业模板,即使当前模板正在被作业使用,也允许删除。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateFlinkJarJob - :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkJarJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkJarJobResponse` + :param request: Request instance for DeleteFlinkSqlJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.DeleteFlinkSqlJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteFlinkSqlJobTemplateResponse` """ - http_info = self._create_flink_jar_job_http_info(request) + http_info = self._delete_flink_sql_job_template_http_info(request) return self._call_api(**http_info) - def create_flink_jar_job_async_invoker(self, request): - http_info = self._create_flink_jar_job_http_info(request) + def delete_flink_sql_job_template_async_invoker(self, request): + http_info = self._delete_flink_sql_job_template_http_info(request) return AsyncInvoker(self, http_info) - def _create_flink_jar_job_http_info(self, request): + def _delete_flink_sql_job_template_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/flink-jobs", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/streaming/job-templates/{template_id}", "request_type": request.__class__.__name__, - "response_type": "CreateFlinkJarJobResponse" + "response_type": "DeleteFlinkSqlJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5598,6 +5598,8 @@ def _create_flink_jar_job_http_info(self, request): collection_formats = {} path_params = {} + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] query_params = [] @@ -5606,8 +5608,6 @@ def _create_flink_jar_job_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -5629,31 +5629,31 @@ def _create_flink_jar_job_http_info(self, request): return http_info - def create_flink_sql_job_async(self, request): - """新建Flink SQL作业 + def export_flink_jobs_async(self, request): + """flink作业导出 - 通过POST方式,提交流式SQL作业,请求体为JSON格式。 + 通过POST方式,导出flink作业,请求体为JSON格式。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateFlinkSqlJob - :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobResponse` + :param request: Request instance for ExportFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.ExportFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ExportFlinkJobsResponse` """ - http_info = self._create_flink_sql_job_http_info(request) + http_info = self._export_flink_jobs_http_info(request) return self._call_api(**http_info) - def create_flink_sql_job_async_invoker(self, request): - http_info = self._create_flink_sql_job_http_info(request) + def export_flink_jobs_async_invoker(self, request): + http_info = self._export_flink_jobs_http_info(request) return AsyncInvoker(self, http_info) - def _create_flink_sql_job_http_info(self, request): + def _export_flink_jobs_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/sql-jobs", + "resource_path": "/v1.0/{project_id}/streaming/jobs/export", "request_type": request.__class__.__name__, - "response_type": "CreateFlinkSqlJobResponse" + "response_type": "ExportFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5694,31 +5694,31 @@ def _create_flink_sql_job_http_info(self, request): return http_info - def create_flink_sql_job_graph_async(self, request): - """生成flink SQL作业的静态流图 + def import_flink_jobs_async(self, request): + """flink作业导入 - 生成flink SQL作业的静态流图 + 通过POST方式,导入flink作业,请求体为JSON格式。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateFlinkSqlJobGraph - :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobGraphRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobGraphResponse` + :param request: Request instance for ImportFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.ImportFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ImportFlinkJobsResponse` """ - http_info = self._create_flink_sql_job_graph_http_info(request) + http_info = self._import_flink_jobs_http_info(request) return self._call_api(**http_info) - def create_flink_sql_job_graph_async_invoker(self, request): - http_info = self._create_flink_sql_job_graph_http_info(request) + def import_flink_jobs_async_invoker(self, request): + http_info = self._import_flink_jobs_http_info(request) return AsyncInvoker(self, http_info) - def _create_flink_sql_job_graph_http_info(self, request): + def _import_flink_jobs_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v3/{project_id}/streaming/jobs/{job_id}/gen-graph", + "resource_path": "/v1.0/{project_id}/streaming/jobs/import", "request_type": request.__class__.__name__, - "response_type": "CreateFlinkSqlJobGraphResponse" + "response_type": "ImportFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5728,8 +5728,6 @@ def _create_flink_sql_job_graph_http_info(self, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -5761,31 +5759,31 @@ def _create_flink_sql_job_graph_http_info(self, request): return http_info - def create_flink_sql_job_template_async(self, request): - """新建Flink作业模板 + def list_flink_jobs_async(self, request): + """查询Flink作业列表 - 在DLI服务中新建一个Flink作业模板,最多100个。 + 查询当前用户的作业列表,可以根据作业ID作为ID,查询大于ID或小于ID的限定条数的作业,默认查询全部状态的作业,也可以设定运行中或其他状态条件。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateFlinkSqlJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobTemplateResponse` + :param request: Request instance for ListFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.ListFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListFlinkJobsResponse` """ - http_info = self._create_flink_sql_job_template_http_info(request) + http_info = self._list_flink_jobs_http_info(request) return self._call_api(**http_info) - def create_flink_sql_job_template_async_invoker(self, request): - http_info = self._create_flink_sql_job_template_http_info(request) + def list_flink_jobs_async_invoker(self, request): + http_info = self._list_flink_jobs_http_info(request) return AsyncInvoker(self, http_info) - def _create_flink_sql_job_template_http_info(self, request): + def _list_flink_jobs_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/job-templates", + "method": "GET", + "resource_path": "/v1.0/{project_id}/streaming/jobs", "request_type": request.__class__.__name__, - "response_type": "CreateFlinkSqlJobTemplateResponse" + "response_type": "ListFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5797,14 +5795,36 @@ def _create_flink_sql_job_template_http_info(self, request): path_params = {} query_params = [] + if 'job_type' in local_var_params: + query_params.append(('job_type', local_var_params['job_type'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + if 'queue_name' in local_var_params: + query_params.append(('queue_name', local_var_params['queue_name'])) + if 'root_job_id' in local_var_params: + query_params.append(('root_job_id', local_var_params['root_job_id'])) + if 'show_detail' in local_var_params: + query_params.append(('show_detail', local_var_params['show_detail'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'sys_enterprise_project_name' in local_var_params: + query_params.append(('sys_enterprise_project_name', local_var_params['sys_enterprise_project_name'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'user_name' in local_var_params: + query_params.append(('user_name', local_var_params['user_name'])) 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() @@ -5826,33 +5846,31 @@ def _create_flink_sql_job_template_http_info(self, request): return http_info - def create_ief_message_channel_async(self, request): - """创建IEF消息通道 + def list_flink_sql_job_templates_async(self, request): + """查询Flink作业模板列表 - 该API用于创建IEF消息通道 + 查询Flink作业模板列表。当前只支持查询用户自定义模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateIefMessageChannel - :type request: :class:`huaweicloudsdkdli.v1.CreateIefMessageChannelRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateIefMessageChannelResponse` + :param request: Request instance for ListFlinkSqlJobTemplates + :type request: :class:`huaweicloudsdkdli.v1.ListFlinkSqlJobTemplatesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListFlinkSqlJobTemplatesResponse` """ - warnings.warn("Method 'create_ief_message_channel_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_ief_message_channel_http_info(request) + http_info = self._list_flink_sql_job_templates_http_info(request) return self._call_api(**http_info) - def create_ief_message_channel_async_invoker(self, request): - warnings.warn("Method 'create_ief_message_channel_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_ief_message_channel_http_info(request) + def list_flink_sql_job_templates_async_invoker(self, request): + http_info = self._list_flink_sql_job_templates_http_info(request) return AsyncInvoker(self, http_info) - def _create_ief_message_channel_http_info(self, request): + def _list_flink_sql_job_templates_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/edgesrv/message-channel", + "method": "GET", + "resource_path": "/v1.0/{project_id}/streaming/job-templates", "request_type": request.__class__.__name__, - "response_type": "CreateIefMessageChannelResponse" + "response_type": "ListFlinkSqlJobTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5864,14 +5882,22 @@ def _create_ief_message_channel_http_info(self, request): path_params = {} query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) 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() @@ -5893,33 +5919,33 @@ def _create_ief_message_channel_http_info(self, request): return http_info - def create_ief_system_events_async(self, request): - """IEF系统事件上报 + def register_bucket_async(self, request): + """OBS授权给DLI服务 - 该API用于处理IEF系统事件上报 + 用户主动授权OBS桶的操作权限给DLI服务, 用于保存用户作业的checkpoint、作业的运行日志等。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateIefSystemEvents - :type request: :class:`huaweicloudsdkdli.v1.CreateIefSystemEventsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateIefSystemEventsResponse` + :param request: Request instance for RegisterBucket + :type request: :class:`huaweicloudsdkdli.v1.RegisterBucketRequest` + :rtype: :class:`huaweicloudsdkdli.v1.RegisterBucketResponse` """ - warnings.warn("Method 'create_ief_system_events_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_ief_system_events_http_info(request) + warnings.warn("Method 'register_bucket_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._register_bucket_http_info(request) return self._call_api(**http_info) - def create_ief_system_events_async_invoker(self, request): - warnings.warn("Method 'create_ief_system_events_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_ief_system_events_http_info(request) - return AsyncInvoker(self, http_info) + def register_bucket_async_invoker(self, request): + warnings.warn("Method 'register_bucket_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._register_bucket_http_info(request) + return AsyncInvoker(self, http_info) - def _create_ief_system_events_http_info(self, request): + def _register_bucket_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/edgesrv/system-events", + "resource_path": "/v1.0/{project_id}/dli/obs-authorize", "request_type": request.__class__.__name__, - "response_type": "CreateIefSystemEventsResponse" + "response_type": "RegisterBucketResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5960,31 +5986,33 @@ def _create_ief_system_events_http_info(self, request): return http_info - def delete_flink_job_async(self, request): - """删除作业 + def run_ief_job_action_call_back_async(self, request): + """边缘Flink作业Action状态回调 - 删除任何状态的作业。 + 该API用于处理IEF Flink作业action回调信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteFlinkJob - :type request: :class:`huaweicloudsdkdli.v1.DeleteFlinkJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteFlinkJobResponse` + :param request: Request instance for RunIefJobActionCallBack + :type request: :class:`huaweicloudsdkdli.v1.RunIefJobActionCallBackRequest` + :rtype: :class:`huaweicloudsdkdli.v1.RunIefJobActionCallBackResponse` """ - http_info = self._delete_flink_job_http_info(request) + warnings.warn("Method 'run_ief_job_action_call_back_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._run_ief_job_action_call_back_http_info(request) return self._call_api(**http_info) - def delete_flink_job_async_invoker(self, request): - http_info = self._delete_flink_job_http_info(request) + def run_ief_job_action_call_back_async_invoker(self, request): + warnings.warn("Method 'run_ief_job_action_call_back_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._run_ief_job_action_call_back_http_info(request) return AsyncInvoker(self, http_info) - def _delete_flink_job_http_info(self, request): + def _run_ief_job_action_call_back_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}", + "method": "POST", + "resource_path": "/v1/{project_id}/edgesrv/messages", "request_type": request.__class__.__name__, - "response_type": "DeleteFlinkJobResponse" + "response_type": "RunIefJobActionCallBackResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5994,8 +6022,6 @@ def _delete_flink_job_http_info(self, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6004,6 +6030,8 @@ def _delete_flink_job_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -6025,31 +6053,31 @@ def _delete_flink_job_http_info(self, request): return http_info - def delete_flink_sql_job_template_async(self, request): - """删除Flink作业模板 + def show_flink_job_async(self, request): + """查询Flink作业详情 - 删除一个Flink作业模板,即使当前模板正在被作业使用,也允许删除。 + 查看一个Flink作业的详情信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteFlinkSqlJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.DeleteFlinkSqlJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteFlinkSqlJobTemplateResponse` + :param request: Request instance for ShowFlinkJob + :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkJobResponse` """ - http_info = self._delete_flink_sql_job_template_http_info(request) + http_info = self._show_flink_job_http_info(request) return self._call_api(**http_info) - def delete_flink_sql_job_template_async_invoker(self, request): - http_info = self._delete_flink_sql_job_template_http_info(request) + def show_flink_job_async_invoker(self, request): + http_info = self._show_flink_job_http_info(request) return AsyncInvoker(self, http_info) - def _delete_flink_sql_job_template_http_info(self, request): + def _show_flink_job_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/streaming/job-templates/{template_id}", + "method": "GET", + "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "DeleteFlinkSqlJobTemplateResponse" + "response_type": "ShowFlinkJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6059,8 +6087,8 @@ def _delete_flink_sql_job_template_http_info(self, request): collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['template_id'] = local_var_params['template_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6090,31 +6118,31 @@ def _delete_flink_sql_job_template_http_info(self, request): return http_info - def export_flink_jobs_async(self, request): - """flink作业导出 + def show_flink_job_execution_graph_async(self, request): + """查询Flink作业执行计划 - 通过POST方式,导出flink作业,请求体为JSON格式。 + 查询Flink作业执行计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ExportFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.ExportFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ExportFlinkJobsResponse` + :param request: Request instance for ShowFlinkJobExecutionGraph + :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkJobExecutionGraphRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkJobExecutionGraphResponse` """ - http_info = self._export_flink_jobs_http_info(request) + http_info = self._show_flink_job_execution_graph_http_info(request) return self._call_api(**http_info) - def export_flink_jobs_async_invoker(self, request): - http_info = self._export_flink_jobs_http_info(request) + def show_flink_job_execution_graph_async_invoker(self, request): + http_info = self._show_flink_job_execution_graph_http_info(request) return AsyncInvoker(self, http_info) - def _export_flink_jobs_http_info(self, request): + def _show_flink_job_execution_graph_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/export", + "method": "GET", + "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}/execute-graph", "request_type": request.__class__.__name__, - "response_type": "ExportFlinkJobsResponse" + "response_type": "ShowFlinkJobExecutionGraphResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6124,6 +6152,8 @@ def _export_flink_jobs_http_info(self, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6132,8 +6162,6 @@ def _export_flink_jobs_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -6155,31 +6183,33 @@ def _export_flink_jobs_http_info(self, request): return http_info - def import_flink_jobs_async(self, request): - """flink作业导入 + def show_flink_metric_async(self, request): + """查询Flink作业监控信息 - 通过POST方式,导入flink作业,请求体为JSON格式。 + 查询Flink作业监控信息, 支持同时查询多个Flink作业的监控信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ImportFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.ImportFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ImportFlinkJobsResponse` + :param request: Request instance for ShowFlinkMetric + :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkMetricRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkMetricResponse` """ - http_info = self._import_flink_jobs_http_info(request) + warnings.warn("Method 'show_flink_metric_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_flink_metric_http_info(request) return self._call_api(**http_info) - def import_flink_jobs_async_invoker(self, request): - http_info = self._import_flink_jobs_http_info(request) + def show_flink_metric_async_invoker(self, request): + warnings.warn("Method 'show_flink_metric_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_flink_metric_http_info(request) return AsyncInvoker(self, http_info) - def _import_flink_jobs_http_info(self, request): + def _show_flink_metric_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/import", + "resource_path": "/v1.0/{project_id}/streaming/jobs/metrics", "request_type": request.__class__.__name__, - "response_type": "ImportFlinkJobsResponse" + "response_type": "ShowFlinkMetricResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6220,31 +6250,31 @@ def _import_flink_jobs_http_info(self, request): return http_info - def list_flink_jobs_async(self, request): - """查询Flink作业列表 + def stop_flink_jobs_async(self, request): + """批量停止Flink作业 - 查询当前用户的作业列表,可以根据作业ID作为ID,查询大于ID或小于ID的限定条数的作业,默认查询全部状态的作业,也可以设定运行中或其他状态条件。 + 批量停止正在运行的Flink作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.ListFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListFlinkJobsResponse` + :param request: Request instance for StopFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.StopFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.StopFlinkJobsResponse` """ - http_info = self._list_flink_jobs_http_info(request) + http_info = self._stop_flink_jobs_http_info(request) return self._call_api(**http_info) - def list_flink_jobs_async_invoker(self, request): - http_info = self._list_flink_jobs_http_info(request) + def stop_flink_jobs_async_invoker(self, request): + http_info = self._stop_flink_jobs_http_info(request) return AsyncInvoker(self, http_info) - def _list_flink_jobs_http_info(self, request): + def _stop_flink_jobs_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/streaming/jobs", + "method": "POST", + "resource_path": "/v1.0/{project_id}/streaming/jobs/stop", "request_type": request.__class__.__name__, - "response_type": "ListFlinkJobsResponse" + "response_type": "StopFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6256,36 +6286,14 @@ def _list_flink_jobs_http_info(self, request): path_params = {} query_params = [] - if 'job_type' in local_var_params: - query_params.append(('job_type', local_var_params['job_type'])) - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'order' in local_var_params: - query_params.append(('order', local_var_params['order'])) - if 'queue_name' in local_var_params: - query_params.append(('queue_name', local_var_params['queue_name'])) - if 'root_job_id' in local_var_params: - query_params.append(('root_job_id', local_var_params['root_job_id'])) - if 'show_detail' in local_var_params: - query_params.append(('show_detail', local_var_params['show_detail'])) - if 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) - if 'sys_enterprise_project_name' in local_var_params: - query_params.append(('sys_enterprise_project_name', local_var_params['sys_enterprise_project_name'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) - if 'user_name' in local_var_params: - query_params.append(('user_name', local_var_params['user_name'])) 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() @@ -6307,31 +6315,31 @@ def _list_flink_jobs_http_info(self, request): return http_info - def list_flink_sql_job_templates_async(self, request): - """查询Flink作业模板列表 + def update_flink_jar_job_async(self, request): + """更新Flink Jar作业 - 查询Flink作业模板列表。当前只支持查询用户自定义模板。 + 更新用户自定义作业,目前支持jar格式,运行在独享集群中。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListFlinkSqlJobTemplates - :type request: :class:`huaweicloudsdkdli.v1.ListFlinkSqlJobTemplatesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListFlinkSqlJobTemplatesResponse` + :param request: Request instance for UpdateFlinkJarJob + :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkJarJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkJarJobResponse` """ - http_info = self._list_flink_sql_job_templates_http_info(request) + http_info = self._update_flink_jar_job_http_info(request) return self._call_api(**http_info) - def list_flink_sql_job_templates_async_invoker(self, request): - http_info = self._list_flink_sql_job_templates_http_info(request) + def update_flink_jar_job_async_invoker(self, request): + http_info = self._update_flink_jar_job_http_info(request) return AsyncInvoker(self, http_info) - def _list_flink_sql_job_templates_http_info(self, request): + def _update_flink_jar_job_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/streaming/job-templates", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/streaming/flink-jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "ListFlinkSqlJobTemplatesResponse" + "response_type": "UpdateFlinkJarJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6341,24 +6349,18 @@ def _list_flink_sql_job_templates_http_info(self, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'order' in local_var_params: - query_params.append(('order', local_var_params['order'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) 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() @@ -6380,33 +6382,31 @@ def _list_flink_sql_job_templates_http_info(self, request): return http_info - def register_bucket_async(self, request): - """OBS授权给DLI服务 + def update_flink_sql_job_async(self, request): + """更新Flink SQL作业 - 用户主动授权OBS桶的操作权限给DLI服务, 用于保存用户作业的checkpoint、作业的运行日志等。 + Stream SQL的语法扩展了Apache Flink SQL。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RegisterBucket - :type request: :class:`huaweicloudsdkdli.v1.RegisterBucketRequest` - :rtype: :class:`huaweicloudsdkdli.v1.RegisterBucketResponse` + :param request: Request instance for UpdateFlinkSqlJob + :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobResponse` """ - warnings.warn("Method 'register_bucket_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._register_bucket_http_info(request) + http_info = self._update_flink_sql_job_http_info(request) return self._call_api(**http_info) - def register_bucket_async_invoker(self, request): - warnings.warn("Method 'register_bucket_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._register_bucket_http_info(request) + def update_flink_sql_job_async_invoker(self, request): + http_info = self._update_flink_sql_job_http_info(request) return AsyncInvoker(self, http_info) - def _register_bucket_http_info(self, request): + def _update_flink_sql_job_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/dli/obs-authorize", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/streaming/sql-jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "RegisterBucketResponse" + "response_type": "UpdateFlinkSqlJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6416,6 +6416,8 @@ def _register_bucket_http_info(self, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6447,33 +6449,31 @@ def _register_bucket_http_info(self, request): return http_info - def run_ief_job_action_call_back_async(self, request): - """边缘Flink作业Action状态回调 + def update_flink_sql_job_template_async(self, request): + """更新Flink作业模板 - 该API用于处理IEF Flink作业action回调信息 + 对DLI服务中已有的Flink作业模板进行更新。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RunIefJobActionCallBack - :type request: :class:`huaweicloudsdkdli.v1.RunIefJobActionCallBackRequest` - :rtype: :class:`huaweicloudsdkdli.v1.RunIefJobActionCallBackResponse` + :param request: Request instance for UpdateFlinkSqlJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobTemplateResponse` """ - warnings.warn("Method 'run_ief_job_action_call_back_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._run_ief_job_action_call_back_http_info(request) + http_info = self._update_flink_sql_job_template_http_info(request) return self._call_api(**http_info) - def run_ief_job_action_call_back_async_invoker(self, request): - warnings.warn("Method 'run_ief_job_action_call_back_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._run_ief_job_action_call_back_http_info(request) + def update_flink_sql_job_template_async_invoker(self, request): + http_info = self._update_flink_sql_job_template_http_info(request) return AsyncInvoker(self, http_info) - def _run_ief_job_action_call_back_http_info(self, request): + def _update_flink_sql_job_template_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/edgesrv/messages", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/streaming/job-templates/{template_id}", "request_type": request.__class__.__name__, - "response_type": "RunIefJobActionCallBackResponse" + "response_type": "UpdateFlinkSqlJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6483,6 +6483,8 @@ def _run_ief_job_action_call_back_http_info(self, request): collection_formats = {} path_params = {} + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] query_params = [] @@ -6514,31 +6516,31 @@ def _run_ief_job_action_call_back_http_info(self, request): return http_info - def show_flink_job_async(self, request): - """查询Flink作业详情 + def batch_delete_sql_job_templates_async(self, request): + """批量删除SQL模板 - 查看一个Flink作业的详情信息。 + 该API用于批量删除SQL模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowFlinkJob - :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkJobResponse` + :param request: Request instance for BatchDeleteSqlJobTemplates + :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteSqlJobTemplatesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteSqlJobTemplatesResponse` """ - http_info = self._show_flink_job_http_info(request) + http_info = self._batch_delete_sql_job_templates_http_info(request) return self._call_api(**http_info) - def show_flink_job_async_invoker(self, request): - http_info = self._show_flink_job_http_info(request) + def batch_delete_sql_job_templates_async_invoker(self, request): + http_info = self._batch_delete_sql_job_templates_http_info(request) return AsyncInvoker(self, http_info) - def _show_flink_job_http_info(self, request): + def _batch_delete_sql_job_templates_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}", + "method": "POST", + "resource_path": "/v1.0/{project_id}/sqls-deletion", "request_type": request.__class__.__name__, - "response_type": "ShowFlinkJobResponse" + "response_type": "BatchDeleteSqlJobTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6548,8 +6550,6 @@ def _show_flink_job_http_info(self, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6558,6 +6558,8 @@ def _show_flink_job_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -6579,31 +6581,31 @@ def _show_flink_job_http_info(self, request): return http_info - def show_flink_job_execution_graph_async(self, request): - """查询Flink作业执行计划 + def cancel_sql_job_async(self, request): + """取消作业 - 查询Flink作业执行计划。 + 该API用于取消已经提交的作业,若作业已经执行结束或失败则无法取消。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowFlinkJobExecutionGraph - :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkJobExecutionGraphRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkJobExecutionGraphResponse` + :param request: Request instance for CancelSqlJob + :type request: :class:`huaweicloudsdkdli.v1.CancelSqlJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CancelSqlJobResponse` """ - http_info = self._show_flink_job_execution_graph_http_info(request) + http_info = self._cancel_sql_job_http_info(request) return self._call_api(**http_info) - def show_flink_job_execution_graph_async_invoker(self, request): - http_info = self._show_flink_job_execution_graph_http_info(request) + def cancel_sql_job_async_invoker(self, request): + http_info = self._cancel_sql_job_http_info(request) return AsyncInvoker(self, http_info) - def _show_flink_job_execution_graph_http_info(self, request): + def _cancel_sql_job_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}/execute-graph", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "ShowFlinkJobExecutionGraphResponse" + "response_type": "CancelSqlJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6644,33 +6646,31 @@ def _show_flink_job_execution_graph_http_info(self, request): return http_info - def show_flink_metric_async(self, request): - """查询Flink作业监控信息 + def check_sql_async(self, request): + """检查SQL语法 - 查询Flink作业监控信息, 支持同时查询多个Flink作业的监控信息。 + 该API用于检查SQL语法。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowFlinkMetric - :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkMetricRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkMetricResponse` + :param request: Request instance for CheckSql + :type request: :class:`huaweicloudsdkdli.v1.CheckSqlRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CheckSqlResponse` """ - warnings.warn("Method 'show_flink_metric_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_flink_metric_http_info(request) + http_info = self._check_sql_http_info(request) return self._call_api(**http_info) - def show_flink_metric_async_invoker(self, request): - warnings.warn("Method 'show_flink_metric_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_flink_metric_http_info(request) + def check_sql_async_invoker(self, request): + http_info = self._check_sql_http_info(request) return AsyncInvoker(self, http_info) - def _show_flink_metric_http_info(self, request): + def _check_sql_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/metrics", + "resource_path": "/v1.0/{project_id}/jobs/check-sql", "request_type": request.__class__.__name__, - "response_type": "ShowFlinkMetricResponse" + "response_type": "CheckSqlResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6711,31 +6711,33 @@ def _show_flink_metric_http_info(self, request): return http_info - def stop_flink_jobs_async(self, request): - """批量停止Flink作业 + def create_database_async(self, request): + """创建数据库 - 批量停止正在运行的Flink作业。 + 该API用于新增数据库。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for StopFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.StopFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.StopFlinkJobsResponse` + :param request: Request instance for CreateDatabase + :type request: :class:`huaweicloudsdkdli.v1.CreateDatabaseRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateDatabaseResponse` """ - http_info = self._stop_flink_jobs_http_info(request) + warnings.warn("Method 'create_database_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_database_http_info(request) return self._call_api(**http_info) - def stop_flink_jobs_async_invoker(self, request): - http_info = self._stop_flink_jobs_http_info(request) + def create_database_async_invoker(self, request): + warnings.warn("Method 'create_database_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_database_http_info(request) return AsyncInvoker(self, http_info) - def _stop_flink_jobs_http_info(self, request): + def _create_database_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/stop", + "resource_path": "/v1.0/{project_id}/databases", "request_type": request.__class__.__name__, - "response_type": "StopFlinkJobsResponse" + "response_type": "CreateDatabaseResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6776,31 +6778,33 @@ def _stop_flink_jobs_http_info(self, request): return http_info - def update_flink_jar_job_async(self, request): - """更新Flink Jar作业 + def create_sql_job_async(self, request): + """提交SQL作业 - 更新用户自定义作业,目前支持jar格式,运行在独享集群中。 + 该API用于通过执行SQL语句的方式向队列提交作业。 + + 作业包含以下类型:DDL、DCL、IMPORT、QUERY和INSERT。其中,IMPORT与导入数据的功能一致,区别仅在于实现方式不同。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateFlinkJarJob - :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkJarJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkJarJobResponse` + :param request: Request instance for CreateSqlJob + :type request: :class:`huaweicloudsdkdli.v1.CreateSqlJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateSqlJobResponse` """ - http_info = self._update_flink_jar_job_http_info(request) + http_info = self._create_sql_job_http_info(request) return self._call_api(**http_info) - def update_flink_jar_job_async_invoker(self, request): - http_info = self._update_flink_jar_job_http_info(request) + def create_sql_job_async_invoker(self, request): + http_info = self._create_sql_job_http_info(request) return AsyncInvoker(self, http_info) - def _update_flink_jar_job_http_info(self, request): + def _create_sql_job_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/streaming/flink-jobs/{job_id}", + "method": "POST", + "resource_path": "/v1.0/{project_id}/jobs/submit-job", "request_type": request.__class__.__name__, - "response_type": "UpdateFlinkJarJobResponse" + "response_type": "CreateSqlJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6810,8 +6814,6 @@ def _update_flink_jar_job_http_info(self, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6843,31 +6845,31 @@ def _update_flink_jar_job_http_info(self, request): return http_info - def update_flink_sql_job_async(self, request): - """更新Flink SQL作业 + def create_sql_job_template_async(self, request): + """存储指定SQL语句 - Stream SQL的语法扩展了Apache Flink SQL。 + 该API用于存储指定的SQL语句,后续可以重复使用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateFlinkSqlJob - :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobResponse` + :param request: Request instance for CreateSqlJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.CreateSqlJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateSqlJobTemplateResponse` """ - http_info = self._update_flink_sql_job_http_info(request) + http_info = self._create_sql_job_template_http_info(request) return self._call_api(**http_info) - def update_flink_sql_job_async_invoker(self, request): - http_info = self._update_flink_sql_job_http_info(request) + def create_sql_job_template_async_invoker(self, request): + http_info = self._create_sql_job_template_http_info(request) return AsyncInvoker(self, http_info) - def _update_flink_sql_job_http_info(self, request): + def _create_sql_job_template_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/streaming/sql-jobs/{job_id}", + "method": "POST", + "resource_path": "/v1.0/{project_id}/sqls", "request_type": request.__class__.__name__, - "response_type": "UpdateFlinkSqlJobResponse" + "response_type": "CreateSqlJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6877,8 +6879,6 @@ def _update_flink_sql_job_http_info(self, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6910,31 +6910,33 @@ def _update_flink_sql_job_http_info(self, request): return http_info - def update_flink_sql_job_template_async(self, request): - """更新Flink作业模板 + def create_table_async(self, request): + """创建表 - 对DLI服务中已有的Flink作业模板进行更新。 + 该API用于创建新的表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateFlinkSqlJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobTemplateResponse` + :param request: Request instance for CreateTable + :type request: :class:`huaweicloudsdkdli.v1.CreateTableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateTableResponse` """ - http_info = self._update_flink_sql_job_template_http_info(request) + warnings.warn("Method 'create_table_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_table_http_info(request) return self._call_api(**http_info) - def update_flink_sql_job_template_async_invoker(self, request): - http_info = self._update_flink_sql_job_template_http_info(request) + def create_table_async_invoker(self, request): + warnings.warn("Method 'create_table_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_table_http_info(request) return AsyncInvoker(self, http_info) - def _update_flink_sql_job_template_http_info(self, request): + def _create_table_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/streaming/job-templates/{template_id}", + "method": "POST", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables", "request_type": request.__class__.__name__, - "response_type": "UpdateFlinkSqlJobTemplateResponse" + "response_type": "CreateTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6944,8 +6946,8 @@ def _update_flink_sql_job_template_http_info(self, request): collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['template_id'] = local_var_params['template_id'] + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] query_params = [] @@ -6977,31 +6979,33 @@ def _update_flink_sql_job_template_http_info(self, request): return http_info - def cancel_sql_job_async(self, request): - """取消作业 + def delete_database_async(self, request): + """删除数据库 - 该API用于取消已经提交的作业,若作业已经执行结束或失败则无法取消。 + 该API用于删除空数据库,若待删除的数据库中存在表,则需先删除其中的所有表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CancelSqlJob - :type request: :class:`huaweicloudsdkdli.v1.CancelSqlJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CancelSqlJobResponse` + :param request: Request instance for DeleteDatabase + :type request: :class:`huaweicloudsdkdli.v1.DeleteDatabaseRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteDatabaseResponse` """ - http_info = self._cancel_sql_job_http_info(request) + warnings.warn("Method 'delete_database_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_database_http_info(request) return self._call_api(**http_info) - def cancel_sql_job_async_invoker(self, request): - http_info = self._cancel_sql_job_http_info(request) + def delete_database_async_invoker(self, request): + warnings.warn("Method 'delete_database_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_database_http_info(request) return AsyncInvoker(self, http_info) - def _cancel_sql_job_http_info(self, request): + def _delete_database_http_info(self, request): http_info = { "method": "DELETE", - "resource_path": "/v1.0/{project_id}/jobs/{job_id}", + "resource_path": "/v1.0/{project_id}/databases/{database_name}", "request_type": request.__class__.__name__, - "response_type": "CancelSqlJobResponse" + "response_type": "DeleteDatabaseResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7011,10 +7015,14 @@ def _cancel_sql_job_http_info(self, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] query_params = [] + if '_async' in local_var_params: + query_params.append(('async', local_var_params['_async'])) + if 'cascade' in local_var_params: + query_params.append(('cascade', local_var_params['cascade'])) header_params = {} @@ -7042,31 +7050,33 @@ def _cancel_sql_job_http_info(self, request): return http_info - def check_sql_async(self, request): - """检查SQL语法 + def delete_table_async(self, request): + """删除表 - 该API用于检查SQL语法。 + 该API用于删除指定的表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CheckSql - :type request: :class:`huaweicloudsdkdli.v1.CheckSqlRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CheckSqlResponse` + :param request: Request instance for DeleteTable + :type request: :class:`huaweicloudsdkdli.v1.DeleteTableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteTableResponse` """ - http_info = self._check_sql_http_info(request) + warnings.warn("Method 'delete_table_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_table_http_info(request) return self._call_api(**http_info) - def check_sql_async_invoker(self, request): - http_info = self._check_sql_http_info(request) + def delete_table_async_invoker(self, request): + warnings.warn("Method 'delete_table_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_table_http_info(request) return AsyncInvoker(self, http_info) - def _check_sql_http_info(self, request): + def _delete_table_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/jobs/check-sql", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}", "request_type": request.__class__.__name__, - "response_type": "CheckSqlResponse" + "response_type": "DeleteTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7076,16 +7086,20 @@ def _check_sql_http_info(self, request): collection_formats = {} path_params = {} + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] query_params = [] + if '_async' in local_var_params: + query_params.append(('async', local_var_params['_async'])) 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() @@ -7107,33 +7121,33 @@ def _check_sql_http_info(self, request): return http_info - def create_database_async(self, request): - """创建数据库 + def export_sql_job_result_async(self, request): + """导出查询结果 - 该API用于新增数据库。 + 该API用于将SQL语句的查询结果导出到OBS对象存储中,只支持导出“QUERY”类型作业的查询结果。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateDatabase - :type request: :class:`huaweicloudsdkdli.v1.CreateDatabaseRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateDatabaseResponse` + :param request: Request instance for ExportSqlJobResult + :type request: :class:`huaweicloudsdkdli.v1.ExportSqlJobResultRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ExportSqlJobResultResponse` """ - warnings.warn("Method 'create_database_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_database_http_info(request) + warnings.warn("Method 'export_sql_job_result_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._export_sql_job_result_http_info(request) return self._call_api(**http_info) - def create_database_async_invoker(self, request): - warnings.warn("Method 'create_database_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_database_http_info(request) + def export_sql_job_result_async_invoker(self, request): + warnings.warn("Method 'export_sql_job_result_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._export_sql_job_result_http_info(request) return AsyncInvoker(self, http_info) - def _create_database_http_info(self, request): + def _export_sql_job_result_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/databases", + "resource_path": "/v1.0/{project_id}/jobs/{job_id}/export-result", "request_type": request.__class__.__name__, - "response_type": "CreateDatabaseResponse" + "response_type": "ExportSqlJobResultResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7143,6 +7157,8 @@ def _create_database_http_info(self, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -7174,33 +7190,33 @@ def _create_database_http_info(self, request): return http_info - def create_sql_job_async(self, request): - """提交SQL作业 + def export_table_async(self, request): + """导出查询结果 - 该API用于通过执行SQL语句的方式向队列提交作业。 - - 作业包含以下类型:DDL、DCL、IMPORT、QUERY和INSERT。其中,IMPORT与导入数据的功能一致,区别仅在于实现方式不同。 + 该API用于将SQL语句的查询结果导出到OBS对象存储中,只支持导出“QUERY”类型作业的查询结果。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateSqlJob - :type request: :class:`huaweicloudsdkdli.v1.CreateSqlJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateSqlJobResponse` + :param request: Request instance for ExportTable + :type request: :class:`huaweicloudsdkdli.v1.ExportTableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ExportTableResponse` """ - http_info = self._create_sql_job_http_info(request) + warnings.warn("Method 'export_table_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._export_table_http_info(request) return self._call_api(**http_info) - def create_sql_job_async_invoker(self, request): - http_info = self._create_sql_job_http_info(request) + def export_table_async_invoker(self, request): + warnings.warn("Method 'export_table_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._export_table_http_info(request) return AsyncInvoker(self, http_info) - def _create_sql_job_http_info(self, request): + def _export_table_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/jobs/submit-job", + "resource_path": "/v1.0/{project_id}/jobs/export-table", "request_type": request.__class__.__name__, - "response_type": "CreateSqlJobResponse" + "response_type": "ExportTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7241,33 +7257,33 @@ def _create_sql_job_http_info(self, request): return http_info - def create_table_async(self, request): - """创建表 + def import_table_async(self, request): + """导入数据 - 该API用于创建新的表。 + 该API用于将数据从文件导入DLI或OBS表,目前仅支持将OBS上的数据导入DLI或OBS中。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateTable - :type request: :class:`huaweicloudsdkdli.v1.CreateTableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateTableResponse` + :param request: Request instance for ImportTable + :type request: :class:`huaweicloudsdkdli.v1.ImportTableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ImportTableResponse` """ - warnings.warn("Method 'create_table_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_table_http_info(request) + warnings.warn("Method 'import_table_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._import_table_http_info(request) return self._call_api(**http_info) - def create_table_async_invoker(self, request): - warnings.warn("Method 'create_table_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_table_http_info(request) + def import_table_async_invoker(self, request): + warnings.warn("Method 'import_table_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._import_table_http_info(request) return AsyncInvoker(self, http_info) - def _create_table_http_info(self, request): + def _import_table_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables", + "resource_path": "/v1.0/{project_id}/jobs/import-table", "request_type": request.__class__.__name__, - "response_type": "CreateTableResponse" + "response_type": "ImportTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7277,8 +7293,6 @@ def _create_table_http_info(self, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] query_params = [] @@ -7310,33 +7324,33 @@ def _create_table_http_info(self, request): return http_info - def delete_database_async(self, request): - """删除数据库 + def list_all_tables_async(self, request): + """查询所有表 - 该API用于删除空数据库,若待删除的数据库中存在表,则需先删除其中的所有表。 + 该API用于查询指定数据库下符合过滤条件的或所有的表信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteDatabase - :type request: :class:`huaweicloudsdkdli.v1.DeleteDatabaseRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteDatabaseResponse` + :param request: Request instance for ListAllTables + :type request: :class:`huaweicloudsdkdli.v1.ListAllTablesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListAllTablesResponse` """ - warnings.warn("Method 'delete_database_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_database_http_info(request) + warnings.warn("Method 'list_all_tables_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_all_tables_http_info(request) return self._call_api(**http_info) - def delete_database_async_invoker(self, request): - warnings.warn("Method 'delete_database_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_database_http_info(request) + def list_all_tables_async_invoker(self, request): + warnings.warn("Method 'list_all_tables_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_all_tables_http_info(request) return AsyncInvoker(self, http_info) - def _delete_database_http_info(self, request): + def _list_all_tables_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/databases/{database_name}", + "method": "GET", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables", "request_type": request.__class__.__name__, - "response_type": "DeleteDatabaseResponse" + "response_type": "ListAllTablesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7350,10 +7364,18 @@ def _delete_database_http_info(self, request): path_params['database_name'] = local_var_params['database_name'] query_params = [] - if '_async' in local_var_params: - query_params.append(('async', local_var_params['_async'])) - if 'cascade' in local_var_params: - query_params.append(('cascade', local_var_params['cascade'])) + if 'current_page' in local_var_params: + query_params.append(('current-page', local_var_params['current_page'])) + if 'keyword' in local_var_params: + query_params.append(('keyword', local_var_params['keyword'])) + if 'page_size' in local_var_params: + query_params.append(('page-size', local_var_params['page_size'])) + if 'table_type' in local_var_params: + query_params.append(('table-type', local_var_params['table_type'])) + if 'with_detail' in local_var_params: + query_params.append(('with-detail', local_var_params['with_detail'])) + if 'with_priv' in local_var_params: + query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -7381,33 +7403,33 @@ def _delete_database_http_info(self, request): return http_info - def delete_table_async(self, request): - """删除表 + def list_databases_async(self, request): + """查询所有数据库 - 该API用于删除指定的表。 + 该API用于查询出所有的数据库信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteTable - :type request: :class:`huaweicloudsdkdli.v1.DeleteTableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteTableResponse` + :param request: Request instance for ListDatabases + :type request: :class:`huaweicloudsdkdli.v1.ListDatabasesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListDatabasesResponse` """ - warnings.warn("Method 'delete_table_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_table_http_info(request) + warnings.warn("Method 'list_databases_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_databases_http_info(request) return self._call_api(**http_info) - def delete_table_async_invoker(self, request): - warnings.warn("Method 'delete_table_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_table_http_info(request) + def list_databases_async_invoker(self, request): + warnings.warn("Method 'list_databases_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_databases_http_info(request) return AsyncInvoker(self, http_info) - def _delete_table_http_info(self, request): + def _list_databases_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}", + "method": "GET", + "resource_path": "/v1.0/{project_id}/databases", "request_type": request.__class__.__name__, - "response_type": "DeleteTableResponse" + "response_type": "ListDatabasesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7417,14 +7439,18 @@ def _delete_table_http_info(self, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] query_params = [] - if '_async' in local_var_params: - query_params.append(('async', local_var_params['_async'])) + if 'keyword' in local_var_params: + query_params.append(('keyword', local_var_params['keyword'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'with_priv' in local_var_params: + query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -7452,33 +7478,31 @@ def _delete_table_http_info(self, request): return http_info - def export_sql_job_result_async(self, request): - """导出查询结果 + def list_sql_job_templates_async(self, request): + """查看所有SQL模板 - 该API用于将SQL语句的查询结果导出到OBS对象存储中,只支持导出“QUERY”类型作业的查询结果。 + 该API用查看用户保存的所有SQL模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ExportSqlJobResult - :type request: :class:`huaweicloudsdkdli.v1.ExportSqlJobResultRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ExportSqlJobResultResponse` + :param request: Request instance for ListSqlJobTemplates + :type request: :class:`huaweicloudsdkdli.v1.ListSqlJobTemplatesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListSqlJobTemplatesResponse` """ - warnings.warn("Method 'export_sql_job_result_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._export_sql_job_result_http_info(request) + http_info = self._list_sql_job_templates_http_info(request) return self._call_api(**http_info) - def export_sql_job_result_async_invoker(self, request): - warnings.warn("Method 'export_sql_job_result_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._export_sql_job_result_http_info(request) + def list_sql_job_templates_async_invoker(self, request): + http_info = self._list_sql_job_templates_http_info(request) return AsyncInvoker(self, http_info) - def _export_sql_job_result_http_info(self, request): + def _list_sql_job_templates_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/jobs/{job_id}/export-result", + "method": "GET", + "resource_path": "/v1.0/{project_id}/sqls", "request_type": request.__class__.__name__, - "response_type": "ExportSqlJobResultResponse" + "response_type": "ListSqlJobTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7488,18 +7512,16 @@ def _export_sql_job_result_http_info(self, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] + if 'keyword' in local_var_params: + query_params.append(('keyword', local_var_params['keyword'])) 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() @@ -7521,33 +7543,31 @@ def _export_sql_job_result_http_info(self, request): return http_info - def export_table_async(self, request): - """导出查询结果 + def list_sql_jobs_async(self, request): + """查询所有作业 - 该API用于将SQL语句的查询结果导出到OBS对象存储中,只支持导出“QUERY”类型作业的查询结果。 + 该API用于查询当前工程下面的所有作业的信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ExportTable - :type request: :class:`huaweicloudsdkdli.v1.ExportTableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ExportTableResponse` + :param request: Request instance for ListSqlJobs + :type request: :class:`huaweicloudsdkdli.v1.ListSqlJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListSqlJobsResponse` """ - warnings.warn("Method 'export_table_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._export_table_http_info(request) + http_info = self._list_sql_jobs_http_info(request) return self._call_api(**http_info) - def export_table_async_invoker(self, request): - warnings.warn("Method 'export_table_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._export_table_http_info(request) + def list_sql_jobs_async_invoker(self, request): + http_info = self._list_sql_jobs_http_info(request) return AsyncInvoker(self, http_info) - def _export_table_http_info(self, request): + def _list_sql_jobs_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/jobs/export-table", + "method": "GET", + "resource_path": "/v1.0/{project_id}/jobs", "request_type": request.__class__.__name__, - "response_type": "ExportTableResponse" + "response_type": "ListSqlJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7559,14 +7579,40 @@ def _export_table_http_info(self, request): path_params = {} query_params = [] + if 'current_page' in local_var_params: + query_params.append(('current-page', local_var_params['current_page'])) + if 'db_name' in local_var_params: + query_params.append(('db_name', local_var_params['db_name'])) + if 'end' in local_var_params: + query_params.append(('end', local_var_params['end'])) + if 'engine_type' in local_var_params: + query_params.append(('engine-type', local_var_params['engine_type'])) + if 'job_status' in local_var_params: + query_params.append(('job-status', local_var_params['job_status'])) + if 'job_type' in local_var_params: + query_params.append(('job-type', local_var_params['job_type'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + if 'owner' in local_var_params: + query_params.append(('owner', local_var_params['owner'])) + if 'page_size' in local_var_params: + query_params.append(('page-size', local_var_params['page_size'])) + if 'queue_name' in local_var_params: + query_params.append(('queue_name', local_var_params['queue_name'])) + if 'sql_pattern' in local_var_params: + query_params.append(('sql_pattern', local_var_params['sql_pattern'])) + if 'start' in local_var_params: + query_params.append(('start', local_var_params['start'])) + if 'table_name' in local_var_params: + query_params.append(('table_name', local_var_params['table_name'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) 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() @@ -7588,33 +7634,32 @@ def _export_table_http_info(self, request): return http_info - def import_table_async(self, request): - """导入数据 + def preview_sql_job_result_async(self, request): + """预览SQL作业查询结果 - 该API用于将数据从文件导入DLI或OBS表,目前仅支持将OBS上的数据导入DLI或OBS中。 + 该API用于在执行SQL查询语句的作业完成后,查看该作业执行的结果。目前仅支持查看“QUERY”类型作业的执行结果。 + 该API只能查看前1000条的结果记录,若要查看全部的结果记录,需要先导出查询结果再进行查看。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ImportTable - :type request: :class:`huaweicloudsdkdli.v1.ImportTableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ImportTableResponse` + :param request: Request instance for PreviewSqlJobResult + :type request: :class:`huaweicloudsdkdli.v1.PreviewSqlJobResultRequest` + :rtype: :class:`huaweicloudsdkdli.v1.PreviewSqlJobResultResponse` """ - warnings.warn("Method 'import_table_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._import_table_http_info(request) + http_info = self._preview_sql_job_result_http_info(request) return self._call_api(**http_info) - def import_table_async_invoker(self, request): - warnings.warn("Method 'import_table_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._import_table_http_info(request) + def preview_sql_job_result_async_invoker(self, request): + http_info = self._preview_sql_job_result_http_info(request) return AsyncInvoker(self, http_info) - def _import_table_http_info(self, request): + def _preview_sql_job_result_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/jobs/import-table", + "method": "GET", + "resource_path": "/v1.0/{project_id}/jobs/{job_id}/preview", "request_type": request.__class__.__name__, - "response_type": "ImportTableResponse" + "response_type": "PreviewSqlJobResultResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7624,16 +7669,18 @@ def _import_table_http_info(self, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] + if 'queue_name' in local_var_params: + query_params.append(('queue-name', local_var_params['queue_name'])) 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() @@ -7655,33 +7702,33 @@ def _import_table_http_info(self, request): return http_info - def list_all_tables_async(self, request): - """查询所有表 + def show_describe_table_async(self, request): + """描述表信息 - 该API用于查询指定数据库下符合过滤条件的或所有的表信息。 + 该API用于描述指定表的元数据信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAllTables - :type request: :class:`huaweicloudsdkdli.v1.ListAllTablesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListAllTablesResponse` + :param request: Request instance for ShowDescribeTable + :type request: :class:`huaweicloudsdkdli.v1.ShowDescribeTableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowDescribeTableResponse` """ - warnings.warn("Method 'list_all_tables_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_all_tables_http_info(request) + warnings.warn("Method 'show_describe_table_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_describe_table_http_info(request) return self._call_api(**http_info) - def list_all_tables_async_invoker(self, request): - warnings.warn("Method 'list_all_tables_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_all_tables_http_info(request) + def show_describe_table_async_invoker(self, request): + warnings.warn("Method 'show_describe_table_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_describe_table_http_info(request) return AsyncInvoker(self, http_info) - def _list_all_tables_http_info(self, request): + def _show_describe_table_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}", "request_type": request.__class__.__name__, - "response_type": "ListAllTablesResponse" + "response_type": "ShowDescribeTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7693,20 +7740,10 @@ def _list_all_tables_http_info(self, request): path_params = {} if 'database_name' in local_var_params: path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] query_params = [] - if 'current_page' in local_var_params: - query_params.append(('current-page', local_var_params['current_page'])) - if 'keyword' in local_var_params: - query_params.append(('keyword', local_var_params['keyword'])) - if 'page_size' in local_var_params: - query_params.append(('page-size', local_var_params['page_size'])) - if 'table_type' in local_var_params: - query_params.append(('table-type', local_var_params['table_type'])) - if 'with_detail' in local_var_params: - query_params.append(('with-detail', local_var_params['with_detail'])) - if 'with_priv' in local_var_params: - query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -7734,33 +7771,32 @@ def _list_all_tables_http_info(self, request): return http_info - def list_databases_async(self, request): - """查询所有数据库 + def show_partitions_async(self, request): + """获取分区信息列表 - 该API用于查询出所有的数据库信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDatabases - :type request: :class:`huaweicloudsdkdli.v1.ListDatabasesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListDatabasesResponse` + :param request: Request instance for ShowPartitions + :type request: :class:`huaweicloudsdkdli.v1.ShowPartitionsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowPartitionsResponse` """ - warnings.warn("Method 'list_databases_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_databases_http_info(request) + warnings.warn("Method 'show_partitions_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_partitions_http_info(request) return self._call_api(**http_info) - def list_databases_async_invoker(self, request): - warnings.warn("Method 'list_databases_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_databases_http_info(request) + def show_partitions_async_invoker(self, request): + warnings.warn("Method 'show_partitions_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_partitions_http_info(request) return AsyncInvoker(self, http_info) - def _list_databases_http_info(self, request): + def _show_partitions_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/partitions", "request_type": request.__class__.__name__, - "response_type": "ListDatabasesResponse" + "response_type": "ShowPartitionsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7770,18 +7806,16 @@ def _list_databases_http_info(self, request): collection_formats = {} path_params = {} + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] query_params = [] - if 'keyword' in local_var_params: - query_params.append(('keyword', local_var_params['keyword'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) if 'offset' in local_var_params: query_params.append(('offset', local_var_params['offset'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) - if 'with_priv' in local_var_params: - query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -7809,70 +7843,44 @@ def _list_databases_http_info(self, request): return http_info - def list_sql_jobs_async(self, request): - """查询所有作业 + def show_sql_job_detail_async(self, request): + """查询作业详细信息 - 该API用于查询当前工程下面的所有作业的信息。 + 该API用于查询作业的详细信息,如作业的databasename、tablename、file size和export mode等信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListSqlJobs - :type request: :class:`huaweicloudsdkdli.v1.ListSqlJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListSqlJobsResponse` + :param request: Request instance for ShowSqlJobDetail + :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobDetailRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobDetailResponse` """ - http_info = self._list_sql_jobs_http_info(request) + http_info = self._show_sql_job_detail_http_info(request) return self._call_api(**http_info) - def list_sql_jobs_async_invoker(self, request): - http_info = self._list_sql_jobs_http_info(request) + def show_sql_job_detail_async_invoker(self, request): + http_info = self._show_sql_job_detail_http_info(request) return AsyncInvoker(self, http_info) - def _list_sql_jobs_http_info(self, request): + def _show_sql_job_detail_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/jobs", - "request_type": request.__class__.__name__, - "response_type": "ListSqlJobsResponse" - } - - 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 'current_page' in local_var_params: - query_params.append(('current-page', local_var_params['current_page'])) - if 'db_name' in local_var_params: - query_params.append(('db_name', local_var_params['db_name'])) - if 'end' in local_var_params: - query_params.append(('end', local_var_params['end'])) - if 'engine_type' in local_var_params: - query_params.append(('engine-type', local_var_params['engine_type'])) - if 'job_status' in local_var_params: - query_params.append(('job-status', local_var_params['job_status'])) - if 'job_type' in local_var_params: - query_params.append(('job-type', local_var_params['job_type'])) - if 'order' in local_var_params: - query_params.append(('order', local_var_params['order'])) - if 'owner' in local_var_params: - query_params.append(('owner', local_var_params['owner'])) - if 'page_size' in local_var_params: - query_params.append(('page-size', local_var_params['page_size'])) - if 'queue_name' in local_var_params: - query_params.append(('queue_name', local_var_params['queue_name'])) - if 'sql_pattern' in local_var_params: - query_params.append(('sql_pattern', local_var_params['sql_pattern'])) - if 'start' in local_var_params: - query_params.append(('start', local_var_params['start'])) - if 'table_name' in local_var_params: - query_params.append(('table_name', local_var_params['table_name'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) + "resource_path": "/v1.0/{project_id}/jobs/{job_id}/detail", + "request_type": request.__class__.__name__, + "response_type": "ShowSqlJobDetailResponse" + } + + 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 = {} @@ -7900,32 +7908,31 @@ def _list_sql_jobs_http_info(self, request): return http_info - def preview_sql_job_result_async(self, request): - """预览SQL作业查询结果 + def show_sql_job_progress_async(self, request): + """查询作业执行进度信息 - 该API用于在执行SQL查询语句的作业完成后,查看该作业执行的结果。目前仅支持查看“QUERY”类型作业的执行结果。 - 该API只能查看前1000条的结果记录,若要查看全部的结果记录,需要先导出查询结果再进行查看。 + 该API用于获取作业执行进度信息,如果作业正在执行,可以获取到子作业的信息,如果作业刚开始或者已经结束,不可以获取到子作业信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for PreviewSqlJobResult - :type request: :class:`huaweicloudsdkdli.v1.PreviewSqlJobResultRequest` - :rtype: :class:`huaweicloudsdkdli.v1.PreviewSqlJobResultResponse` + :param request: Request instance for ShowSqlJobProgress + :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobProgressRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobProgressResponse` """ - http_info = self._preview_sql_job_result_http_info(request) + http_info = self._show_sql_job_progress_http_info(request) return self._call_api(**http_info) - def preview_sql_job_result_async_invoker(self, request): - http_info = self._preview_sql_job_result_http_info(request) + def show_sql_job_progress_async_invoker(self, request): + http_info = self._show_sql_job_progress_http_info(request) return AsyncInvoker(self, http_info) - def _preview_sql_job_result_http_info(self, request): + def _show_sql_job_progress_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/jobs/{job_id}/preview", + "resource_path": "/v1/{project_id}/jobs/{job_id}/progress", "request_type": request.__class__.__name__, - "response_type": "PreviewSqlJobResultResponse" + "response_type": "ShowSqlJobProgressResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7939,8 +7946,6 @@ def _preview_sql_job_result_http_info(self, request): path_params['job_id'] = local_var_params['job_id'] query_params = [] - if 'queue_name' in local_var_params: - query_params.append(('queue-name', local_var_params['queue_name'])) header_params = {} @@ -7968,33 +7973,31 @@ def _preview_sql_job_result_http_info(self, request): return http_info - def show_describe_table_async(self, request): - """描述表信息 + def show_sql_job_status_async(self, request): + """查询作业状态 - 该API用于描述指定表的元数据信息。 + 该API用于在作业提交后查询作业状态。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDescribeTable - :type request: :class:`huaweicloudsdkdli.v1.ShowDescribeTableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowDescribeTableResponse` + :param request: Request instance for ShowSqlJobStatus + :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobStatusRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobStatusResponse` """ - warnings.warn("Method 'show_describe_table_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_describe_table_http_info(request) + http_info = self._show_sql_job_status_http_info(request) return self._call_api(**http_info) - def show_describe_table_async_invoker(self, request): - warnings.warn("Method 'show_describe_table_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_describe_table_http_info(request) + def show_sql_job_status_async_invoker(self, request): + http_info = self._show_sql_job_status_http_info(request) return AsyncInvoker(self, http_info) - def _show_describe_table_http_info(self, request): + def _show_sql_job_status_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}", + "resource_path": "/v1.0/{project_id}/jobs/{job_id}/status", "request_type": request.__class__.__name__, - "response_type": "ShowDescribeTableResponse" + "response_type": "ShowSqlJobStatusResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8004,10 +8007,8 @@ def _show_describe_table_http_info(self, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -8037,32 +8038,33 @@ def _show_describe_table_http_info(self, request): return http_info - def show_partitions_async(self, request): - """获取分区信息列表 + def show_sql_sample_templates_async(self, request): + """查询所有SQL样例模板 + 该API用于查询所有SQL样例模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowPartitions - :type request: :class:`huaweicloudsdkdli.v1.ShowPartitionsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowPartitionsResponse` + :param request: Request instance for ShowSqlSampleTemplates + :type request: :class:`huaweicloudsdkdli.v1.ShowSqlSampleTemplatesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlSampleTemplatesResponse` """ - warnings.warn("Method 'show_partitions_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_partitions_http_info(request) + warnings.warn("Method 'show_sql_sample_templates_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_sql_sample_templates_http_info(request) return self._call_api(**http_info) - def show_partitions_async_invoker(self, request): - warnings.warn("Method 'show_partitions_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_partitions_http_info(request) + def show_sql_sample_templates_async_invoker(self, request): + warnings.warn("Method 'show_sql_sample_templates_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_sql_sample_templates_http_info(request) return AsyncInvoker(self, http_info) - def _show_partitions_http_info(self, request): + def _show_sql_sample_templates_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/partitions", + "resource_path": "/v1.0/{project_id}/sqls/sample", "request_type": request.__class__.__name__, - "response_type": "ShowPartitionsResponse" + "response_type": "ShowSqlSampleTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8072,16 +8074,8 @@ def _show_partitions_http_info(self, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} @@ -8109,31 +8103,33 @@ def _show_partitions_http_info(self, request): return http_info - def show_sql_job_detail_async(self, request): - """查询作业详细信息 + def show_table_content_async(self, request): + """预览表内容 - 该API用于查询作业的详细信息,如作业的databasename、tablename、file size和export mode等信息。 + 该API用于用于预览表中前10行的内容。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowSqlJobDetail - :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobDetailRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobDetailResponse` + :param request: Request instance for ShowTableContent + :type request: :class:`huaweicloudsdkdli.v1.ShowTableContentRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowTableContentResponse` """ - http_info = self._show_sql_job_detail_http_info(request) + warnings.warn("Method 'show_table_content_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_table_content_http_info(request) return self._call_api(**http_info) - def show_sql_job_detail_async_invoker(self, request): - http_info = self._show_sql_job_detail_http_info(request) + def show_table_content_async_invoker(self, request): + warnings.warn("Method 'show_table_content_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_table_content_http_info(request) return AsyncInvoker(self, http_info) - def _show_sql_job_detail_http_info(self, request): + def _show_table_content_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/jobs/{job_id}/detail", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/preview", "request_type": request.__class__.__name__, - "response_type": "ShowSqlJobDetailResponse" + "response_type": "ShowTableContentResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8143,10 +8139,14 @@ def _show_sql_job_detail_http_info(self, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] query_params = [] + if 'mode' in local_var_params: + query_params.append(('mode', local_var_params['mode'])) header_params = {} @@ -8174,31 +8174,33 @@ def _show_sql_job_detail_http_info(self, request): return http_info - def show_sql_job_progress_async(self, request): - """查询作业执行进度信息 + def update_database_owner_async(self, request): + """修改数据库用户 - 该API用于获取作业执行进度信息,如果作业正在执行,可以获取到子作业的信息,如果作业刚开始或者已经结束,不可以获取到子作业信息。 + 用于修改数据库的owner。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowSqlJobProgress - :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobProgressRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobProgressResponse` + :param request: Request instance for UpdateDatabaseOwner + :type request: :class:`huaweicloudsdkdli.v1.UpdateDatabaseOwnerRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateDatabaseOwnerResponse` """ - http_info = self._show_sql_job_progress_http_info(request) + warnings.warn("Method 'update_database_owner_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_database_owner_http_info(request) return self._call_api(**http_info) - def show_sql_job_progress_async_invoker(self, request): - http_info = self._show_sql_job_progress_http_info(request) + def update_database_owner_async_invoker(self, request): + warnings.warn("Method 'update_database_owner_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_database_owner_http_info(request) return AsyncInvoker(self, http_info) - def _show_sql_job_progress_http_info(self, request): + def _update_database_owner_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/jobs/{job_id}/progress", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/owner", "request_type": request.__class__.__name__, - "response_type": "ShowSqlJobProgressResponse" + "response_type": "UpdateDatabaseOwnerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8208,8 +8210,8 @@ def _show_sql_job_progress_http_info(self, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] query_params = [] @@ -8218,6 +8220,8 @@ def _show_sql_job_progress_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -8239,31 +8243,31 @@ def _show_sql_job_progress_http_info(self, request): return http_info - def show_sql_job_status_async(self, request): - """查询作业状态 + def update_sql_job_template_async(self, request): + """更新SQL模板 - 该API用于在作业提交后查询作业状态。 + 该API用于更新SQL模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowSqlJobStatus - :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobStatusRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobStatusResponse` + :param request: Request instance for UpdateSqlJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.UpdateSqlJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateSqlJobTemplateResponse` """ - http_info = self._show_sql_job_status_http_info(request) + http_info = self._update_sql_job_template_http_info(request) return self._call_api(**http_info) - def show_sql_job_status_async_invoker(self, request): - http_info = self._show_sql_job_status_http_info(request) + def update_sql_job_template_async_invoker(self, request): + http_info = self._update_sql_job_template_http_info(request) return AsyncInvoker(self, http_info) - def _show_sql_job_status_http_info(self, request): + def _update_sql_job_template_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/jobs/{job_id}/status", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/sqls/{sql_id}", "request_type": request.__class__.__name__, - "response_type": "ShowSqlJobStatusResponse" + "response_type": "UpdateSqlJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8273,8 +8277,8 @@ def _show_sql_job_status_http_info(self, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] + if 'sql_id' in local_var_params: + path_params['sql_id'] = local_var_params['sql_id'] query_params = [] @@ -8283,6 +8287,8 @@ def _show_sql_job_status_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -8304,33 +8310,33 @@ def _show_sql_job_status_http_info(self, request): return http_info - def show_table_content_async(self, request): - """预览表内容 + def update_table_owner_async(self, request): + """修改表用户 - 该API用于用于预览表中前10行的内容。 + 用于修改表的owner。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowTableContent - :type request: :class:`huaweicloudsdkdli.v1.ShowTableContentRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowTableContentResponse` + :param request: Request instance for UpdateTableOwner + :type request: :class:`huaweicloudsdkdli.v1.UpdateTableOwnerRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateTableOwnerResponse` """ - warnings.warn("Method 'show_table_content_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_table_content_http_info(request) + warnings.warn("Method 'update_table_owner_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_table_owner_http_info(request) return self._call_api(**http_info) - def show_table_content_async_invoker(self, request): - warnings.warn("Method 'show_table_content_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_table_content_http_info(request) + def update_table_owner_async_invoker(self, request): + warnings.warn("Method 'update_table_owner_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_table_owner_http_info(request) return AsyncInvoker(self, http_info) - def _show_table_content_http_info(self, request): + def _update_table_owner_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/preview", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/owner", "request_type": request.__class__.__name__, - "response_type": "ShowTableContentResponse" + "response_type": "UpdateTableOwnerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8346,14 +8352,14 @@ def _show_table_content_http_info(self, request): path_params['table_name'] = local_var_params['table_name'] query_params = [] - if 'mode' in local_var_params: - query_params.append(('mode', local_var_params['mode'])) 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() @@ -8375,33 +8381,31 @@ def _show_table_content_http_info(self, request): return http_info - def update_database_owner_async(self, request): - """修改数据库用户 + def cancel_spark_job_async(self, request): + """取消批处理作业 - 用于修改数据库的owner。 + 该API用于取消批处理作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDatabaseOwner - :type request: :class:`huaweicloudsdkdli.v1.UpdateDatabaseOwnerRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateDatabaseOwnerResponse` + :param request: Request instance for CancelSparkJob + :type request: :class:`huaweicloudsdkdli.v1.CancelSparkJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CancelSparkJobResponse` """ - warnings.warn("Method 'update_database_owner_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_database_owner_http_info(request) + http_info = self._cancel_spark_job_http_info(request) return self._call_api(**http_info) - def update_database_owner_async_invoker(self, request): - warnings.warn("Method 'update_database_owner_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_database_owner_http_info(request) + def cancel_spark_job_async_invoker(self, request): + http_info = self._cancel_spark_job_http_info(request) return AsyncInvoker(self, http_info) - def _update_database_owner_http_info(self, request): + def _cancel_spark_job_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/owner", + "method": "DELETE", + "resource_path": "/v2.0/{project_id}/batches/{batch_id}", "request_type": request.__class__.__name__, - "response_type": "UpdateDatabaseOwnerResponse" + "response_type": "CancelSparkJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8411,8 +8415,8 @@ def _update_database_owner_http_info(self, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] + if 'batch_id' in local_var_params: + path_params['batch_id'] = local_var_params['batch_id'] query_params = [] @@ -8421,8 +8425,6 @@ def _update_database_owner_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -8444,33 +8446,31 @@ def _update_database_owner_http_info(self, request): return http_info - def update_table_owner_async(self, request): - """修改表用户 + def create_spark_job_async(self, request): + """创建批处理作业 - 用于修改表的owner。 + 该API用于在某个队列上创建作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateTableOwner - :type request: :class:`huaweicloudsdkdli.v1.UpdateTableOwnerRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateTableOwnerResponse` + :param request: Request instance for CreateSparkJob + :type request: :class:`huaweicloudsdkdli.v1.CreateSparkJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateSparkJobResponse` """ - warnings.warn("Method 'update_table_owner_async' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_table_owner_http_info(request) + http_info = self._create_spark_job_http_info(request) return self._call_api(**http_info) - def update_table_owner_async_invoker(self, request): - warnings.warn("Method 'update_table_owner_async_invoker' of DliAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_table_owner_http_info(request) + def create_spark_job_async_invoker(self, request): + http_info = self._create_spark_job_http_info(request) return AsyncInvoker(self, http_info) - def _update_table_owner_http_info(self, request): + def _create_spark_job_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/owner", + "method": "POST", + "resource_path": "/v2.0/{project_id}/batches", "request_type": request.__class__.__name__, - "response_type": "UpdateTableOwnerResponse" + "response_type": "CreateSparkJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8480,14 +8480,12 @@ def _update_table_owner_http_info(self, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] query_params = [] header_params = {} + if 'user_id' in local_var_params: + header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -8515,31 +8513,31 @@ def _update_table_owner_http_info(self, request): return http_info - def cancel_spark_job_async(self, request): - """取消批处理作业 + def create_spark_job_template_async(self, request): + """创建作业模板 - 该API用于取消批处理作业。 + 该API用于创建作业模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CancelSparkJob - :type request: :class:`huaweicloudsdkdli.v1.CancelSparkJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CancelSparkJobResponse` + :param request: Request instance for CreateSparkJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.CreateSparkJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateSparkJobTemplateResponse` """ - http_info = self._cancel_spark_job_http_info(request) + http_info = self._create_spark_job_template_http_info(request) return self._call_api(**http_info) - def cancel_spark_job_async_invoker(self, request): - http_info = self._cancel_spark_job_http_info(request) + def create_spark_job_template_async_invoker(self, request): + http_info = self._create_spark_job_template_http_info(request) return AsyncInvoker(self, http_info) - def _cancel_spark_job_http_info(self, request): + def _create_spark_job_template_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v2.0/{project_id}/batches/{batch_id}", + "method": "POST", + "resource_path": "/v3/{project_id}/templates", "request_type": request.__class__.__name__, - "response_type": "CancelSparkJobResponse" + "response_type": "CreateSparkJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8549,8 +8547,6 @@ def _cancel_spark_job_http_info(self, request): collection_formats = {} path_params = {} - if 'batch_id' in local_var_params: - path_params['batch_id'] = local_var_params['batch_id'] query_params = [] @@ -8559,6 +8555,8 @@ def _cancel_spark_job_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -8580,31 +8578,31 @@ def _cancel_spark_job_http_info(self, request): return http_info - def create_spark_job_async(self, request): - """创建批处理作业 + def list_spark_job_templates_async(self, request): + """查询作业模板列表 - 该API用于在某个队列上创建作业。 + 该API用于查询作业模板列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateSparkJob - :type request: :class:`huaweicloudsdkdli.v1.CreateSparkJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateSparkJobResponse` + :param request: Request instance for ListSparkJobTemplates + :type request: :class:`huaweicloudsdkdli.v1.ListSparkJobTemplatesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListSparkJobTemplatesResponse` """ - http_info = self._create_spark_job_http_info(request) + http_info = self._list_spark_job_templates_http_info(request) return self._call_api(**http_info) - def create_spark_job_async_invoker(self, request): - http_info = self._create_spark_job_http_info(request) + def list_spark_job_templates_async_invoker(self, request): + http_info = self._list_spark_job_templates_http_info(request) return AsyncInvoker(self, http_info) - def _create_spark_job_http_info(self, request): + def _list_spark_job_templates_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v2.0/{project_id}/batches", + "method": "GET", + "resource_path": "/v3/{project_id}/templates", "request_type": request.__class__.__name__, - "response_type": "CreateSparkJobResponse" + "response_type": "ListSparkJobTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8616,16 +8614,20 @@ def _create_spark_job_http_info(self, request): path_params = {} query_params = [] + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'keyword' in local_var_params: + query_params.append(('keyword', local_var_params['keyword'])) + if 'page_size' in local_var_params: + query_params.append(('page-size', local_var_params['page_size'])) + if 'current_page' in local_var_params: + query_params.append(('current-page', local_var_params['current_page'])) header_params = {} - if 'user_id' in local_var_params: - header_params['USER-ID'] = local_var_params['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() @@ -8935,6 +8937,138 @@ def _show_spark_job_status_http_info(self, request): return http_info + def show_spark_job_template_async(self, request): + """获取作业模板 + + 该API用于获取作业模板。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowSparkJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.ShowSparkJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowSparkJobTemplateResponse` + """ + http_info = self._show_spark_job_template_http_info(request) + return self._call_api(**http_info) + + def show_spark_job_template_async_invoker(self, request): + http_info = self._show_spark_job_template_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_spark_job_template_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/templates/{template_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowSparkJobTemplateResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_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 update_spark_job_template_async(self, request): + """修改作业模板 + + 该API用于修改作业模板。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateSparkJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.UpdateSparkJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateSparkJobTemplateResponse` + """ + http_info = self._update_spark_job_template_http_info(request) + return self._call_api(**http_info) + + def update_spark_job_template_async_invoker(self, request): + http_info = self._update_spark_job_template_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_spark_job_template_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/templates/{template_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateSparkJobTemplateResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_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 _call_api(self, **kwargs): try: kwargs["async_request"] = True diff --git a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/dli_client.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/dli_client.py index efbd59d442..3461d53e9f 100644 --- a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/dli_client.py +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/dli_client.py @@ -32,31 +32,31 @@ def new_builder(cls, clazz=None): return client_builder - def batch_delete_sql_job_templates(self, request): - """批量删除SQL模板 + def associate_queue_to_elastic_resource_pool(self, request): + """关联队列到弹性资源池 - 该API用于批量删除SQL模板。 + 关联队列到弹性资源池 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchDeleteSqlJobTemplates - :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteSqlJobTemplatesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteSqlJobTemplatesResponse` + :param request: Request instance for AssociateQueueToElasticResourcePool + :type request: :class:`huaweicloudsdkdli.v1.AssociateQueueToElasticResourcePoolRequest` + :rtype: :class:`huaweicloudsdkdli.v1.AssociateQueueToElasticResourcePoolResponse` """ - http_info = self._batch_delete_sql_job_templates_http_info(request) + http_info = self._associate_queue_to_elastic_resource_pool_http_info(request) return self._call_api(**http_info) - def batch_delete_sql_job_templates_invoker(self, request): - http_info = self._batch_delete_sql_job_templates_http_info(request) + def associate_queue_to_elastic_resource_pool_invoker(self, request): + http_info = self._associate_queue_to_elastic_resource_pool_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _batch_delete_sql_job_templates_http_info(cls, request): + def _associate_queue_to_elastic_resource_pool_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/sqls-deletion", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues", "request_type": request.__class__.__name__, - "response_type": "BatchDeleteSqlJobTemplatesResponse" + "response_type": "AssociateQueueToElasticResourcePoolResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -66,6 +66,8 @@ def _batch_delete_sql_job_templates_http_info(cls, request): collection_formats = {} path_params = {} + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] @@ -97,31 +99,31 @@ def _batch_delete_sql_job_templates_http_info(cls, request): return http_info - def create_spark_job_template(self, request): - """创建作业模板 + def associate_queue_to_enhanced_connection(self, request): + """绑定队列 - 该API用于创建作业模板。 + 该API用于在已创建的增强型跨源中绑定队列。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateSparkJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.CreateSparkJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateSparkJobTemplateResponse` + :param request: Request instance for AssociateQueueToEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.AssociateQueueToEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.AssociateQueueToEnhancedConnectionResponse` """ - http_info = self._create_spark_job_template_http_info(request) + http_info = self._associate_queue_to_enhanced_connection_http_info(request) return self._call_api(**http_info) - def create_spark_job_template_invoker(self, request): - http_info = self._create_spark_job_template_http_info(request) + def associate_queue_to_enhanced_connection_invoker(self, request): + http_info = self._associate_queue_to_enhanced_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_spark_job_template_http_info(cls, request): + def _associate_queue_to_enhanced_connection_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v3/{project_id}/templates", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/associate-queue", "request_type": request.__class__.__name__, - "response_type": "CreateSparkJobTemplateResponse" + "response_type": "AssociateQueueToEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -131,6 +133,8 @@ def _create_spark_job_template_http_info(cls, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -162,31 +166,33 @@ def _create_spark_job_template_http_info(cls, request): return http_info - def create_sql_job_template(self, request): - """存储指定SQL语句 + def batch_delete_queue_plans(self, request): + """批量删除队列定时扩缩容计划 - 该API用于存储指定的SQL语句,后续可以重复使用。 + 该API用于批量删除队列定时扩缩容计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateSqlJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.CreateSqlJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateSqlJobTemplateResponse` + :param request: Request instance for BatchDeleteQueuePlans + :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteQueuePlansRequest` + :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteQueuePlansResponse` """ - http_info = self._create_sql_job_template_http_info(request) + warnings.warn("Method 'batch_delete_queue_plans' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._batch_delete_queue_plans_http_info(request) return self._call_api(**http_info) - def create_sql_job_template_invoker(self, request): - http_info = self._create_sql_job_template_http_info(request) + def batch_delete_queue_plans_invoker(self, request): + warnings.warn("Method 'batch_delete_queue_plans_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._batch_delete_queue_plans_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_sql_job_template_http_info(cls, request): + def _batch_delete_queue_plans_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/sqls", + "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/batch-delete", "request_type": request.__class__.__name__, - "response_type": "CreateSqlJobTemplateResponse" + "response_type": "BatchDeleteQueuePlansResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -196,6 +202,8 @@ def _create_sql_job_template_http_info(cls, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -227,31 +235,35 @@ def _create_sql_job_template_http_info(cls, request): return http_info - def list_spark_job_templates(self, request): - """查询作业模板列表 + def change_authorization(self, request): + """数据赋权(用户) - 该API用于查询作业模板列表。 + 该API用于将数据库或数据表的数据权限赋给指定的其他用户。 + 说明: + 被赋权用户所在用户组的所属区域需具有Tenant Guest权限。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListSparkJobTemplates - :type request: :class:`huaweicloudsdkdli.v1.ListSparkJobTemplatesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListSparkJobTemplatesResponse` + :param request: Request instance for ChangeAuthorization + :type request: :class:`huaweicloudsdkdli.v1.ChangeAuthorizationRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ChangeAuthorizationResponse` """ - http_info = self._list_spark_job_templates_http_info(request) + warnings.warn("Method 'change_authorization' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_authorization_http_info(request) return self._call_api(**http_info) - def list_spark_job_templates_invoker(self, request): - http_info = self._list_spark_job_templates_http_info(request) + def change_authorization_invoker(self, request): + warnings.warn("Method 'change_authorization_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_authorization_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_spark_job_templates_http_info(cls, request): + def _change_authorization_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/templates", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/user-authorization", "request_type": request.__class__.__name__, - "response_type": "ListSparkJobTemplatesResponse" + "response_type": "ChangeAuthorizationResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -263,20 +275,14 @@ def _list_spark_job_templates_http_info(cls, request): path_params = {} query_params = [] - if 'type' in local_var_params: - query_params.append(('type', local_var_params['type'])) - if 'keyword' in local_var_params: - query_params.append(('keyword', local_var_params['keyword'])) - if 'page_size' in local_var_params: - query_params.append(('page-size', local_var_params['page_size'])) - if 'current_page' in local_var_params: - query_params.append(('current-page', local_var_params['current_page'])) 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() @@ -298,31 +304,33 @@ def _list_spark_job_templates_http_info(cls, request): return http_info - def list_sql_job_templates(self, request): - """查看所有SQL模板 + def change_queue_plan(self, request): + """修改队列定时扩缩容计划 - 该API用查看用户保存的所有SQL模板。 + 该API用于修改指定ID的队列定时扩缩容计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListSqlJobTemplates - :type request: :class:`huaweicloudsdkdli.v1.ListSqlJobTemplatesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListSqlJobTemplatesResponse` + :param request: Request instance for ChangeQueuePlan + :type request: :class:`huaweicloudsdkdli.v1.ChangeQueuePlanRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ChangeQueuePlanResponse` """ - http_info = self._list_sql_job_templates_http_info(request) + warnings.warn("Method 'change_queue_plan' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_queue_plan_http_info(request) return self._call_api(**http_info) - def list_sql_job_templates_invoker(self, request): - http_info = self._list_sql_job_templates_http_info(request) + def change_queue_plan_invoker(self, request): + warnings.warn("Method 'change_queue_plan_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_queue_plan_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_sql_job_templates_http_info(cls, request): + def _change_queue_plan_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/sqls", + "method": "PUT", + "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/{plan_id}", "request_type": request.__class__.__name__, - "response_type": "ListSqlJobTemplatesResponse" + "response_type": "ChangeQueuePlanResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -332,16 +340,20 @@ def _list_sql_job_templates_http_info(cls, request): collection_formats = {} path_params = {} + if 'plan_id' in local_var_params: + path_params['plan_id'] = local_var_params['plan_id'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] - if 'keyword' in local_var_params: - query_params.append(('keyword', local_var_params['keyword'])) 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() @@ -363,31 +375,33 @@ def _list_sql_job_templates_http_info(cls, request): return http_info - def show_spark_job_template(self, request): - """获取作业模板 + def create_auth_info(self, request): + """创建跨源认证 - 该API用于获取作业模板。 + 该API用于创建跨源认证。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowSparkJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.ShowSparkJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowSparkJobTemplateResponse` + :param request: Request instance for CreateAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.CreateAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateAuthInfoResponse` """ - http_info = self._show_spark_job_template_http_info(request) + warnings.warn("Method 'create_auth_info' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_auth_info_http_info(request) return self._call_api(**http_info) - def show_spark_job_template_invoker(self, request): - http_info = self._show_spark_job_template_http_info(request) + def create_auth_info_invoker(self, request): + warnings.warn("Method 'create_auth_info_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_auth_info_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_spark_job_template_http_info(cls, request): + def _create_auth_info_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/templates/{template_id}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "ShowSparkJobTemplateResponse" + "response_type": "CreateAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -397,8 +411,6 @@ def _show_spark_job_template_http_info(cls, request): collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['template_id'] = local_var_params['template_id'] query_params = [] @@ -407,6 +419,8 @@ def _show_spark_job_template_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -428,33 +442,31 @@ def _show_spark_job_template_http_info(cls, request): return http_info - def show_sql_sample_templates(self, request): - """查询所有SQL样例模板 + def create_connectivity_task(self, request): + """创建地址连通性请求 - 该API用于查询所有SQL样例模板。 + 创建地址连通性请求API接口,往指定集群发送地址连通性测试请求,并将测试地址插入表内 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowSqlSampleTemplates - :type request: :class:`huaweicloudsdkdli.v1.ShowSqlSampleTemplatesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlSampleTemplatesResponse` + :param request: Request instance for CreateConnectivityTask + :type request: :class:`huaweicloudsdkdli.v1.CreateConnectivityTaskRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateConnectivityTaskResponse` """ - warnings.warn("Method 'show_sql_sample_templates' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_sql_sample_templates_http_info(request) + http_info = self._create_connectivity_task_http_info(request) return self._call_api(**http_info) - def show_sql_sample_templates_invoker(self, request): - warnings.warn("Method 'show_sql_sample_templates_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_sql_sample_templates_http_info(request) + def create_connectivity_task_invoker(self, request): + http_info = self._create_connectivity_task_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_sql_sample_templates_http_info(cls, request): + def _create_connectivity_task_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/sqls/sample", + "method": "POST", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}/connection-test", "request_type": request.__class__.__name__, - "response_type": "ShowSqlSampleTemplatesResponse" + "response_type": "CreateConnectivityTaskResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -464,6 +476,8 @@ def _show_sql_sample_templates_http_info(cls, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -472,6 +486,8 @@ def _show_sql_sample_templates_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -493,31 +509,36 @@ def _show_sql_sample_templates_http_info(cls, request): return http_info - def update_spark_job_template(self, request): - """修改作业模板 + def create_datasource_connection(self, request): + """创建经典型跨源连接 - 该API用于修改作业模板。 + 该API用于创建与其他服务的经典型跨源连接。 + 说明: + 如果需要了解Console界面的使用方法,可参考经典型跨源连接。 + 系统default队列不支持创建跨源连接。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateSparkJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.UpdateSparkJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateSparkJobTemplateResponse` + :param request: Request instance for CreateDatasourceConnection + :type request: :class:`huaweicloudsdkdli.v1.CreateDatasourceConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateDatasourceConnectionResponse` """ - http_info = self._update_spark_job_template_http_info(request) + warnings.warn("Method 'create_datasource_connection' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_datasource_connection_http_info(request) return self._call_api(**http_info) - def update_spark_job_template_invoker(self, request): - http_info = self._update_spark_job_template_http_info(request) + def create_datasource_connection_invoker(self, request): + warnings.warn("Method 'create_datasource_connection_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_datasource_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_spark_job_template_http_info(cls, request): + def _create_datasource_connection_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/templates/{template_id}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/datasource-connection", "request_type": request.__class__.__name__, - "response_type": "UpdateSparkJobTemplateResponse" + "response_type": "CreateDatasourceConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -527,8 +548,6 @@ def _update_spark_job_template_http_info(cls, request): collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['template_id'] = local_var_params['template_id'] query_params = [] @@ -560,31 +579,33 @@ def _update_spark_job_template_http_info(cls, request): return http_info - def update_sql_job_template(self, request): - """更新SQL模板 - - 该API用于更新SQL模板。 + def create_dli_agency(self, request): + """创建DLI委托 + + 创建DLI委托 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateSqlJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.UpdateSqlJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateSqlJobTemplateResponse` + :param request: Request instance for CreateDliAgency + :type request: :class:`huaweicloudsdkdli.v1.CreateDliAgencyRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateDliAgencyResponse` """ - http_info = self._update_sql_job_template_http_info(request) + warnings.warn("Method 'create_dli_agency' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_dli_agency_http_info(request) return self._call_api(**http_info) - def update_sql_job_template_invoker(self, request): - http_info = self._update_sql_job_template_http_info(request) + def create_dli_agency_invoker(self, request): + warnings.warn("Method 'create_dli_agency_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_dli_agency_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_sql_job_template_http_info(cls, request): + def _create_dli_agency_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/sqls/{sql_id}", + "method": "POST", + "resource_path": "/v2/{project_id}/agency", "request_type": request.__class__.__name__, - "response_type": "UpdateSqlJobTemplateResponse" + "response_type": "CreateDliAgencyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -594,8 +615,6 @@ def _update_sql_job_template_http_info(cls, request): collection_formats = {} path_params = {} - if 'sql_id' in local_var_params: - path_params['sql_id'] = local_var_params['sql_id'] query_params = [] @@ -627,31 +646,31 @@ def _update_sql_job_template_http_info(cls, request): return http_info - def associate_queue_to_elastic_resource_pool(self, request): - """关联队列到弹性资源池 + def create_elastic_resource_pool(self, request): + """创建弹性资源池 - 关联队列到弹性资源池 + 创建弹性资源池 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for AssociateQueueToElasticResourcePool - :type request: :class:`huaweicloudsdkdli.v1.AssociateQueueToElasticResourcePoolRequest` - :rtype: :class:`huaweicloudsdkdli.v1.AssociateQueueToElasticResourcePoolResponse` + :param request: Request instance for CreateElasticResourcePool + :type request: :class:`huaweicloudsdkdli.v1.CreateElasticResourcePoolRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateElasticResourcePoolResponse` """ - http_info = self._associate_queue_to_elastic_resource_pool_http_info(request) + http_info = self._create_elastic_resource_pool_http_info(request) return self._call_api(**http_info) - def associate_queue_to_elastic_resource_pool_invoker(self, request): - http_info = self._associate_queue_to_elastic_resource_pool_http_info(request) + def create_elastic_resource_pool_invoker(self, request): + http_info = self._create_elastic_resource_pool_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _associate_queue_to_elastic_resource_pool_http_info(cls, request): + def _create_elastic_resource_pool_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues", + "resource_path": "/v3/{project_id}/elastic-resource-pools", "request_type": request.__class__.__name__, - "response_type": "AssociateQueueToElasticResourcePoolResponse" + "response_type": "CreateElasticResourcePoolResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -661,8 +680,6 @@ def _associate_queue_to_elastic_resource_pool_http_info(cls, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] @@ -694,31 +711,31 @@ def _associate_queue_to_elastic_resource_pool_http_info(cls, request): return http_info - def associate_queue_to_enhanced_connection(self, request): - """绑定队列 + def create_enhanced_connection(self, request): + """创建增强型跨源连接 - 该API用于在已创建的增强型跨源中绑定队列。 + 该API用于创建与其他服务的增强型跨源连接。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for AssociateQueueToEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.AssociateQueueToEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.AssociateQueueToEnhancedConnectionResponse` + :param request: Request instance for CreateEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionResponse` """ - http_info = self._associate_queue_to_enhanced_connection_http_info(request) + http_info = self._create_enhanced_connection_http_info(request) return self._call_api(**http_info) - def associate_queue_to_enhanced_connection_invoker(self, request): - http_info = self._associate_queue_to_enhanced_connection_http_info(request) + def create_enhanced_connection_invoker(self, request): + http_info = self._create_enhanced_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _associate_queue_to_enhanced_connection_http_info(cls, request): + def _create_enhanced_connection_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/associate-queue", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections", "request_type": request.__class__.__name__, - "response_type": "AssociateQueueToEnhancedConnectionResponse" + "response_type": "CreateEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -728,8 +745,6 @@ def _associate_queue_to_enhanced_connection_http_info(cls, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -761,33 +776,33 @@ def _associate_queue_to_enhanced_connection_http_info(cls, request): return http_info - def batch_delete_queue_plans(self, request): - """批量删除队列定时扩缩容计划 + def create_enhanced_connection_routes(self, request): + """创建路由 - 该API用于批量删除队列定时扩缩容计划。 + 该API用于创建跨源需要的路由。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchDeleteQueuePlans - :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteQueuePlansRequest` - :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteQueuePlansResponse` + :param request: Request instance for CreateEnhancedConnectionRoutes + :type request: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRoutesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRoutesResponse` """ - warnings.warn("Method 'batch_delete_queue_plans' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._batch_delete_queue_plans_http_info(request) + warnings.warn("Method 'create_enhanced_connection_routes' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_enhanced_connection_routes_http_info(request) return self._call_api(**http_info) - def batch_delete_queue_plans_invoker(self, request): - warnings.warn("Method 'batch_delete_queue_plans_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._batch_delete_queue_plans_http_info(request) + def create_enhanced_connection_routes_invoker(self, request): + warnings.warn("Method 'create_enhanced_connection_routes_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_enhanced_connection_routes_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _batch_delete_queue_plans_http_info(cls, request): + def _create_enhanced_connection_routes_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/batch-delete", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/routes", "request_type": request.__class__.__name__, - "response_type": "BatchDeleteQueuePlansResponse" + "response_type": "CreateEnhancedConnectionRoutesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -797,8 +812,8 @@ def _batch_delete_queue_plans_http_info(cls, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -830,35 +845,31 @@ def _batch_delete_queue_plans_http_info(cls, request): return http_info - def change_authorization(self, request): - """数据赋权(用户) + def create_global_variable(self, request): + """创建DLI全局变量 - 该API用于将数据库或数据表的数据权限赋给指定的其他用户。 - 说明: - 被赋权用户所在用户组的所属区域需具有Tenant Guest权限。 + 创建全局变量。全局变量用于替换SQL作业中的敏感数据。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ChangeAuthorization - :type request: :class:`huaweicloudsdkdli.v1.ChangeAuthorizationRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ChangeAuthorizationResponse` + :param request: Request instance for CreateGlobalVariable + :type request: :class:`huaweicloudsdkdli.v1.CreateGlobalVariableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateGlobalVariableResponse` """ - warnings.warn("Method 'change_authorization' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_authorization_http_info(request) + http_info = self._create_global_variable_http_info(request) return self._call_api(**http_info) - def change_authorization_invoker(self, request): - warnings.warn("Method 'change_authorization_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_authorization_http_info(request) + def create_global_variable_invoker(self, request): + http_info = self._create_global_variable_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _change_authorization_http_info(cls, request): + def _create_global_variable_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/user-authorization", + "method": "POST", + "resource_path": "/v1.0/{project_id}/variables", "request_type": request.__class__.__name__, - "response_type": "ChangeAuthorizationResponse" + "response_type": "CreateGlobalVariableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -899,33 +910,31 @@ def _change_authorization_http_info(cls, request): return http_info - def change_queue_plan(self, request): - """修改队列定时扩缩容计划 + def create_job_auth_info(self, request): + """创建跨源认证 - 该API用于修改指定ID的队列定时扩缩容计划。 + 该API用于创建跨源认证。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ChangeQueuePlan - :type request: :class:`huaweicloudsdkdli.v1.ChangeQueuePlanRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ChangeQueuePlanResponse` + :param request: Request instance for CreateJobAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.CreateJobAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateJobAuthInfoResponse` """ - warnings.warn("Method 'change_queue_plan' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_queue_plan_http_info(request) + http_info = self._create_job_auth_info_http_info(request) return self._call_api(**http_info) - def change_queue_plan_invoker(self, request): - warnings.warn("Method 'change_queue_plan_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_queue_plan_http_info(request) + def create_job_auth_info_invoker(self, request): + http_info = self._create_job_auth_info_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _change_queue_plan_http_info(cls, request): + def _create_job_auth_info_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/{plan_id}", + "method": "POST", + "resource_path": "/v3/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "ChangeQueuePlanResponse" + "response_type": "CreateJobAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -935,10 +944,6 @@ def _change_queue_plan_http_info(cls, request): collection_formats = {} path_params = {} - if 'plan_id' in local_var_params: - path_params['plan_id'] = local_var_params['plan_id'] - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -970,33 +975,31 @@ def _change_queue_plan_http_info(cls, request): return http_info - def create_auth_info(self, request): - """创建跨源认证 + def create_queue(self, request): + """创建队列 - 该API用于创建跨源认证。 + 该API用于创建队列,该队列将会绑定用户指定的计算资源。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.CreateAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateAuthInfoResponse` + :param request: Request instance for CreateQueue + :type request: :class:`huaweicloudsdkdli.v1.CreateQueueRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateQueueResponse` """ - warnings.warn("Method 'create_auth_info' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_auth_info_http_info(request) + http_info = self._create_queue_http_info(request) return self._call_api(**http_info) - def create_auth_info_invoker(self, request): - warnings.warn("Method 'create_auth_info_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_auth_info_http_info(request) + def create_queue_invoker(self, request): + http_info = self._create_queue_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_auth_info_http_info(cls, request): + def _create_queue_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource/auth-infos", + "resource_path": "/v1.0/{project_id}/queues", "request_type": request.__class__.__name__, - "response_type": "CreateAuthInfoResponse" + "response_type": "CreateQueueResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1037,31 +1040,33 @@ def _create_auth_info_http_info(cls, request): return http_info - def create_connectivity_task(self, request): - """创建地址连通性请求 + def create_queue_plan(self, request): + """创建队列定时扩缩容计划 - 创建地址连通性请求API接口,往指定集群发送地址连通性测试请求,并将测试地址插入表内 + 创建队列定时扩缩容计划接口,对指定的队列创建定时规格变更计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateConnectivityTask - :type request: :class:`huaweicloudsdkdli.v1.CreateConnectivityTaskRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateConnectivityTaskResponse` + :param request: Request instance for CreateQueuePlan + :type request: :class:`huaweicloudsdkdli.v1.CreateQueuePlanRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateQueuePlanResponse` """ - http_info = self._create_connectivity_task_http_info(request) + warnings.warn("Method 'create_queue_plan' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_queue_plan_http_info(request) return self._call_api(**http_info) - def create_connectivity_task_invoker(self, request): - http_info = self._create_connectivity_task_http_info(request) + def create_queue_plan_invoker(self, request): + warnings.warn("Method 'create_queue_plan_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_queue_plan_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_connectivity_task_http_info(cls, request): + def _create_queue_plan_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}/connection-test", + "resource_path": "/v1/{project_id}/queues/{queue_name}/plans", "request_type": request.__class__.__name__, - "response_type": "CreateConnectivityTaskResponse" + "response_type": "CreateQueuePlanResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1104,36 +1109,31 @@ def _create_connectivity_task_http_info(cls, request): return http_info - def create_datasource_connection(self, request): - """创建经典型跨源连接 + def create_queue_property(self, request): + """新增队列属性 - 该API用于创建与其他服务的经典型跨源连接。 - 说明: - 如果需要了解Console界面的使用方法,可参考经典型跨源连接。 - 系统default队列不支持创建跨源连接。 + 该接口用于增加队列属性, 一次可增加多个属性。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateDatasourceConnection - :type request: :class:`huaweicloudsdkdli.v1.CreateDatasourceConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateDatasourceConnectionResponse` + :param request: Request instance for CreateQueueProperty + :type request: :class:`huaweicloudsdkdli.v1.CreateQueuePropertyRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateQueuePropertyResponse` """ - warnings.warn("Method 'create_datasource_connection' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_datasource_connection_http_info(request) + http_info = self._create_queue_property_http_info(request) return self._call_api(**http_info) - def create_datasource_connection_invoker(self, request): - warnings.warn("Method 'create_datasource_connection_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_datasource_connection_http_info(request) + def create_queue_property_invoker(self, request): + http_info = self._create_queue_property_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_datasource_connection_http_info(cls, request): + def _create_queue_property_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource-connection", + "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", "request_type": request.__class__.__name__, - "response_type": "CreateDatasourceConnectionResponse" + "response_type": "CreateQueuePropertyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1143,6 +1143,8 @@ def _create_datasource_connection_http_info(cls, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -1174,33 +1176,31 @@ def _create_datasource_connection_http_info(cls, request): return http_info - def create_dli_agency(self, request): - """创建DLI委托 + def create_route_to_enhanced_connection(self, request): + """创建路由 - 创建DLI委托 + 该API用于创建跨源需要的路由。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateDliAgency - :type request: :class:`huaweicloudsdkdli.v1.CreateDliAgencyRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateDliAgencyResponse` + :param request: Request instance for CreateRouteToEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.CreateRouteToEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateRouteToEnhancedConnectionResponse` """ - warnings.warn("Method 'create_dli_agency' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_dli_agency_http_info(request) + http_info = self._create_route_to_enhanced_connection_http_info(request) return self._call_api(**http_info) - def create_dli_agency_invoker(self, request): - warnings.warn("Method 'create_dli_agency_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_dli_agency_http_info(request) + def create_route_to_enhanced_connection_invoker(self, request): + http_info = self._create_route_to_enhanced_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_dli_agency_http_info(cls, request): + def _create_route_to_enhanced_connection_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v2/{project_id}/agency", + "resource_path": "/v3/{project_id}/datasource/enhanced-connections/{connection_id}/routes", "request_type": request.__class__.__name__, - "response_type": "CreateDliAgencyResponse" + "response_type": "CreateRouteToEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1210,6 +1210,8 @@ def _create_dli_agency_http_info(cls, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -1241,31 +1243,33 @@ def _create_dli_agency_http_info(cls, request): return http_info - def create_elastic_resource_pool(self, request): - """创建弹性资源池 + def delete_auth_info(self, request): + """删除跨源认证 - 创建弹性资源池 + 该API用于删除跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateElasticResourcePool - :type request: :class:`huaweicloudsdkdli.v1.CreateElasticResourcePoolRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateElasticResourcePoolResponse` + :param request: Request instance for DeleteAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.DeleteAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteAuthInfoResponse` """ - http_info = self._create_elastic_resource_pool_http_info(request) + warnings.warn("Method 'delete_auth_info' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_auth_info_http_info(request) return self._call_api(**http_info) - def create_elastic_resource_pool_invoker(self, request): - http_info = self._create_elastic_resource_pool_http_info(request) + def delete_auth_info_invoker(self, request): + warnings.warn("Method 'delete_auth_info_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_auth_info_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_elastic_resource_pool_http_info(cls, request): + def _delete_auth_info_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/elastic-resource-pools", + "method": "DELETE", + "resource_path": "/v2.0/{project_id}/datasource/auth-infos/{auth_info_name}", "request_type": request.__class__.__name__, - "response_type": "CreateElasticResourcePoolResponse" + "response_type": "DeleteAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1275,6 +1279,8 @@ def _create_elastic_resource_pool_http_info(cls, request): collection_formats = {} path_params = {} + if 'auth_info_name' in local_var_params: + path_params['auth_info_name'] = local_var_params['auth_info_name'] query_params = [] @@ -1283,8 +1289,6 @@ def _create_elastic_resource_pool_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1306,31 +1310,35 @@ def _create_elastic_resource_pool_http_info(cls, request): return http_info - def create_enhanced_connection(self, request): - """创建增强型跨源连接 + def delete_datasource_connection(self, request): + """删除经典型跨源连接 - 该API用于创建与其他服务的增强型跨源连接。 + 该API用于删除已创建的经典型跨源连接。 + 说明: + 创建中的连接,无法删除。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionResponse` + :param request: Request instance for DeleteDatasourceConnection + :type request: :class:`huaweicloudsdkdli.v1.DeleteDatasourceConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteDatasourceConnectionResponse` """ - http_info = self._create_enhanced_connection_http_info(request) + warnings.warn("Method 'delete_datasource_connection' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_datasource_connection_http_info(request) return self._call_api(**http_info) - def create_enhanced_connection_invoker(self, request): - http_info = self._create_enhanced_connection_http_info(request) + def delete_datasource_connection_invoker(self, request): + warnings.warn("Method 'delete_datasource_connection_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_datasource_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_enhanced_connection_http_info(cls, request): + def _delete_datasource_connection_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections", + "method": "DELETE", + "resource_path": "/v2.0/{project_id}/datasource-connection/{connection_id}", "request_type": request.__class__.__name__, - "response_type": "CreateEnhancedConnectionResponse" + "response_type": "DeleteDatasourceConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1340,6 +1348,8 @@ def _create_enhanced_connection_http_info(cls, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -1348,8 +1358,6 @@ def _create_enhanced_connection_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1371,33 +1379,31 @@ def _create_enhanced_connection_http_info(cls, request): return http_info - def create_enhanced_connection_routes(self, request): - """创建路由 + def delete_elastic_resource_pool(self, request): + """删除弹性资源池 - 该API用于创建跨源需要的路由。 + 删除弹性资源池 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateEnhancedConnectionRoutes - :type request: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRoutesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateEnhancedConnectionRoutesResponse` + :param request: Request instance for DeleteElasticResourcePool + :type request: :class:`huaweicloudsdkdli.v1.DeleteElasticResourcePoolRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteElasticResourcePoolResponse` """ - warnings.warn("Method 'create_enhanced_connection_routes' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_enhanced_connection_routes_http_info(request) + http_info = self._delete_elastic_resource_pool_http_info(request) return self._call_api(**http_info) - def create_enhanced_connection_routes_invoker(self, request): - warnings.warn("Method 'create_enhanced_connection_routes_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_enhanced_connection_routes_http_info(request) + def delete_elastic_resource_pool_invoker(self, request): + http_info = self._delete_elastic_resource_pool_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_enhanced_connection_routes_http_info(cls, request): + def _delete_elastic_resource_pool_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/routes", + "method": "DELETE", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}", "request_type": request.__class__.__name__, - "response_type": "CreateEnhancedConnectionRoutesResponse" + "response_type": "DeleteElasticResourcePoolResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1407,8 +1413,8 @@ def _create_enhanced_connection_routes_http_info(cls, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] @@ -1417,8 +1423,6 @@ def _create_enhanced_connection_routes_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1440,31 +1444,31 @@ def _create_enhanced_connection_routes_http_info(cls, request): return http_info - def create_global_variable(self, request): - """创建DLI全局变量 + def delete_enhanced_connection(self, request): + """删除增强型跨源连接 - 创建全局变量。全局变量用于替换SQL作业中的敏感数据。 + 该API用于删除已创建的增强型跨源连接。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateGlobalVariable - :type request: :class:`huaweicloudsdkdli.v1.CreateGlobalVariableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateGlobalVariableResponse` + :param request: Request instance for DeleteEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionResponse` """ - http_info = self._create_global_variable_http_info(request) + http_info = self._delete_enhanced_connection_http_info(request) return self._call_api(**http_info) - def create_global_variable_invoker(self, request): - http_info = self._create_global_variable_http_info(request) + def delete_enhanced_connection_invoker(self, request): + http_info = self._delete_enhanced_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_global_variable_http_info(cls, request): + def _delete_enhanced_connection_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/variables", + "method": "DELETE", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", "request_type": request.__class__.__name__, - "response_type": "CreateGlobalVariableResponse" + "response_type": "DeleteEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1474,6 +1478,8 @@ def _create_global_variable_http_info(cls, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -1482,8 +1488,6 @@ def _create_global_variable_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1505,31 +1509,33 @@ def _create_global_variable_http_info(cls, request): return http_info - def create_job_auth_info(self, request): - """创建跨源认证 + def delete_enhanced_connection_routes(self, request): + """删除路由 - 该API用于创建跨源认证。 + 该API用于删除跨源需要的路由。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateJobAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.CreateJobAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateJobAuthInfoResponse` + :param request: Request instance for DeleteEnhancedConnectionRoutes + :type request: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRoutesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRoutesResponse` """ - http_info = self._create_job_auth_info_http_info(request) + warnings.warn("Method 'delete_enhanced_connection_routes' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_enhanced_connection_routes_http_info(request) return self._call_api(**http_info) - def create_job_auth_info_invoker(self, request): - http_info = self._create_job_auth_info_http_info(request) + def delete_enhanced_connection_routes_invoker(self, request): + warnings.warn("Method 'delete_enhanced_connection_routes_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_enhanced_connection_routes_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_job_auth_info_http_info(cls, request): + def _delete_enhanced_connection_routes_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/datasource/auth-infos", + "method": "DELETE", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/routes/{name}", "request_type": request.__class__.__name__, - "response_type": "CreateJobAuthInfoResponse" + "response_type": "DeleteEnhancedConnectionRoutesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1539,6 +1545,10 @@ def _create_job_auth_info_http_info(cls, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] query_params = [] @@ -1547,8 +1557,6 @@ def _create_job_auth_info_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1570,31 +1578,31 @@ def _create_job_auth_info_http_info(cls, request): return http_info - def create_queue(self, request): - """创建队列 + def delete_global_variable(self, request): + """删除DLI全局变量 - 该API用于创建队列,该队列将会绑定用户指定的计算资源。 + 删除全局变量。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateQueue - :type request: :class:`huaweicloudsdkdli.v1.CreateQueueRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateQueueResponse` + :param request: Request instance for DeleteGlobalVariable + :type request: :class:`huaweicloudsdkdli.v1.DeleteGlobalVariableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteGlobalVariableResponse` """ - http_info = self._create_queue_http_info(request) + http_info = self._delete_global_variable_http_info(request) return self._call_api(**http_info) - def create_queue_invoker(self, request): - http_info = self._create_queue_http_info(request) + def delete_global_variable_invoker(self, request): + http_info = self._delete_global_variable_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_queue_http_info(cls, request): + def _delete_global_variable_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/queues", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/variables/{var_name}", "request_type": request.__class__.__name__, - "response_type": "CreateQueueResponse" + "response_type": "DeleteGlobalVariableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1604,6 +1612,8 @@ def _create_queue_http_info(cls, request): collection_formats = {} path_params = {} + if 'var_name' in local_var_params: + path_params['var_name'] = local_var_params['var_name'] query_params = [] @@ -1612,8 +1622,6 @@ def _create_queue_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1635,33 +1643,31 @@ def _create_queue_http_info(cls, request): return http_info - def create_queue_plan(self, request): - """创建队列定时扩缩容计划 + def delete_job_auth_info(self, request): + """删除跨源认证 - 创建队列定时扩缩容计划接口,对指定的队列创建定时规格变更计划。 + 该API用于删除跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateQueuePlan - :type request: :class:`huaweicloudsdkdli.v1.CreateQueuePlanRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateQueuePlanResponse` + :param request: Request instance for DeleteJobAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.DeleteJobAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteJobAuthInfoResponse` """ - warnings.warn("Method 'create_queue_plan' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_queue_plan_http_info(request) + http_info = self._delete_job_auth_info_http_info(request) return self._call_api(**http_info) - def create_queue_plan_invoker(self, request): - warnings.warn("Method 'create_queue_plan_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_queue_plan_http_info(request) + def delete_job_auth_info_invoker(self, request): + http_info = self._delete_job_auth_info_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_queue_plan_http_info(cls, request): + def _delete_job_auth_info_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/queues/{queue_name}/plans", + "method": "DELETE", + "resource_path": "/v3/{project_id}/datasource/auth-infos/{auth_info_name}", "request_type": request.__class__.__name__, - "response_type": "CreateQueuePlanResponse" + "response_type": "DeleteJobAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1671,8 +1677,8 @@ def _create_queue_plan_http_info(cls, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] + if 'auth_info_name' in local_var_params: + path_params['auth_info_name'] = local_var_params['auth_info_name'] query_params = [] @@ -1681,8 +1687,6 @@ def _create_queue_plan_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1704,31 +1708,33 @@ def _create_queue_plan_http_info(cls, request): return http_info - def create_queue_property(self, request): - """新增队列属性 + def delete_queue(self, request): + """删除队列 - 该接口用于增加队列属性, 一次可增加多个属性。 + 该API用于删除指定队列。 + 说明: + 若指定队列正在执行任务,则不允许删除。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateQueueProperty - :type request: :class:`huaweicloudsdkdli.v1.CreateQueuePropertyRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateQueuePropertyResponse` + :param request: Request instance for DeleteQueue + :type request: :class:`huaweicloudsdkdli.v1.DeleteQueueRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueueResponse` """ - http_info = self._create_queue_property_http_info(request) + http_info = self._delete_queue_http_info(request) return self._call_api(**http_info) - def create_queue_property_invoker(self, request): - http_info = self._create_queue_property_http_info(request) + def delete_queue_invoker(self, request): + http_info = self._delete_queue_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_queue_property_http_info(cls, request): + def _delete_queue_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}", "request_type": request.__class__.__name__, - "response_type": "CreateQueuePropertyResponse" + "response_type": "DeleteQueueResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1748,8 +1754,6 @@ def _create_queue_property_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1771,33 +1775,33 @@ def _create_queue_property_http_info(cls, request): return http_info - def delete_auth_info(self, request): - """删除跨源认证 + def delete_queue_plan(self, request): + """单个删除队列定时扩缩容计划 - 该API用于删除跨源认证信息。 + 该API用于删除指定ID的队列定时扩缩容计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.DeleteAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteAuthInfoResponse` + :param request: Request instance for DeleteQueuePlan + :type request: :class:`huaweicloudsdkdli.v1.DeleteQueuePlanRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueuePlanResponse` """ - warnings.warn("Method 'delete_auth_info' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_auth_info_http_info(request) + warnings.warn("Method 'delete_queue_plan' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_queue_plan_http_info(request) return self._call_api(**http_info) - def delete_auth_info_invoker(self, request): - warnings.warn("Method 'delete_auth_info_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_auth_info_http_info(request) + def delete_queue_plan_invoker(self, request): + warnings.warn("Method 'delete_queue_plan_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_queue_plan_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_auth_info_http_info(cls, request): + def _delete_queue_plan_http_info(cls, request): http_info = { "method": "DELETE", - "resource_path": "/v2.0/{project_id}/datasource/auth-infos/{auth_info_name}", + "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/{plan_id}", "request_type": request.__class__.__name__, - "response_type": "DeleteAuthInfoResponse" + "response_type": "DeleteQueuePlanResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1807,8 +1811,10 @@ def _delete_auth_info_http_info(cls, request): collection_formats = {} path_params = {} - if 'auth_info_name' in local_var_params: - path_params['auth_info_name'] = local_var_params['auth_info_name'] + if 'plan_id' in local_var_params: + path_params['plan_id'] = local_var_params['plan_id'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -1838,35 +1844,31 @@ def _delete_auth_info_http_info(cls, request): return http_info - def delete_datasource_connection(self, request): - """删除经典型跨源连接 + def delete_queue_property(self, request): + """删除队列的属性 - 该API用于删除已创建的经典型跨源连接。 - 说明: - 创建中的连接,无法删除。 + 该接口用于删除队列的属性,一次可删除多个属性值。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteDatasourceConnection - :type request: :class:`huaweicloudsdkdli.v1.DeleteDatasourceConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteDatasourceConnectionResponse` + :param request: Request instance for DeleteQueueProperty + :type request: :class:`huaweicloudsdkdli.v1.DeleteQueuePropertyRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueuePropertyResponse` """ - warnings.warn("Method 'delete_datasource_connection' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_datasource_connection_http_info(request) + http_info = self._delete_queue_property_http_info(request) return self._call_api(**http_info) - def delete_datasource_connection_invoker(self, request): - warnings.warn("Method 'delete_datasource_connection_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_datasource_connection_http_info(request) + def delete_queue_property_invoker(self, request): + http_info = self._delete_queue_property_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_datasource_connection_http_info(cls, request): + def _delete_queue_property_http_info(cls, request): http_info = { "method": "DELETE", - "resource_path": "/v2.0/{project_id}/datasource-connection/{connection_id}", + "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", "request_type": request.__class__.__name__, - "response_type": "DeleteDatasourceConnectionResponse" + "response_type": "DeleteQueuePropertyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1876,8 +1878,8 @@ def _delete_datasource_connection_http_info(cls, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -1886,6 +1888,8 @@ def _delete_datasource_connection_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1907,31 +1911,33 @@ def _delete_datasource_connection_http_info(cls, request): return http_info - def delete_elastic_resource_pool(self, request): - """删除弹性资源池 + def delete_resource(self, request): + """删除组内资源包 - 删除弹性资源池 + 该API用于删除某个project某个分组下的资源包 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteElasticResourcePool - :type request: :class:`huaweicloudsdkdli.v1.DeleteElasticResourcePoolRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteElasticResourcePoolResponse` + :param request: Request instance for DeleteResource + :type request: :class:`huaweicloudsdkdli.v1.DeleteResourceRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteResourceResponse` """ - http_info = self._delete_elastic_resource_pool_http_info(request) + warnings.warn("Method 'delete_resource' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_resource_http_info(request) return self._call_api(**http_info) - def delete_elastic_resource_pool_invoker(self, request): - http_info = self._delete_elastic_resource_pool_http_info(request) + def delete_resource_invoker(self, request): + warnings.warn("Method 'delete_resource_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_resource_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_elastic_resource_pool_http_info(cls, request): + def _delete_resource_http_info(cls, request): http_info = { "method": "DELETE", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}", + "resource_path": "/v2.0/{project_id}/resources/{resource_name}", "request_type": request.__class__.__name__, - "response_type": "DeleteElasticResourcePoolResponse" + "response_type": "DeleteResourceResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1941,10 +1947,12 @@ def _delete_elastic_resource_pool_http_info(cls, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] + if 'resource_name' in local_var_params: + path_params['resource_name'] = local_var_params['resource_name'] query_params = [] + if 'group' in local_var_params: + query_params.append(('group', local_var_params['group'])) header_params = {} @@ -1972,31 +1980,31 @@ def _delete_elastic_resource_pool_http_info(cls, request): return http_info - def delete_enhanced_connection(self, request): - """删除增强型跨源连接 + def delete_route_from_enhanced_connection(self, request): + """删除路由 - 该API用于删除已创建的增强型跨源连接。 + 该API用于删除跨源需要的路由。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionResponse` + :param request: Request instance for DeleteRouteFromEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.DeleteRouteFromEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteRouteFromEnhancedConnectionResponse` """ - http_info = self._delete_enhanced_connection_http_info(request) + http_info = self._delete_route_from_enhanced_connection_http_info(request) return self._call_api(**http_info) - def delete_enhanced_connection_invoker(self, request): - http_info = self._delete_enhanced_connection_http_info(request) + def delete_route_from_enhanced_connection_invoker(self, request): + http_info = self._delete_route_from_enhanced_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_enhanced_connection_http_info(cls, request): + def _delete_route_from_enhanced_connection_http_info(cls, request): http_info = { "method": "DELETE", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", + "resource_path": "/v3/{project_id}/datasource/enhanced-connections/{connection_id}/routes/{name}", "request_type": request.__class__.__name__, - "response_type": "DeleteEnhancedConnectionResponse" + "response_type": "DeleteRouteFromEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2008,6 +2016,8 @@ def _delete_enhanced_connection_http_info(cls, request): path_params = {} if 'connection_id' in local_var_params: path_params['connection_id'] = local_var_params['connection_id'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] query_params = [] @@ -2037,33 +2047,31 @@ def _delete_enhanced_connection_http_info(cls, request): return http_info - def delete_enhanced_connection_routes(self, request): - """删除路由 + def disassociate_queue_from_enhanced_connection(self, request): + """解绑队列 - 该API用于删除跨源需要的路由。 + 该API用于在增强型跨源中解绑已绑定的队列。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteEnhancedConnectionRoutes - :type request: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRoutesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteEnhancedConnectionRoutesResponse` + :param request: Request instance for DisassociateQueueFromEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.DisassociateQueueFromEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DisassociateQueueFromEnhancedConnectionResponse` """ - warnings.warn("Method 'delete_enhanced_connection_routes' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_enhanced_connection_routes_http_info(request) + http_info = self._disassociate_queue_from_enhanced_connection_http_info(request) return self._call_api(**http_info) - def delete_enhanced_connection_routes_invoker(self, request): - warnings.warn("Method 'delete_enhanced_connection_routes_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_enhanced_connection_routes_http_info(request) + def disassociate_queue_from_enhanced_connection_invoker(self, request): + http_info = self._disassociate_queue_from_enhanced_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_enhanced_connection_routes_http_info(cls, request): + def _disassociate_queue_from_enhanced_connection_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/routes/{name}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/disassociate-queue", "request_type": request.__class__.__name__, - "response_type": "DeleteEnhancedConnectionRoutesResponse" + "response_type": "DisassociateQueueFromEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2075,8 +2083,6 @@ def _delete_enhanced_connection_routes_http_info(cls, request): path_params = {} if 'connection_id' in local_var_params: path_params['connection_id'] = local_var_params['connection_id'] - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] query_params = [] @@ -2085,6 +2091,8 @@ def _delete_enhanced_connection_routes_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -2106,31 +2114,33 @@ def _delete_enhanced_connection_routes_http_info(cls, request): return http_info - def delete_global_variable(self, request): - """删除DLI全局变量 + def list_auth_info(self, request): + """获取跨源认证列表 - 删除全局变量。 + 该API用于查询跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteGlobalVariable - :type request: :class:`huaweicloudsdkdli.v1.DeleteGlobalVariableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteGlobalVariableResponse` + :param request: Request instance for ListAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.ListAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListAuthInfoResponse` """ - http_info = self._delete_global_variable_http_info(request) + warnings.warn("Method 'list_auth_info' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_auth_info_http_info(request) return self._call_api(**http_info) - def delete_global_variable_invoker(self, request): - http_info = self._delete_global_variable_http_info(request) + def list_auth_info_invoker(self, request): + warnings.warn("Method 'list_auth_info_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_auth_info_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_global_variable_http_info(cls, request): + def _list_auth_info_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/variables/{var_name}", + "method": "GET", + "resource_path": "/v2.0/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "DeleteGlobalVariableResponse" + "response_type": "ListAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2140,10 +2150,14 @@ def _delete_global_variable_http_info(cls, request): collection_formats = {} path_params = {} - if 'var_name' in local_var_params: - path_params['var_name'] = local_var_params['var_name'] query_params = [] + if 'auth_info_name' in local_var_params: + query_params.append(('auth_info_name', local_var_params['auth_info_name'])) + 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'])) header_params = {} @@ -2171,31 +2185,31 @@ def _delete_global_variable_http_info(cls, request): return http_info - def delete_job_auth_info(self, request): - """删除跨源认证 + def list_authorization_privileges(self, request): + """查看赋权对象的用者权限信息 - 该API用于删除跨源认证信息。 + 获取对象赋权用户的权限信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteJobAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.DeleteJobAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteJobAuthInfoResponse` + :param request: Request instance for ListAuthorizationPrivileges + :type request: :class:`huaweicloudsdkdli.v1.ListAuthorizationPrivilegesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListAuthorizationPrivilegesResponse` """ - http_info = self._delete_job_auth_info_http_info(request) + http_info = self._list_authorization_privileges_http_info(request) return self._call_api(**http_info) - def delete_job_auth_info_invoker(self, request): - http_info = self._delete_job_auth_info_http_info(request) + def list_authorization_privileges_invoker(self, request): + http_info = self._list_authorization_privileges_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_job_auth_info_http_info(cls, request): + def _list_authorization_privileges_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v3/{project_id}/datasource/auth-infos/{auth_info_name}", + "method": "GET", + "resource_path": "/v1.0/{project_id}/authorization/privileges", "request_type": request.__class__.__name__, - "response_type": "DeleteJobAuthInfoResponse" + "response_type": "ListAuthorizationPrivilegesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2205,10 +2219,10 @@ def _delete_job_auth_info_http_info(cls, request): collection_formats = {} path_params = {} - if 'auth_info_name' in local_var_params: - path_params['auth_info_name'] = local_var_params['auth_info_name'] query_params = [] + if 'object' in local_var_params: + query_params.append(('object', local_var_params['object'])) header_params = {} @@ -2236,33 +2250,33 @@ def _delete_job_auth_info_http_info(cls, request): return http_info - def delete_queue(self, request): - """删除队列 + def list_database_users(self, request): + """查看数据库的使用者 - 该API用于删除指定队列。 - 说明: - 若指定队列正在执行任务,则不允许删除。 + 该API用于查询可以使用的指定队列的所有用户名称。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteQueue - :type request: :class:`huaweicloudsdkdli.v1.DeleteQueueRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueueResponse` + :param request: Request instance for ListDatabaseUsers + :type request: :class:`huaweicloudsdkdli.v1.ListDatabaseUsersRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListDatabaseUsersResponse` """ - http_info = self._delete_queue_http_info(request) + warnings.warn("Method 'list_database_users' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_database_users_http_info(request) return self._call_api(**http_info) - def delete_queue_invoker(self, request): - http_info = self._delete_queue_http_info(request) - return SyncInvoker(self, http_info) + def list_database_users_invoker(self, request): + warnings.warn("Method 'list_database_users_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_database_users_http_info(request) + return SyncInvoker(self, http_info) @classmethod - def _delete_queue_http_info(cls, request): + def _list_database_users_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}", + "method": "GET", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/users", "request_type": request.__class__.__name__, - "response_type": "DeleteQueueResponse" + "response_type": "ListDatabaseUsersResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2272,8 +2286,8 @@ def _delete_queue_http_info(cls, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] query_params = [] @@ -2303,33 +2317,33 @@ def _delete_queue_http_info(cls, request): return http_info - def delete_queue_plan(self, request): - """单个删除队列定时扩缩容计划 + def list_datasource_connections(self, request): + """查询经典型跨源连接列表 - 该API用于删除指定ID的队列定时扩缩容计划。 + 该API用于查询该用户已创建的经典型跨源连接列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteQueuePlan - :type request: :class:`huaweicloudsdkdli.v1.DeleteQueuePlanRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueuePlanResponse` + :param request: Request instance for ListDatasourceConnections + :type request: :class:`huaweicloudsdkdli.v1.ListDatasourceConnectionsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListDatasourceConnectionsResponse` """ - warnings.warn("Method 'delete_queue_plan' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_queue_plan_http_info(request) + warnings.warn("Method 'list_datasource_connections' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_datasource_connections_http_info(request) return self._call_api(**http_info) - def delete_queue_plan_invoker(self, request): - warnings.warn("Method 'delete_queue_plan_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_queue_plan_http_info(request) + def list_datasource_connections_invoker(self, request): + warnings.warn("Method 'list_datasource_connections_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_datasource_connections_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_queue_plan_http_info(cls, request): + def _list_datasource_connections_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v1/{project_id}/queues/{queue_name}/plans/{plan_id}", + "method": "GET", + "resource_path": "/v2.0/{project_id}/datasource-connection", "request_type": request.__class__.__name__, - "response_type": "DeleteQueuePlanResponse" + "response_type": "ListDatasourceConnectionsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2339,12 +2353,10 @@ def _delete_queue_plan_http_info(cls, request): collection_formats = {} path_params = {} - if 'plan_id' in local_var_params: - path_params['plan_id'] = local_var_params['plan_id'] - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) header_params = {} @@ -2372,31 +2384,31 @@ def _delete_queue_plan_http_info(cls, request): return http_info - def delete_queue_property(self, request): - """删除队列的属性 + def list_elastic_resource_pool_queues(self, request): + """查询弹性资源池所属队列 - 该接口用于删除队列的属性,一次可删除多个属性值。 + 查询弹性资源池所属队列 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteQueueProperty - :type request: :class:`huaweicloudsdkdli.v1.DeleteQueuePropertyRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteQueuePropertyResponse` + :param request: Request instance for ListElasticResourcePoolQueues + :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolQueuesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolQueuesResponse` """ - http_info = self._delete_queue_property_http_info(request) + http_info = self._list_elastic_resource_pool_queues_http_info(request) return self._call_api(**http_info) - def delete_queue_property_invoker(self, request): - http_info = self._delete_queue_property_http_info(request) + def list_elastic_resource_pool_queues_invoker(self, request): + http_info = self._list_elastic_resource_pool_queues_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_queue_property_http_info(cls, request): + def _list_elastic_resource_pool_queues_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", + "method": "GET", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues", "request_type": request.__class__.__name__, - "response_type": "DeleteQueuePropertyResponse" + "response_type": "ListElasticResourcePoolQueuesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2406,18 +2418,22 @@ def _delete_queue_property_http_info(cls, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'queue_name' in local_var_params: + query_params.append(('queue_name', local_var_params['queue_name'])) 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() @@ -2439,33 +2455,31 @@ def _delete_queue_property_http_info(cls, request): return http_info - def delete_resource(self, request): - """删除组内资源包 + def list_elastic_resource_pool_scale_records(self, request): + """弹性资源池扩缩容历史记录 - 该API用于删除某个project某个分组下的资源包 + 查询当前弹性资源池扩缩容历史记录 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteResource - :type request: :class:`huaweicloudsdkdli.v1.DeleteResourceRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteResourceResponse` + :param request: Request instance for ListElasticResourcePoolScaleRecords + :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolScaleRecordsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolScaleRecordsResponse` """ - warnings.warn("Method 'delete_resource' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_resource_http_info(request) + http_info = self._list_elastic_resource_pool_scale_records_http_info(request) return self._call_api(**http_info) - def delete_resource_invoker(self, request): - warnings.warn("Method 'delete_resource_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_resource_http_info(request) + def list_elastic_resource_pool_scale_records_invoker(self, request): + http_info = self._list_elastic_resource_pool_scale_records_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_resource_http_info(cls, request): + def _list_elastic_resource_pool_scale_records_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v2.0/{project_id}/resources/{resource_name}", + "method": "GET", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/scale-records", "request_type": request.__class__.__name__, - "response_type": "DeleteResourceResponse" + "response_type": "ListElasticResourcePoolScaleRecordsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2475,12 +2489,20 @@ def _delete_resource_http_info(cls, request): collection_formats = {} path_params = {} - if 'resource_name' in local_var_params: - path_params['resource_name'] = local_var_params['resource_name'] + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] - if 'group' in local_var_params: - query_params.append(('group', local_var_params['group'])) + 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 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + 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'])) header_params = {} @@ -2490,7 +2512,7 @@ def _delete_resource_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["X-Auth-Token", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -2508,31 +2530,31 @@ def _delete_resource_http_info(cls, request): return http_info - def disassociate_queue_from_enhanced_connection(self, request): - """解绑队列 + def list_elastic_resource_pools(self, request): + """查询所有弹性资源池 - 该API用于在增强型跨源中解绑已绑定的队列。 + 查询所有弹性资源池 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DisassociateQueueFromEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.DisassociateQueueFromEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DisassociateQueueFromEnhancedConnectionResponse` + :param request: Request instance for ListElasticResourcePools + :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolsResponse` """ - http_info = self._disassociate_queue_from_enhanced_connection_http_info(request) + http_info = self._list_elastic_resource_pools_http_info(request) return self._call_api(**http_info) - def disassociate_queue_from_enhanced_connection_invoker(self, request): - http_info = self._disassociate_queue_from_enhanced_connection_http_info(request) + def list_elastic_resource_pools_invoker(self, request): + http_info = self._list_elastic_resource_pools_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _disassociate_queue_from_enhanced_connection_http_info(cls, request): + def _list_elastic_resource_pools_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/disassociate-queue", + "method": "GET", + "resource_path": "/v3/{project_id}/elastic-resource-pools", "request_type": request.__class__.__name__, - "response_type": "DisassociateQueueFromEnhancedConnectionResponse" + "response_type": "ListElasticResourcePoolsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2542,18 +2564,24 @@ def _disassociate_queue_from_enhanced_connection_http_info(cls, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) 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() @@ -2575,33 +2603,31 @@ def _disassociate_queue_from_enhanced_connection_http_info(cls, request): return http_info - def list_auth_info(self, request): - """获取跨源认证列表 + def list_enhanced_connections(self, request): + """查询增强型跨源连接列表 - 该API用于查询跨源认证信息。 + 该API用于查询该用户已创建的增强型跨源连接列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.ListAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListAuthInfoResponse` + :param request: Request instance for ListEnhancedConnections + :type request: :class:`huaweicloudsdkdli.v1.ListEnhancedConnectionsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListEnhancedConnectionsResponse` """ - warnings.warn("Method 'list_auth_info' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_auth_info_http_info(request) + http_info = self._list_enhanced_connections_http_info(request) return self._call_api(**http_info) - def list_auth_info_invoker(self, request): - warnings.warn("Method 'list_auth_info_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_auth_info_http_info(request) + def list_enhanced_connections_invoker(self, request): + http_info = self._list_enhanced_connections_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_auth_info_http_info(cls, request): + def _list_enhanced_connections_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource/auth-infos", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections", "request_type": request.__class__.__name__, - "response_type": "ListAuthInfoResponse" + "response_type": "ListEnhancedConnectionsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2613,12 +2639,16 @@ def _list_auth_info_http_info(cls, request): path_params = {} query_params = [] - if 'auth_info_name' in local_var_params: - query_params.append(('auth_info_name', local_var_params['auth_info_name'])) - 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 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) header_params = {} @@ -2646,31 +2676,31 @@ def _list_auth_info_http_info(cls, request): return http_info - def list_authorization_privileges(self, request): - """查看赋权对象的用者权限信息 + def list_global_variables(self, request): + """查询DLI全局变量列表 - 获取对象赋权用户的权限信息 + 查询全局变量列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAuthorizationPrivileges - :type request: :class:`huaweicloudsdkdli.v1.ListAuthorizationPrivilegesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListAuthorizationPrivilegesResponse` + :param request: Request instance for ListGlobalVariables + :type request: :class:`huaweicloudsdkdli.v1.ListGlobalVariablesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListGlobalVariablesResponse` """ - http_info = self._list_authorization_privileges_http_info(request) + http_info = self._list_global_variables_http_info(request) return self._call_api(**http_info) - def list_authorization_privileges_invoker(self, request): - http_info = self._list_authorization_privileges_http_info(request) + def list_global_variables_invoker(self, request): + http_info = self._list_global_variables_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_authorization_privileges_http_info(cls, request): + def _list_global_variables_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/authorization/privileges", + "resource_path": "/v1.0/{project_id}/variables", "request_type": request.__class__.__name__, - "response_type": "ListAuthorizationPrivilegesResponse" + "response_type": "ListGlobalVariablesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2682,8 +2712,10 @@ def _list_authorization_privileges_http_info(cls, request): path_params = {} query_params = [] - if 'object' in local_var_params: - query_params.append(('object', local_var_params['object'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} @@ -2711,33 +2743,31 @@ def _list_authorization_privileges_http_info(cls, request): return http_info - def list_database_users(self, request): - """查看数据库的使用者 + def list_job_auth_infos(self, request): + """查询增强型跨源授权信息 - 该API用于查询可以使用的指定队列的所有用户名称。 + 该API用于查询跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDatabaseUsers - :type request: :class:`huaweicloudsdkdli.v1.ListDatabaseUsersRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListDatabaseUsersResponse` + :param request: Request instance for ListJobAuthInfos + :type request: :class:`huaweicloudsdkdli.v1.ListJobAuthInfosRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListJobAuthInfosResponse` """ - warnings.warn("Method 'list_database_users' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_database_users_http_info(request) + http_info = self._list_job_auth_infos_http_info(request) return self._call_api(**http_info) - def list_database_users_invoker(self, request): - warnings.warn("Method 'list_database_users_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_database_users_http_info(request) + def list_job_auth_infos_invoker(self, request): + http_info = self._list_job_auth_infos_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_database_users_http_info(cls, request): + def _list_job_auth_infos_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/users", + "resource_path": "/v3/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "ListDatabaseUsersResponse" + "response_type": "ListJobAuthInfosResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2747,10 +2777,14 @@ def _list_database_users_http_info(cls, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] query_params = [] + if 'auth_info_name' in local_var_params: + query_params.append(('auth_info_name', local_var_params['auth_info_name'])) + 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'])) header_params = {} @@ -2778,33 +2812,33 @@ def _list_database_users_http_info(cls, request): return http_info - def list_datasource_connections(self, request): - """查询经典型跨源连接列表 + def list_queue_plans(self, request): + """查看队列定时扩缩容计划 - 该API用于查询该用户已创建的经典型跨源连接列表。 + 查看队列定时扩缩容计划接口,列出指定队列定时规格变更计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDatasourceConnections - :type request: :class:`huaweicloudsdkdli.v1.ListDatasourceConnectionsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListDatasourceConnectionsResponse` + :param request: Request instance for ListQueuePlans + :type request: :class:`huaweicloudsdkdli.v1.ListQueuePlansRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListQueuePlansResponse` """ - warnings.warn("Method 'list_datasource_connections' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_datasource_connections_http_info(request) + warnings.warn("Method 'list_queue_plans' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_queue_plans_http_info(request) return self._call_api(**http_info) - def list_datasource_connections_invoker(self, request): - warnings.warn("Method 'list_datasource_connections_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_datasource_connections_http_info(request) + def list_queue_plans_invoker(self, request): + warnings.warn("Method 'list_queue_plans_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_queue_plans_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_datasource_connections_http_info(cls, request): + def _list_queue_plans_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource-connection", + "resource_path": "/v1/{project_id}/queues/{queue_name}/plans", "request_type": request.__class__.__name__, - "response_type": "ListDatasourceConnectionsResponse" + "response_type": "ListQueuePlansResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2814,10 +2848,10 @@ def _list_datasource_connections_http_info(cls, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) header_params = {} @@ -2845,31 +2879,31 @@ def _list_datasource_connections_http_info(cls, request): return http_info - def list_elastic_resource_pool_queues(self, request): - """查询弹性资源池所属队列 + def list_queue_properties(self, request): + """获取队列属性 - 查询弹性资源池所属队列 + 获取队列配置的属性 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListElasticResourcePoolQueues - :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolQueuesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolQueuesResponse` + :param request: Request instance for ListQueueProperties + :type request: :class:`huaweicloudsdkdli.v1.ListQueuePropertiesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListQueuePropertiesResponse` """ - http_info = self._list_elastic_resource_pool_queues_http_info(request) + http_info = self._list_queue_properties_http_info(request) return self._call_api(**http_info) - def list_elastic_resource_pool_queues_invoker(self, request): - http_info = self._list_elastic_resource_pool_queues_http_info(request) + def list_queue_properties_invoker(self, request): + http_info = self._list_queue_properties_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_elastic_resource_pool_queues_http_info(cls, request): + def _list_queue_properties_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues", + "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", "request_type": request.__class__.__name__, - "response_type": "ListElasticResourcePoolQueuesResponse" + "response_type": "ListQueuePropertiesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2879,16 +2913,14 @@ def _list_elastic_resource_pool_queues_http_info(cls, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) if 'offset' in local_var_params: query_params.append(('offset', local_var_params['offset'])) - if 'queue_name' in local_var_params: - query_params.append(('queue_name', local_var_params['queue_name'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) header_params = {} @@ -2916,31 +2948,33 @@ def _list_elastic_resource_pool_queues_http_info(cls, request): return http_info - def list_elastic_resource_pool_scale_records(self, request): - """弹性资源池扩缩容历史记录 + def list_queue_users(self, request): + """查看队列的使用者 - 查询当前弹性资源池扩缩容历史记录 + 该API用于查询可以使用的指定队列的所有用户名称。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListElasticResourcePoolScaleRecords - :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolScaleRecordsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolScaleRecordsResponse` + :param request: Request instance for ListQueueUsers + :type request: :class:`huaweicloudsdkdli.v1.ListQueueUsersRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListQueueUsersResponse` """ - http_info = self._list_elastic_resource_pool_scale_records_http_info(request) + warnings.warn("Method 'list_queue_users' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_queue_users_http_info(request) return self._call_api(**http_info) - def list_elastic_resource_pool_scale_records_invoker(self, request): - http_info = self._list_elastic_resource_pool_scale_records_http_info(request) + def list_queue_users_invoker(self, request): + warnings.warn("Method 'list_queue_users_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_queue_users_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_elastic_resource_pool_scale_records_http_info(cls, request): + def _list_queue_users_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/scale-records", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}/users", "request_type": request.__class__.__name__, - "response_type": "ListElasticResourcePoolScaleRecordsResponse" + "response_type": "ListQueueUsersResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2950,20 +2984,10 @@ def _list_elastic_resource_pool_scale_records_http_info(cls, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] - 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 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) - 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'])) header_params = {} @@ -2973,7 +2997,7 @@ def _list_elastic_resource_pool_scale_records_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Auth-Token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -2991,31 +3015,31 @@ def _list_elastic_resource_pool_scale_records_http_info(cls, request): return http_info - def list_elastic_resource_pools(self, request): - """查询所有弹性资源池 + def list_queues(self, request): + """查询所有队列 - 查询所有弹性资源池 + 该API用于列出该project下所有的队列。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListElasticResourcePools - :type request: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListElasticResourcePoolsResponse` + :param request: Request instance for ListQueues + :type request: :class:`huaweicloudsdkdli.v1.ListQueuesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListQueuesResponse` """ - http_info = self._list_elastic_resource_pools_http_info(request) + http_info = self._list_queues_http_info(request) return self._call_api(**http_info) - def list_elastic_resource_pools_invoker(self, request): - http_info = self._list_elastic_resource_pools_http_info(request) + def list_queues_invoker(self, request): + http_info = self._list_queues_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_elastic_resource_pools_http_info(cls, request): + def _list_queues_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/elastic-resource-pools", + "resource_path": "/v1.0/{project_id}/queues", "request_type": request.__class__.__name__, - "response_type": "ListElasticResourcePoolsResponse" + "response_type": "ListQueuesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3027,16 +3051,14 @@ def _list_elastic_resource_pools_http_info(cls, request): path_params = {} query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) + if 'queue_type' in local_var_params: + query_params.append(('queue_type', local_var_params['queue_type'])) if 'tags' in local_var_params: query_params.append(('tags', local_var_params['tags'])) + if 'with_charge_info' in local_var_params: + query_params.append(('with-charge-info', local_var_params['with_charge_info'])) + if 'with_priv' in local_var_params: + query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -3064,31 +3086,33 @@ def _list_elastic_resource_pools_http_info(cls, request): return http_info - def list_enhanced_connections(self, request): - """查询增强型跨源连接列表 + def list_resources(self, request): + """查看分组资源列表 - 该API用于查询该用户已创建的增强型跨源连接列表。 + 该API用于查看某个project下的所有资源,其中包含Group。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListEnhancedConnections - :type request: :class:`huaweicloudsdkdli.v1.ListEnhancedConnectionsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListEnhancedConnectionsResponse` + :param request: Request instance for ListResources + :type request: :class:`huaweicloudsdkdli.v1.ListResourcesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListResourcesResponse` """ - http_info = self._list_enhanced_connections_http_info(request) + warnings.warn("Method 'list_resources' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_resources_http_info(request) return self._call_api(**http_info) - def list_enhanced_connections_invoker(self, request): - http_info = self._list_enhanced_connections_http_info(request) + def list_resources_invoker(self, request): + warnings.warn("Method 'list_resources_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_resources_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_enhanced_connections_http_info(cls, request): + def _list_resources_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections", + "resource_path": "/v2.0/{project_id}/resources", "request_type": request.__class__.__name__, - "response_type": "ListEnhancedConnectionsResponse" + "response_type": "ListResourcesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3100,14 +3124,8 @@ def _list_enhanced_connections_http_info(cls, request): path_params = {} query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) + if 'kind' in local_var_params: + query_params.append(('kind', local_var_params['kind'])) if 'tags' in local_var_params: query_params.append(('tags', local_var_params['tags'])) @@ -3137,31 +3155,33 @@ def _list_enhanced_connections_http_info(cls, request): return http_info - def list_global_variables(self, request): - """查询DLI全局变量列表 + def list_table_privileges(self, request): + """查看表的用户权限 - 查询全局变量列表。 + 该API用于查询指定用户在表上的权限。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListGlobalVariables - :type request: :class:`huaweicloudsdkdli.v1.ListGlobalVariablesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListGlobalVariablesResponse` + :param request: Request instance for ListTablePrivileges + :type request: :class:`huaweicloudsdkdli.v1.ListTablePrivilegesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListTablePrivilegesResponse` """ - http_info = self._list_global_variables_http_info(request) + warnings.warn("Method 'list_table_privileges' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_table_privileges_http_info(request) return self._call_api(**http_info) - def list_global_variables_invoker(self, request): - http_info = self._list_global_variables_http_info(request) + def list_table_privileges_invoker(self, request): + warnings.warn("Method 'list_table_privileges_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_table_privileges_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_global_variables_http_info(cls, request): + def _list_table_privileges_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/variables", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/users/{user_name}", "request_type": request.__class__.__name__, - "response_type": "ListGlobalVariablesResponse" + "response_type": "ListTablePrivilegesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3171,12 +3191,14 @@ def _list_global_variables_http_info(cls, request): collection_formats = {} path_params = {} + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] + if 'user_name' in local_var_params: + path_params['user_name'] = local_var_params['user_name'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} @@ -3204,31 +3226,33 @@ def _list_global_variables_http_info(cls, request): return http_info - def list_job_auth_infos(self, request): - """查询增强型跨源授权信息 + def list_table_users(self, request): + """查看表的使用者 - 该API用于查询跨源认证信息。 + 该API用于查看有权访问指定表或表的列的所有用户。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListJobAuthInfos - :type request: :class:`huaweicloudsdkdli.v1.ListJobAuthInfosRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListJobAuthInfosResponse` + :param request: Request instance for ListTableUsers + :type request: :class:`huaweicloudsdkdli.v1.ListTableUsersRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListTableUsersResponse` """ - http_info = self._list_job_auth_infos_http_info(request) + warnings.warn("Method 'list_table_users' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_table_users_http_info(request) return self._call_api(**http_info) - def list_job_auth_infos_invoker(self, request): - http_info = self._list_job_auth_infos_http_info(request) + def list_table_users_invoker(self, request): + warnings.warn("Method 'list_table_users_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_table_users_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_job_auth_infos_http_info(cls, request): + def _list_table_users_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v3/{project_id}/datasource/auth-infos", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/users", "request_type": request.__class__.__name__, - "response_type": "ListJobAuthInfosResponse" + "response_type": "ListTableUsersResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3238,14 +3262,12 @@ def _list_job_auth_infos_http_info(cls, request): collection_formats = {} path_params = {} + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] query_params = [] - if 'auth_info_name' in local_var_params: - query_params.append(('auth_info_name', local_var_params['auth_info_name'])) - 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'])) header_params = {} @@ -3273,33 +3295,33 @@ def _list_job_auth_infos_http_info(cls, request): return http_info - def list_queue_plans(self, request): - """查看队列定时扩缩容计划 + def register_authorized_queue(self, request): + """队列赋权 - 查看队列定时扩缩容计划接口,列出指定队列定时规格变更计划。 + 该API用于与其他用户共享指定的队列,可以给用户赋使用指定的队列的权限或者收回使用权限。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListQueuePlans - :type request: :class:`huaweicloudsdkdli.v1.ListQueuePlansRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListQueuePlansResponse` + :param request: Request instance for RegisterAuthorizedQueue + :type request: :class:`huaweicloudsdkdli.v1.RegisterAuthorizedQueueRequest` + :rtype: :class:`huaweicloudsdkdli.v1.RegisterAuthorizedQueueResponse` """ - warnings.warn("Method 'list_queue_plans' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_queue_plans_http_info(request) + warnings.warn("Method 'register_authorized_queue' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._register_authorized_queue_http_info(request) return self._call_api(**http_info) - def list_queue_plans_invoker(self, request): - warnings.warn("Method 'list_queue_plans_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_queue_plans_http_info(request) + def register_authorized_queue_invoker(self, request): + warnings.warn("Method 'register_authorized_queue_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._register_authorized_queue_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_queue_plans_http_info(cls, request): + def _register_authorized_queue_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/queues/{queue_name}/plans", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/queues/user-authorization", "request_type": request.__class__.__name__, - "response_type": "ListQueuePlansResponse" + "response_type": "RegisterAuthorizedQueueResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3309,8 +3331,6 @@ def _list_queue_plans_http_info(cls, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -3319,6 +3339,8 @@ def _list_queue_plans_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3340,31 +3362,31 @@ def _list_queue_plans_http_info(cls, request): return http_info - def list_queue_properties(self, request): - """获取队列属性 + def run_authorization_action(self, request): + """数据赋权(用户、项目) - 获取队列配置的属性 + 该API用于将DLI资源权限赋给、回收、更新指定的其他用户或项目。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListQueueProperties - :type request: :class:`huaweicloudsdkdli.v1.ListQueuePropertiesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListQueuePropertiesResponse` + :param request: Request instance for RunAuthorizationAction + :type request: :class:`huaweicloudsdkdli.v1.RunAuthorizationActionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.RunAuthorizationActionResponse` """ - http_info = self._list_queue_properties_http_info(request) + http_info = self._run_authorization_action_http_info(request) return self._call_api(**http_info) - def list_queue_properties_invoker(self, request): - http_info = self._list_queue_properties_http_info(request) + def run_authorization_action_invoker(self, request): + http_info = self._run_authorization_action_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_queue_properties_http_info(cls, request): + def _run_authorization_action_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/authorization", "request_type": request.__class__.__name__, - "response_type": "ListQueuePropertiesResponse" + "response_type": "RunAuthorizationActionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3374,20 +3396,16 @@ def _list_queue_properties_http_info(cls, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] 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'])) 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() @@ -3409,33 +3427,31 @@ def _list_queue_properties_http_info(cls, request): return http_info - def list_queue_users(self, request): - """查看队列的使用者 + def run_queue_action(self, request): + """重启/扩容/缩容队列 - 该API用于查询可以使用的指定队列的所有用户名称。 + 该功能用于重新启动队列、扩容队列、缩容队列。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListQueueUsers - :type request: :class:`huaweicloudsdkdli.v1.ListQueueUsersRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListQueueUsersResponse` + :param request: Request instance for RunQueueAction + :type request: :class:`huaweicloudsdkdli.v1.RunQueueActionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.RunQueueActionResponse` """ - warnings.warn("Method 'list_queue_users' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_queue_users_http_info(request) + http_info = self._run_queue_action_http_info(request) return self._call_api(**http_info) - def list_queue_users_invoker(self, request): - warnings.warn("Method 'list_queue_users_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_queue_users_http_info(request) + def run_queue_action_invoker(self, request): + http_info = self._run_queue_action_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_queue_users_http_info(cls, request): + def _run_queue_action_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}/users", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}/action", "request_type": request.__class__.__name__, - "response_type": "ListQueueUsersResponse" + "response_type": "RunQueueActionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3455,6 +3471,8 @@ def _list_queue_users_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3476,31 +3494,31 @@ def _list_queue_users_http_info(cls, request): return http_info - def list_queues(self, request): - """查询所有队列 + def show_connectivity_task(self, request): + """查询指定地址连通性测试详情 - 该API用于列出该project下所有的队列。 + 该API用于在连通性测试提交后查询连通性结果。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListQueues - :type request: :class:`huaweicloudsdkdli.v1.ListQueuesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListQueuesResponse` + :param request: Request instance for ShowConnectivityTask + :type request: :class:`huaweicloudsdkdli.v1.ShowConnectivityTaskRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowConnectivityTaskResponse` """ - http_info = self._list_queues_http_info(request) + http_info = self._show_connectivity_task_http_info(request) return self._call_api(**http_info) - def list_queues_invoker(self, request): - http_info = self._list_queues_http_info(request) + def show_connectivity_task_invoker(self, request): + http_info = self._show_connectivity_task_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_queues_http_info(cls, request): + def _show_connectivity_task_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/queues", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}/connection-test/{task_id}", "request_type": request.__class__.__name__, - "response_type": "ListQueuesResponse" + "response_type": "ShowConnectivityTaskResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3510,16 +3528,12 @@ def _list_queues_http_info(cls, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] query_params = [] - if 'queue_type' in local_var_params: - query_params.append(('queue_type', local_var_params['queue_type'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) - if 'with_charge_info' in local_var_params: - query_params.append(('with-charge-info', local_var_params['with_charge_info'])) - if 'with_priv' in local_var_params: - query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -3547,33 +3561,33 @@ def _list_queues_http_info(cls, request): return http_info - def list_resources(self, request): - """查看分组资源列表 + def show_datasource_connection(self, request): + """查询经典型跨源连接 - 该API用于查看某个project下的所有资源,其中包含Group。 + 该API用于查询该用户指定的已创建的经典型跨源连接。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListResources - :type request: :class:`huaweicloudsdkdli.v1.ListResourcesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListResourcesResponse` + :param request: Request instance for ShowDatasourceConnection + :type request: :class:`huaweicloudsdkdli.v1.ShowDatasourceConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowDatasourceConnectionResponse` """ - warnings.warn("Method 'list_resources' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_resources_http_info(request) + warnings.warn("Method 'show_datasource_connection' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_datasource_connection_http_info(request) return self._call_api(**http_info) - def list_resources_invoker(self, request): - warnings.warn("Method 'list_resources_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_resources_http_info(request) + def show_datasource_connection_invoker(self, request): + warnings.warn("Method 'show_datasource_connection_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_datasource_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_resources_http_info(cls, request): + def _show_datasource_connection_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v2.0/{project_id}/resources", + "resource_path": "/v2.0/{project_id}/datasource-connection/{connection_id}", "request_type": request.__class__.__name__, - "response_type": "ListResourcesResponse" + "response_type": "ShowDatasourceConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3583,12 +3597,10 @@ def _list_resources_http_info(cls, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] - if 'kind' in local_var_params: - query_params.append(('kind', local_var_params['kind'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) header_params = {} @@ -3616,33 +3628,33 @@ def _list_resources_http_info(cls, request): return http_info - def list_table_privileges(self, request): - """查看表的用户权限 + def show_dli_agency(self, request): + """获取dli委托信息 - 该API用于查询指定用户在表上的权限。 + 获取dli委托信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListTablePrivileges - :type request: :class:`huaweicloudsdkdli.v1.ListTablePrivilegesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListTablePrivilegesResponse` + :param request: Request instance for ShowDliAgency + :type request: :class:`huaweicloudsdkdli.v1.ShowDliAgencyRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowDliAgencyResponse` """ - warnings.warn("Method 'list_table_privileges' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_table_privileges_http_info(request) + warnings.warn("Method 'show_dli_agency' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_dli_agency_http_info(request) return self._call_api(**http_info) - def list_table_privileges_invoker(self, request): - warnings.warn("Method 'list_table_privileges_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_table_privileges_http_info(request) + def show_dli_agency_invoker(self, request): + warnings.warn("Method 'show_dli_agency_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_dli_agency_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_table_privileges_http_info(cls, request): + def _show_dli_agency_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/users/{user_name}", + "resource_path": "/v2/{project_id}/agency", "request_type": request.__class__.__name__, - "response_type": "ListTablePrivilegesResponse" + "response_type": "ShowDliAgencyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3652,12 +3664,6 @@ def _list_table_privileges_http_info(cls, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] - if 'user_name' in local_var_params: - path_params['user_name'] = local_var_params['user_name'] query_params = [] @@ -3687,33 +3693,31 @@ def _list_table_privileges_http_info(cls, request): return http_info - def list_table_users(self, request): - """查看表的使用者 + def show_enhanced_connection(self, request): + """查询增强型跨源连接 - 该API用于查看有权访问指定表或表的列的所有用户。 + 该API用于查询该用户指定的已创建的增强型跨源连接。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListTableUsers - :type request: :class:`huaweicloudsdkdli.v1.ListTableUsersRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListTableUsersResponse` + :param request: Request instance for ShowEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionResponse` """ - warnings.warn("Method 'list_table_users' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_table_users_http_info(request) + http_info = self._show_enhanced_connection_http_info(request) return self._call_api(**http_info) - def list_table_users_invoker(self, request): - warnings.warn("Method 'list_table_users_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_table_users_http_info(request) + def show_enhanced_connection_invoker(self, request): + http_info = self._show_enhanced_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_table_users_http_info(cls, request): + def _show_enhanced_connection_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/users", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", "request_type": request.__class__.__name__, - "response_type": "ListTableUsersResponse" + "response_type": "ShowEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3723,10 +3727,8 @@ def _list_table_users_http_info(cls, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -3756,33 +3758,31 @@ def _list_table_users_http_info(cls, request): return http_info - def register_authorized_queue(self, request): - """队列赋权 + def show_enhanced_connection_privilege(self, request): + """查询增强型跨源授权信息 - 该API用于与其他用户共享指定的队列,可以给用户赋使用指定的队列的权限或者收回使用权限。 + 该API用于查询增强型跨源连接授权的信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RegisterAuthorizedQueue - :type request: :class:`huaweicloudsdkdli.v1.RegisterAuthorizedQueueRequest` - :rtype: :class:`huaweicloudsdkdli.v1.RegisterAuthorizedQueueResponse` + :param request: Request instance for ShowEnhancedConnectionPrivilege + :type request: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionPrivilegeRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionPrivilegeResponse` """ - warnings.warn("Method 'register_authorized_queue' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._register_authorized_queue_http_info(request) + http_info = self._show_enhanced_connection_privilege_http_info(request) return self._call_api(**http_info) - def register_authorized_queue_invoker(self, request): - warnings.warn("Method 'register_authorized_queue_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._register_authorized_queue_http_info(request) + def show_enhanced_connection_privilege_invoker(self, request): + http_info = self._show_enhanced_connection_privilege_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _register_authorized_queue_http_info(cls, request): + def _show_enhanced_connection_privilege_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/queues/user-authorization", + "method": "GET", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/privileges", "request_type": request.__class__.__name__, - "response_type": "RegisterAuthorizedQueueResponse" + "response_type": "ShowEnhancedConnectionPrivilegeResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3792,6 +3792,8 @@ def _register_authorized_queue_http_info(cls, request): collection_formats = {} path_params = {} + if 'connection_id' in local_var_params: + path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -3800,8 +3802,6 @@ def _register_authorized_queue_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3823,31 +3823,31 @@ def _register_authorized_queue_http_info(cls, request): return http_info - def run_authorization_action(self, request): - """数据赋权(用户、项目) + def show_queue(self, request): + """查询队列详情 - 该API用于将DLI资源权限赋给、回收、更新指定的其他用户或项目。 + 该API用于列出该project下指定的队列详情。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RunAuthorizationAction - :type request: :class:`huaweicloudsdkdli.v1.RunAuthorizationActionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.RunAuthorizationActionResponse` + :param request: Request instance for ShowQueue + :type request: :class:`huaweicloudsdkdli.v1.ShowQueueRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowQueueResponse` """ - http_info = self._run_authorization_action_http_info(request) + http_info = self._show_queue_http_info(request) return self._call_api(**http_info) - def run_authorization_action_invoker(self, request): - http_info = self._run_authorization_action_http_info(request) + def show_queue_invoker(self, request): + http_info = self._show_queue_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _run_authorization_action_http_info(cls, request): + def _show_queue_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/authorization", + "method": "GET", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}", "request_type": request.__class__.__name__, - "response_type": "RunAuthorizationActionResponse" + "response_type": "ShowQueueResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3857,6 +3857,8 @@ def _run_authorization_action_http_info(cls, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -3865,8 +3867,6 @@ def _run_authorization_action_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3888,31 +3888,31 @@ def _run_authorization_action_http_info(cls, request): return http_info - def run_queue_action(self, request): - """重启/扩容/缩容队列 + def show_quota(self, request): + """查询配额 - 该功能用于重新启动队列、扩容队列、缩容队列。 + 该API用于获取用户配额信息列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RunQueueAction - :type request: :class:`huaweicloudsdkdli.v1.RunQueueActionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.RunQueueActionResponse` + :param request: Request instance for ShowQuota + :type request: :class:`huaweicloudsdkdli.v1.ShowQuotaRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowQuotaResponse` """ - http_info = self._run_queue_action_http_info(request) + http_info = self._show_quota_http_info(request) return self._call_api(**http_info) - def run_queue_action_invoker(self, request): - http_info = self._run_queue_action_http_info(request) + def show_quota_invoker(self, request): + http_info = self._show_quota_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _run_queue_action_http_info(cls, request): + def _show_quota_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}/action", + "method": "GET", + "resource_path": "/v3/{project_id}/quotas", "request_type": request.__class__.__name__, - "response_type": "RunQueueActionResponse" + "response_type": "ShowQuotaResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3922,8 +3922,6 @@ def _run_queue_action_http_info(cls, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -3932,8 +3930,6 @@ def _run_queue_action_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3955,31 +3951,33 @@ def _run_queue_action_http_info(cls, request): return http_info - def show_connectivity_task(self, request): - """查询指定地址连通性测试详情 + def show_resource_info(self, request): + """查看组内资源包 - 该API用于在连通性测试提交后查询连通性结果。 + 该API用于查看某个project某个分组下的具体资源信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowConnectivityTask - :type request: :class:`huaweicloudsdkdli.v1.ShowConnectivityTaskRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowConnectivityTaskResponse` + :param request: Request instance for ShowResourceInfo + :type request: :class:`huaweicloudsdkdli.v1.ShowResourceInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowResourceInfoResponse` """ - http_info = self._show_connectivity_task_http_info(request) + warnings.warn("Method 'show_resource_info' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_resource_info_http_info(request) return self._call_api(**http_info) - def show_connectivity_task_invoker(self, request): - http_info = self._show_connectivity_task_http_info(request) + def show_resource_info_invoker(self, request): + warnings.warn("Method 'show_resource_info_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_resource_info_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_connectivity_task_http_info(cls, request): + def _show_resource_info_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}/connection-test/{task_id}", + "resource_path": "/v2.0/{project_id}/resources/{resource_name}", "request_type": request.__class__.__name__, - "response_type": "ShowConnectivityTaskResponse" + "response_type": "ShowResourceInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3989,12 +3987,12 @@ def _show_connectivity_task_http_info(cls, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] - if 'task_id' in local_var_params: - path_params['task_id'] = local_var_params['task_id'] + if 'resource_name' in local_var_params: + path_params['resource_name'] = local_var_params['resource_name'] query_params = [] + if 'group' in local_var_params: + query_params.append(('group', local_var_params['group'])) header_params = {} @@ -4022,33 +4020,33 @@ def _show_connectivity_task_http_info(cls, request): return http_info - def show_datasource_connection(self, request): - """查询经典型跨源连接 + def update_auth_info(self, request): + """更新跨源认证 - 该API用于查询该用户指定的已创建的经典型跨源连接。 + 该API用于更新跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDatasourceConnection - :type request: :class:`huaweicloudsdkdli.v1.ShowDatasourceConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowDatasourceConnectionResponse` + :param request: Request instance for UpdateAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.UpdateAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateAuthInfoResponse` """ - warnings.warn("Method 'show_datasource_connection' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_datasource_connection_http_info(request) + warnings.warn("Method 'update_auth_info' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_auth_info_http_info(request) return self._call_api(**http_info) - def show_datasource_connection_invoker(self, request): - warnings.warn("Method 'show_datasource_connection_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_datasource_connection_http_info(request) + def update_auth_info_invoker(self, request): + warnings.warn("Method 'update_auth_info_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_auth_info_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_datasource_connection_http_info(cls, request): + def _update_auth_info_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource-connection/{connection_id}", + "method": "PUT", + "resource_path": "/v2.0/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "ShowDatasourceConnectionResponse" + "response_type": "UpdateAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4058,8 +4056,6 @@ def _show_datasource_connection_http_info(cls, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] query_params = [] @@ -4068,6 +4064,8 @@ def _show_datasource_connection_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4089,33 +4087,31 @@ def _show_datasource_connection_http_info(cls, request): return http_info - def show_dli_agency(self, request): - """获取dli委托信息 + def update_elastic_resource_pool(self, request): + """修改弹性资源池信息 - 获取dli委托信息 + 修改弹性资源池信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDliAgency - :type request: :class:`huaweicloudsdkdli.v1.ShowDliAgencyRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowDliAgencyResponse` + :param request: Request instance for UpdateElasticResourcePool + :type request: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolResponse` """ - warnings.warn("Method 'show_dli_agency' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_dli_agency_http_info(request) + http_info = self._update_elastic_resource_pool_http_info(request) return self._call_api(**http_info) - def show_dli_agency_invoker(self, request): - warnings.warn("Method 'show_dli_agency_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_dli_agency_http_info(request) + def update_elastic_resource_pool_invoker(self, request): + http_info = self._update_elastic_resource_pool_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_dli_agency_http_info(cls, request): + def _update_elastic_resource_pool_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v2/{project_id}/agency", + "method": "PUT", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}", "request_type": request.__class__.__name__, - "response_type": "ShowDliAgencyResponse" + "response_type": "UpdateElasticResourcePoolResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4125,6 +4121,8 @@ def _show_dli_agency_http_info(cls, request): collection_formats = {} path_params = {} + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] query_params = [] @@ -4133,6 +4131,8 @@ def _show_dli_agency_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4154,31 +4154,31 @@ def _show_dli_agency_http_info(cls, request): return http_info - def show_enhanced_connection(self, request): - """查询增强型跨源连接 + def update_elastic_resource_pool_queue(self, request): + """修改弹性资源池关联的队列优先级 - 该API用于查询该用户指定的已创建的增强型跨源连接。 + 设置弹性资源池指定队列的扩缩容策略信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionResponse` + :param request: Request instance for UpdateElasticResourcePoolQueue + :type request: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolQueueRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolQueueResponse` """ - http_info = self._show_enhanced_connection_http_info(request) + http_info = self._update_elastic_resource_pool_queue_http_info(request) return self._call_api(**http_info) - def show_enhanced_connection_invoker(self, request): - http_info = self._show_enhanced_connection_http_info(request) + def update_elastic_resource_pool_queue_invoker(self, request): + http_info = self._update_elastic_resource_pool_queue_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_enhanced_connection_http_info(cls, request): + def _update_elastic_resource_pool_queue_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", + "method": "PUT", + "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues/{queue_name}", "request_type": request.__class__.__name__, - "response_type": "ShowEnhancedConnectionResponse" + "response_type": "UpdateElasticResourcePoolQueueResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4188,8 +4188,10 @@ def _show_enhanced_connection_http_info(cls, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] + if 'elastic_resource_pool_name' in local_var_params: + path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -4198,6 +4200,8 @@ def _show_enhanced_connection_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4219,31 +4223,31 @@ def _show_enhanced_connection_http_info(cls, request): return http_info - def show_enhanced_connection_privilege(self, request): - """查询增强型跨源授权信息 + def update_enhanced_connection(self, request): + """修改增强型跨源主机信息 - 该API用于查询增强型跨源连接授权的信息。 + 该API用于在跨源中修改数据源主机信息,仅支持全量覆盖。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowEnhancedConnectionPrivilege - :type request: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionPrivilegeRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowEnhancedConnectionPrivilegeResponse` + :param request: Request instance for UpdateEnhancedConnection + :type request: :class:`huaweicloudsdkdli.v1.UpdateEnhancedConnectionRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateEnhancedConnectionResponse` """ - http_info = self._show_enhanced_connection_privilege_http_info(request) + http_info = self._update_enhanced_connection_http_info(request) return self._call_api(**http_info) - def show_enhanced_connection_privilege_invoker(self, request): - http_info = self._show_enhanced_connection_privilege_http_info(request) + def update_enhanced_connection_invoker(self, request): + http_info = self._update_enhanced_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_enhanced_connection_privilege_http_info(cls, request): + def _update_enhanced_connection_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}/privileges", + "method": "PUT", + "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", "request_type": request.__class__.__name__, - "response_type": "ShowEnhancedConnectionPrivilegeResponse" + "response_type": "UpdateEnhancedConnectionResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4263,6 +4267,8 @@ def _show_enhanced_connection_privilege_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4284,31 +4290,31 @@ def _show_enhanced_connection_privilege_http_info(cls, request): return http_info - def show_queue(self, request): - """查询队列详情 + def update_global_variable(self, request): + """修改DLI全局变量 - 该API用于列出该project下指定的队列详情。 + 修改全局变量。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowQueue - :type request: :class:`huaweicloudsdkdli.v1.ShowQueueRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowQueueResponse` + :param request: Request instance for UpdateGlobalVariable + :type request: :class:`huaweicloudsdkdli.v1.UpdateGlobalVariableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateGlobalVariableResponse` """ - http_info = self._show_queue_http_info(request) + http_info = self._update_global_variable_http_info(request) return self._call_api(**http_info) - def show_queue_invoker(self, request): - http_info = self._show_queue_http_info(request) + def update_global_variable_invoker(self, request): + http_info = self._update_global_variable_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_queue_http_info(cls, request): + def _update_global_variable_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/variables/{var_name}", "request_type": request.__class__.__name__, - "response_type": "ShowQueueResponse" + "response_type": "UpdateGlobalVariableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4318,8 +4324,8 @@ def _show_queue_http_info(cls, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] + if 'var_name' in local_var_params: + path_params['var_name'] = local_var_params['var_name'] query_params = [] @@ -4328,6 +4334,8 @@ def _show_queue_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4349,31 +4357,33 @@ def _show_queue_http_info(cls, request): return http_info - def show_quota(self, request): - """查询配额 + def update_group_or_resource_owner(self, request): + """修改组或者资源包拥有者 - 该API用于获取用户配额信息列表。 + 用于修改程序包的owner。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowQuota - :type request: :class:`huaweicloudsdkdli.v1.ShowQuotaRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowQuotaResponse` + :param request: Request instance for UpdateGroupOrResourceOwner + :type request: :class:`huaweicloudsdkdli.v1.UpdateGroupOrResourceOwnerRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateGroupOrResourceOwnerResponse` """ - http_info = self._show_quota_http_info(request) + warnings.warn("Method 'update_group_or_resource_owner' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_group_or_resource_owner_http_info(request) return self._call_api(**http_info) - def show_quota_invoker(self, request): - http_info = self._show_quota_http_info(request) + def update_group_or_resource_owner_invoker(self, request): + warnings.warn("Method 'update_group_or_resource_owner_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_group_or_resource_owner_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_quota_http_info(cls, request): + def _update_group_or_resource_owner_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/quotas", + "method": "PUT", + "resource_path": "/v2.0/{project_id}/resources/owner", "request_type": request.__class__.__name__, - "response_type": "ShowQuotaResponse" + "response_type": "UpdateGroupOrResourceOwnerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4391,6 +4401,8 @@ def _show_quota_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4412,33 +4424,31 @@ def _show_quota_http_info(cls, request): return http_info - def show_resource_info(self, request): - """查看组内资源包 + def update_job_auth_info(self, request): + """更新跨源认证 - 该API用于查看某个project某个分组下的具体资源信息。 + 该API用于更新跨源认证信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowResourceInfo - :type request: :class:`huaweicloudsdkdli.v1.ShowResourceInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowResourceInfoResponse` + :param request: Request instance for UpdateJobAuthInfo + :type request: :class:`huaweicloudsdkdli.v1.UpdateJobAuthInfoRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateJobAuthInfoResponse` """ - warnings.warn("Method 'show_resource_info' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_resource_info_http_info(request) + http_info = self._update_job_auth_info_http_info(request) return self._call_api(**http_info) - def show_resource_info_invoker(self, request): - warnings.warn("Method 'show_resource_info_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_resource_info_http_info(request) + def update_job_auth_info_invoker(self, request): + http_info = self._update_job_auth_info_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_resource_info_http_info(cls, request): + def _update_job_auth_info_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v2.0/{project_id}/resources/{resource_name}", + "method": "PUT", + "resource_path": "/v3/{project_id}/datasource/auth-infos", "request_type": request.__class__.__name__, - "response_type": "ShowResourceInfoResponse" + "response_type": "UpdateJobAuthInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4448,18 +4458,16 @@ def _show_resource_info_http_info(cls, request): collection_formats = {} path_params = {} - if 'resource_name' in local_var_params: - path_params['resource_name'] = local_var_params['resource_name'] query_params = [] - if 'group' in local_var_params: - query_params.append(('group', local_var_params['group'])) 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() @@ -4481,33 +4489,35 @@ def _show_resource_info_http_info(cls, request): return http_info - def update_auth_info(self, request): - """更新跨源认证 + def update_queue_cidr(self, request): + """修改队列网段 - 该API用于更新跨源认证信息。 + 该功能用于修改包年包月队列网段。 + 说明: + 如果待修改网段的队列中有正在提交或正在运行的作业,或者改队列已经绑定了增强型跨源,将不支持修改网段操作。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.UpdateAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateAuthInfoResponse` + :param request: Request instance for UpdateQueueCidr + :type request: :class:`huaweicloudsdkdli.v1.UpdateQueueCidrRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateQueueCidrResponse` """ - warnings.warn("Method 'update_auth_info' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_auth_info_http_info(request) + warnings.warn("Method 'update_queue_cidr' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_queue_cidr_http_info(request) return self._call_api(**http_info) - def update_auth_info_invoker(self, request): - warnings.warn("Method 'update_auth_info_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_auth_info_http_info(request) + def update_queue_cidr_invoker(self, request): + warnings.warn("Method 'update_queue_cidr_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_queue_cidr_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_auth_info_http_info(cls, request): + def _update_queue_cidr_http_info(cls, request): http_info = { "method": "PUT", - "resource_path": "/v2.0/{project_id}/datasource/auth-infos", + "resource_path": "/v1.0/{project_id}/queues/{queue_name}", "request_type": request.__class__.__name__, - "response_type": "UpdateAuthInfoResponse" + "response_type": "UpdateQueueCidrResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4517,6 +4527,8 @@ def _update_auth_info_http_info(cls, request): collection_formats = {} path_params = {} + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -4548,31 +4560,31 @@ def _update_auth_info_http_info(cls, request): return http_info - def update_elastic_resource_pool(self, request): - """修改弹性资源池信息 + def update_queue_property(self, request): + """更新队列属性 - 修改弹性资源池信息 + 更新队列属性 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateElasticResourcePool - :type request: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolResponse` + :param request: Request instance for UpdateQueueProperty + :type request: :class:`huaweicloudsdkdli.v1.UpdateQueuePropertyRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateQueuePropertyResponse` """ - http_info = self._update_elastic_resource_pool_http_info(request) + http_info = self._update_queue_property_http_info(request) return self._call_api(**http_info) - def update_elastic_resource_pool_invoker(self, request): - http_info = self._update_elastic_resource_pool_http_info(request) + def update_queue_property_invoker(self, request): + http_info = self._update_queue_property_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_elastic_resource_pool_http_info(cls, request): + def _update_queue_property_http_info(cls, request): http_info = { "method": "PUT", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}", + "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", "request_type": request.__class__.__name__, - "response_type": "UpdateElasticResourcePoolResponse" + "response_type": "UpdateQueuePropertyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4582,8 +4594,8 @@ def _update_elastic_resource_pool_http_info(cls, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] + if 'queue_name' in local_var_params: + path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -4615,31 +4627,34 @@ def _update_elastic_resource_pool_http_info(cls, request): return http_info - def update_elastic_resource_pool_queue(self, request): - """修改弹性资源池关联的队列优先级 + def upload_files(self, request): + """上传file类型分组资源 - 设置弹性资源池指定队列的扩缩容策略信息。 + 该API用于在project下上传file类型模块。 + 说明: 上传同名file模块时,新模块将会覆盖旧模块。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateElasticResourcePoolQueue - :type request: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolQueueRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateElasticResourcePoolQueueResponse` + :param request: Request instance for UploadFiles + :type request: :class:`huaweicloudsdkdli.v1.UploadFilesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UploadFilesResponse` """ - http_info = self._update_elastic_resource_pool_queue_http_info(request) + warnings.warn("Method 'upload_files' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_files_http_info(request) return self._call_api(**http_info) - def update_elastic_resource_pool_queue_invoker(self, request): - http_info = self._update_elastic_resource_pool_queue_http_info(request) + def upload_files_invoker(self, request): + warnings.warn("Method 'upload_files_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_files_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_elastic_resource_pool_queue_http_info(cls, request): + def _upload_files_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues/{queue_name}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/resources/files", "request_type": request.__class__.__name__, - "response_type": "UpdateElasticResourcePoolQueueResponse" + "response_type": "UploadFilesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4649,14 +4664,12 @@ def _update_elastic_resource_pool_queue_http_info(cls, request): collection_formats = {} path_params = {} - if 'elastic_resource_pool_name' in local_var_params: - path_params['elastic_resource_pool_name'] = local_var_params['elastic_resource_pool_name'] - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] header_params = {} + if 'user_id' in local_var_params: + header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -4684,31 +4697,34 @@ def _update_elastic_resource_pool_queue_http_info(cls, request): return http_info - def update_enhanced_connection(self, request): - """修改增强型跨源主机信息 + def upload_jars(self, request): + """上传jar类型分组资源 - 该API用于在跨源中修改数据源主机信息,仅支持全量覆盖。 + 该API用于在project下上传jar类型分组资源。 + 说明:上传同名资源模块时,新模块将会覆盖旧模块。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateEnhancedConnection - :type request: :class:`huaweicloudsdkdli.v1.UpdateEnhancedConnectionRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateEnhancedConnectionResponse` + :param request: Request instance for UploadJars + :type request: :class:`huaweicloudsdkdli.v1.UploadJarsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UploadJarsResponse` """ - http_info = self._update_enhanced_connection_http_info(request) + warnings.warn("Method 'upload_jars' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_jars_http_info(request) return self._call_api(**http_info) - def update_enhanced_connection_invoker(self, request): - http_info = self._update_enhanced_connection_http_info(request) + def upload_jars_invoker(self, request): + warnings.warn("Method 'upload_jars_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_jars_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_enhanced_connection_http_info(cls, request): + def _upload_jars_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v2.0/{project_id}/datasource/enhanced-connections/{connection_id}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/resources/jars", "request_type": request.__class__.__name__, - "response_type": "UpdateEnhancedConnectionResponse" + "response_type": "UploadJarsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4718,12 +4734,12 @@ def _update_enhanced_connection_http_info(cls, request): collection_formats = {} path_params = {} - if 'connection_id' in local_var_params: - path_params['connection_id'] = local_var_params['connection_id'] query_params = [] header_params = {} + if 'user_id' in local_var_params: + header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -4751,31 +4767,34 @@ def _update_enhanced_connection_http_info(cls, request): return http_info - def update_global_variable(self, request): - """修改DLI全局变量 + def upload_python_files(self, request): + """上传pyfile类型分组资源 - 修改全局变量。 + 该API用于在project下的上传pyfile类型模块。 + 说明: 上传同名pyfile类型模块时,新模块将会覆盖旧模块。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateGlobalVariable - :type request: :class:`huaweicloudsdkdli.v1.UpdateGlobalVariableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateGlobalVariableResponse` + :param request: Request instance for UploadPythonFiles + :type request: :class:`huaweicloudsdkdli.v1.UploadPythonFilesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UploadPythonFilesResponse` """ - http_info = self._update_global_variable_http_info(request) + warnings.warn("Method 'upload_python_files' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_python_files_http_info(request) return self._call_api(**http_info) - def update_global_variable_invoker(self, request): - http_info = self._update_global_variable_http_info(request) + def upload_python_files_invoker(self, request): + warnings.warn("Method 'upload_python_files_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_python_files_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_global_variable_http_info(cls, request): + def _upload_python_files_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/variables/{var_name}", + "method": "POST", + "resource_path": "/v2.0/{project_id}/resources/pyfiles", "request_type": request.__class__.__name__, - "response_type": "UpdateGlobalVariableResponse" + "response_type": "UploadPythonFilesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4785,12 +4804,12 @@ def _update_global_variable_http_info(cls, request): collection_formats = {} path_params = {} - if 'var_name' in local_var_params: - path_params['var_name'] = local_var_params['var_name'] query_params = [] header_params = {} + if 'user_id' in local_var_params: + header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -4818,33 +4837,33 @@ def _update_global_variable_http_info(cls, request): return http_info - def update_group_or_resource_owner(self, request): - """修改组或者资源包拥有者 - - 用于修改程序包的owner。 + def upload_resources(self, request): + """上传分组资源 + + 该API用于上传分组资源到某个project下。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateGroupOrResourceOwner - :type request: :class:`huaweicloudsdkdli.v1.UpdateGroupOrResourceOwnerRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateGroupOrResourceOwnerResponse` + :param request: Request instance for UploadResources + :type request: :class:`huaweicloudsdkdli.v1.UploadResourcesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UploadResourcesResponse` """ - warnings.warn("Method 'update_group_or_resource_owner' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_group_or_resource_owner_http_info(request) + warnings.warn("Method 'upload_resources' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_resources_http_info(request) return self._call_api(**http_info) - def update_group_or_resource_owner_invoker(self, request): - warnings.warn("Method 'update_group_or_resource_owner_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_group_or_resource_owner_http_info(request) + def upload_resources_invoker(self, request): + warnings.warn("Method 'upload_resources_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._upload_resources_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_group_or_resource_owner_http_info(cls, request): + def _upload_resources_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v2.0/{project_id}/resources/owner", + "method": "POST", + "resource_path": "/v2.0/{project_id}/resources", "request_type": request.__class__.__name__, - "response_type": "UpdateGroupOrResourceOwnerResponse" + "response_type": "UploadResourcesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4858,6 +4877,8 @@ def _update_group_or_resource_owner_http_info(cls, request): query_params = [] header_params = {} + if 'user_id' in local_var_params: + header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -4885,31 +4906,31 @@ def _update_group_or_resource_owner_http_info(cls, request): return http_info - def update_job_auth_info(self, request): - """更新跨源认证 + def batch_delete_flink_jobs(self, request): + """批量删除Flink作业 - 该API用于更新跨源认证信息。 + 批量删除任何状态的作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateJobAuthInfo - :type request: :class:`huaweicloudsdkdli.v1.UpdateJobAuthInfoRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateJobAuthInfoResponse` + :param request: Request instance for BatchDeleteFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteFlinkJobsResponse` """ - http_info = self._update_job_auth_info_http_info(request) + http_info = self._batch_delete_flink_jobs_http_info(request) return self._call_api(**http_info) - def update_job_auth_info_invoker(self, request): - http_info = self._update_job_auth_info_http_info(request) + def batch_delete_flink_jobs_invoker(self, request): + http_info = self._batch_delete_flink_jobs_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_job_auth_info_http_info(cls, request): + def _batch_delete_flink_jobs_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/datasource/auth-infos", + "method": "POST", + "resource_path": "/v1.0/{project_id}/streaming/jobs/delete", "request_type": request.__class__.__name__, - "response_type": "UpdateJobAuthInfoResponse" + "response_type": "BatchDeleteFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4950,35 +4971,31 @@ def _update_job_auth_info_http_info(cls, request): return http_info - def update_queue_cidr(self, request): - """修改队列网段 + def batch_run_flink_jobs(self, request): + """批量运行Flink作业 - 该功能用于修改包年包月队列网段。 - 说明: - 如果待修改网段的队列中有正在提交或正在运行的作业,或者改队列已经绑定了增强型跨源,将不支持修改网段操作。 + 触发批量运行Flink作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateQueueCidr - :type request: :class:`huaweicloudsdkdli.v1.UpdateQueueCidrRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateQueueCidrResponse` + :param request: Request instance for BatchRunFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.BatchRunFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.BatchRunFlinkJobsResponse` """ - warnings.warn("Method 'update_queue_cidr' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_queue_cidr_http_info(request) + http_info = self._batch_run_flink_jobs_http_info(request) return self._call_api(**http_info) - def update_queue_cidr_invoker(self, request): - warnings.warn("Method 'update_queue_cidr_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_queue_cidr_http_info(request) + def batch_run_flink_jobs_invoker(self, request): + http_info = self._batch_run_flink_jobs_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_queue_cidr_http_info(cls, request): + def _batch_run_flink_jobs_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/queues/{queue_name}", + "method": "POST", + "resource_path": "/v1.0/{project_id}/streaming/jobs/run", "request_type": request.__class__.__name__, - "response_type": "UpdateQueueCidrResponse" + "response_type": "BatchRunFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4988,8 +5005,6 @@ def _update_queue_cidr_http_info(cls, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -5021,31 +5036,33 @@ def _update_queue_cidr_http_info(cls, request): return http_info - def update_queue_property(self, request): - """更新队列属性 + def change_flink_job_status_report(self, request): + """边缘Flink作业状态信息上报 - 更新队列属性 + 该API用于处理边缘Flink作业状态上报信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateQueueProperty - :type request: :class:`huaweicloudsdkdli.v1.UpdateQueuePropertyRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateQueuePropertyResponse` + :param request: Request instance for ChangeFlinkJobStatusReport + :type request: :class:`huaweicloudsdkdli.v1.ChangeFlinkJobStatusReportRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ChangeFlinkJobStatusReportResponse` """ - http_info = self._update_queue_property_http_info(request) + warnings.warn("Method 'change_flink_job_status_report' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_flink_job_status_report_http_info(request) return self._call_api(**http_info) - def update_queue_property_invoker(self, request): - http_info = self._update_queue_property_http_info(request) + def change_flink_job_status_report_invoker(self, request): + warnings.warn("Method 'change_flink_job_status_report_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._change_flink_job_status_report_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_queue_property_http_info(cls, request): + def _change_flink_job_status_report_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v3/{project_id}/queues/{queue_name}/properties", + "method": "POST", + "resource_path": "/v1/{project_id}/edgesrv/job-report", "request_type": request.__class__.__name__, - "response_type": "UpdateQueuePropertyResponse" + "response_type": "ChangeFlinkJobStatusReportResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5055,8 +5072,6 @@ def _update_queue_property_http_info(cls, request): collection_formats = {} path_params = {} - if 'queue_name' in local_var_params: - path_params['queue_name'] = local_var_params['queue_name'] query_params = [] @@ -5088,34 +5103,31 @@ def _update_queue_property_http_info(cls, request): return http_info - def upload_files(self, request): - """上传file类型分组资源 + def create_flink_jar_job(self, request): + """新建Flink Jar作业 - 该API用于在project下上传file类型模块。 - 说明: 上传同名file模块时,新模块将会覆盖旧模块。 + 用户自定义作业目前支持jar格式,运行在独享集群中。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UploadFiles - :type request: :class:`huaweicloudsdkdli.v1.UploadFilesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UploadFilesResponse` + :param request: Request instance for CreateFlinkJarJob + :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkJarJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkJarJobResponse` """ - warnings.warn("Method 'upload_files' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_files_http_info(request) + http_info = self._create_flink_jar_job_http_info(request) return self._call_api(**http_info) - def upload_files_invoker(self, request): - warnings.warn("Method 'upload_files_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_files_http_info(request) + def create_flink_jar_job_invoker(self, request): + http_info = self._create_flink_jar_job_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _upload_files_http_info(cls, request): + def _create_flink_jar_job_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/resources/files", + "resource_path": "/v1.0/{project_id}/streaming/flink-jobs", "request_type": request.__class__.__name__, - "response_type": "UploadFilesResponse" + "response_type": "CreateFlinkJarJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5129,8 +5141,6 @@ def _upload_files_http_info(cls, request): query_params = [] header_params = {} - if 'user_id' in local_var_params: - header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -5158,34 +5168,31 @@ def _upload_files_http_info(cls, request): return http_info - def upload_jars(self, request): - """上传jar类型分组资源 + def create_flink_sql_job(self, request): + """新建Flink SQL作业 - 该API用于在project下上传jar类型分组资源。 - 说明:上传同名资源模块时,新模块将会覆盖旧模块。 + 通过POST方式,提交流式SQL作业,请求体为JSON格式。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UploadJars - :type request: :class:`huaweicloudsdkdli.v1.UploadJarsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UploadJarsResponse` + :param request: Request instance for CreateFlinkSqlJob + :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobResponse` """ - warnings.warn("Method 'upload_jars' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_jars_http_info(request) + http_info = self._create_flink_sql_job_http_info(request) return self._call_api(**http_info) - def upload_jars_invoker(self, request): - warnings.warn("Method 'upload_jars_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_jars_http_info(request) + def create_flink_sql_job_invoker(self, request): + http_info = self._create_flink_sql_job_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _upload_jars_http_info(cls, request): + def _create_flink_sql_job_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/resources/jars", + "resource_path": "/v1.0/{project_id}/streaming/sql-jobs", "request_type": request.__class__.__name__, - "response_type": "UploadJarsResponse" + "response_type": "CreateFlinkSqlJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5199,8 +5206,6 @@ def _upload_jars_http_info(cls, request): query_params = [] header_params = {} - if 'user_id' in local_var_params: - header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -5228,34 +5233,31 @@ def _upload_jars_http_info(cls, request): return http_info - def upload_python_files(self, request): - """上传pyfile类型分组资源 + def create_flink_sql_job_graph(self, request): + """生成flink SQL作业的静态流图 - 该API用于在project下的上传pyfile类型模块。 - 说明: 上传同名pyfile类型模块时,新模块将会覆盖旧模块。 + 生成flink SQL作业的静态流图 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UploadPythonFiles - :type request: :class:`huaweicloudsdkdli.v1.UploadPythonFilesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UploadPythonFilesResponse` + :param request: Request instance for CreateFlinkSqlJobGraph + :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobGraphRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobGraphResponse` """ - warnings.warn("Method 'upload_python_files' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_python_files_http_info(request) + http_info = self._create_flink_sql_job_graph_http_info(request) return self._call_api(**http_info) - def upload_python_files_invoker(self, request): - warnings.warn("Method 'upload_python_files_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_python_files_http_info(request) + def create_flink_sql_job_graph_invoker(self, request): + http_info = self._create_flink_sql_job_graph_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _upload_python_files_http_info(cls, request): + def _create_flink_sql_job_graph_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/resources/pyfiles", + "resource_path": "/v3/{project_id}/streaming/jobs/{job_id}/gen-graph", "request_type": request.__class__.__name__, - "response_type": "UploadPythonFilesResponse" + "response_type": "CreateFlinkSqlJobGraphResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5265,12 +5267,12 @@ def _upload_python_files_http_info(cls, request): 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 'user_id' in local_var_params: - header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -5298,33 +5300,31 @@ def _upload_python_files_http_info(cls, request): return http_info - def upload_resources(self, request): - """上传分组资源 + def create_flink_sql_job_template(self, request): + """新建Flink作业模板 - 该API用于上传分组资源到某个project下。 + 在DLI服务中新建一个Flink作业模板,最多100个。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UploadResources - :type request: :class:`huaweicloudsdkdli.v1.UploadResourcesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UploadResourcesResponse` + :param request: Request instance for CreateFlinkSqlJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobTemplateResponse` """ - warnings.warn("Method 'upload_resources' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_resources_http_info(request) + http_info = self._create_flink_sql_job_template_http_info(request) return self._call_api(**http_info) - def upload_resources_invoker(self, request): - warnings.warn("Method 'upload_resources_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._upload_resources_http_info(request) + def create_flink_sql_job_template_invoker(self, request): + http_info = self._create_flink_sql_job_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _upload_resources_http_info(cls, request): + def _create_flink_sql_job_template_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v2.0/{project_id}/resources", + "resource_path": "/v1.0/{project_id}/streaming/job-templates", "request_type": request.__class__.__name__, - "response_type": "UploadResourcesResponse" + "response_type": "CreateFlinkSqlJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5338,8 +5338,6 @@ def _upload_resources_http_info(cls, request): query_params = [] header_params = {} - if 'user_id' in local_var_params: - header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -5367,31 +5365,33 @@ def _upload_resources_http_info(cls, request): return http_info - def batch_delete_flink_jobs(self, request): - """批量删除Flink作业 + def create_ief_message_channel(self, request): + """创建IEF消息通道 - 批量删除任何状态的作业。 + 该API用于创建IEF消息通道 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchDeleteFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteFlinkJobsResponse` + :param request: Request instance for CreateIefMessageChannel + :type request: :class:`huaweicloudsdkdli.v1.CreateIefMessageChannelRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateIefMessageChannelResponse` """ - http_info = self._batch_delete_flink_jobs_http_info(request) + warnings.warn("Method 'create_ief_message_channel' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_ief_message_channel_http_info(request) return self._call_api(**http_info) - def batch_delete_flink_jobs_invoker(self, request): - http_info = self._batch_delete_flink_jobs_http_info(request) + def create_ief_message_channel_invoker(self, request): + warnings.warn("Method 'create_ief_message_channel_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_ief_message_channel_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _batch_delete_flink_jobs_http_info(cls, request): + def _create_ief_message_channel_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/delete", + "resource_path": "/v1/{project_id}/edgesrv/message-channel", "request_type": request.__class__.__name__, - "response_type": "BatchDeleteFlinkJobsResponse" + "response_type": "CreateIefMessageChannelResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5432,31 +5432,33 @@ def _batch_delete_flink_jobs_http_info(cls, request): return http_info - def batch_run_flink_jobs(self, request): - """批量运行Flink作业 + def create_ief_system_events(self, request): + """IEF系统事件上报 - 触发批量运行Flink作业。 + 该API用于处理IEF系统事件上报 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchRunFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.BatchRunFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.BatchRunFlinkJobsResponse` + :param request: Request instance for CreateIefSystemEvents + :type request: :class:`huaweicloudsdkdli.v1.CreateIefSystemEventsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateIefSystemEventsResponse` """ - http_info = self._batch_run_flink_jobs_http_info(request) + warnings.warn("Method 'create_ief_system_events' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_ief_system_events_http_info(request) return self._call_api(**http_info) - def batch_run_flink_jobs_invoker(self, request): - http_info = self._batch_run_flink_jobs_http_info(request) + def create_ief_system_events_invoker(self, request): + warnings.warn("Method 'create_ief_system_events_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_ief_system_events_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _batch_run_flink_jobs_http_info(cls, request): + def _create_ief_system_events_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/run", + "resource_path": "/v1/{project_id}/edgesrv/system-events", "request_type": request.__class__.__name__, - "response_type": "BatchRunFlinkJobsResponse" + "response_type": "CreateIefSystemEventsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5497,33 +5499,31 @@ def _batch_run_flink_jobs_http_info(cls, request): return http_info - def change_flink_job_status_report(self, request): - """边缘Flink作业状态信息上报 + def delete_flink_job(self, request): + """删除作业 - 该API用于处理边缘Flink作业状态上报信息 + 删除任何状态的作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ChangeFlinkJobStatusReport - :type request: :class:`huaweicloudsdkdli.v1.ChangeFlinkJobStatusReportRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ChangeFlinkJobStatusReportResponse` + :param request: Request instance for DeleteFlinkJob + :type request: :class:`huaweicloudsdkdli.v1.DeleteFlinkJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteFlinkJobResponse` """ - warnings.warn("Method 'change_flink_job_status_report' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_flink_job_status_report_http_info(request) + http_info = self._delete_flink_job_http_info(request) return self._call_api(**http_info) - def change_flink_job_status_report_invoker(self, request): - warnings.warn("Method 'change_flink_job_status_report_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._change_flink_job_status_report_http_info(request) + def delete_flink_job_invoker(self, request): + http_info = self._delete_flink_job_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _change_flink_job_status_report_http_info(cls, request): + def _delete_flink_job_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/edgesrv/job-report", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "ChangeFlinkJobStatusReportResponse" + "response_type": "DeleteFlinkJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5533,6 +5533,8 @@ def _change_flink_job_status_report_http_info(cls, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -5541,8 +5543,6 @@ def _change_flink_job_status_report_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -5564,31 +5564,31 @@ def _change_flink_job_status_report_http_info(cls, request): return http_info - def create_flink_jar_job(self, request): - """新建Flink Jar作业 + def delete_flink_sql_job_template(self, request): + """删除Flink作业模板 - 用户自定义作业目前支持jar格式,运行在独享集群中。 + 删除一个Flink作业模板,即使当前模板正在被作业使用,也允许删除。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateFlinkJarJob - :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkJarJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkJarJobResponse` + :param request: Request instance for DeleteFlinkSqlJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.DeleteFlinkSqlJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteFlinkSqlJobTemplateResponse` """ - http_info = self._create_flink_jar_job_http_info(request) + http_info = self._delete_flink_sql_job_template_http_info(request) return self._call_api(**http_info) - def create_flink_jar_job_invoker(self, request): - http_info = self._create_flink_jar_job_http_info(request) + def delete_flink_sql_job_template_invoker(self, request): + http_info = self._delete_flink_sql_job_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_flink_jar_job_http_info(cls, request): + def _delete_flink_sql_job_template_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/flink-jobs", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/streaming/job-templates/{template_id}", "request_type": request.__class__.__name__, - "response_type": "CreateFlinkJarJobResponse" + "response_type": "DeleteFlinkSqlJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5598,6 +5598,8 @@ def _create_flink_jar_job_http_info(cls, request): collection_formats = {} path_params = {} + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] query_params = [] @@ -5606,8 +5608,6 @@ def _create_flink_jar_job_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -5629,31 +5629,31 @@ def _create_flink_jar_job_http_info(cls, request): return http_info - def create_flink_sql_job(self, request): - """新建Flink SQL作业 + def export_flink_jobs(self, request): + """flink作业导出 - 通过POST方式,提交流式SQL作业,请求体为JSON格式。 + 通过POST方式,导出flink作业,请求体为JSON格式。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateFlinkSqlJob - :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobResponse` + :param request: Request instance for ExportFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.ExportFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ExportFlinkJobsResponse` """ - http_info = self._create_flink_sql_job_http_info(request) + http_info = self._export_flink_jobs_http_info(request) return self._call_api(**http_info) - def create_flink_sql_job_invoker(self, request): - http_info = self._create_flink_sql_job_http_info(request) + def export_flink_jobs_invoker(self, request): + http_info = self._export_flink_jobs_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_flink_sql_job_http_info(cls, request): + def _export_flink_jobs_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/sql-jobs", + "resource_path": "/v1.0/{project_id}/streaming/jobs/export", "request_type": request.__class__.__name__, - "response_type": "CreateFlinkSqlJobResponse" + "response_type": "ExportFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5694,31 +5694,31 @@ def _create_flink_sql_job_http_info(cls, request): return http_info - def create_flink_sql_job_graph(self, request): - """生成flink SQL作业的静态流图 + def import_flink_jobs(self, request): + """flink作业导入 - 生成flink SQL作业的静态流图 + 通过POST方式,导入flink作业,请求体为JSON格式。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateFlinkSqlJobGraph - :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobGraphRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobGraphResponse` + :param request: Request instance for ImportFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.ImportFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ImportFlinkJobsResponse` """ - http_info = self._create_flink_sql_job_graph_http_info(request) + http_info = self._import_flink_jobs_http_info(request) return self._call_api(**http_info) - def create_flink_sql_job_graph_invoker(self, request): - http_info = self._create_flink_sql_job_graph_http_info(request) + def import_flink_jobs_invoker(self, request): + http_info = self._import_flink_jobs_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_flink_sql_job_graph_http_info(cls, request): + def _import_flink_jobs_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v3/{project_id}/streaming/jobs/{job_id}/gen-graph", + "resource_path": "/v1.0/{project_id}/streaming/jobs/import", "request_type": request.__class__.__name__, - "response_type": "CreateFlinkSqlJobGraphResponse" + "response_type": "ImportFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5728,8 +5728,6 @@ def _create_flink_sql_job_graph_http_info(cls, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -5761,31 +5759,31 @@ def _create_flink_sql_job_graph_http_info(cls, request): return http_info - def create_flink_sql_job_template(self, request): - """新建Flink作业模板 + def list_flink_jobs(self, request): + """查询Flink作业列表 - 在DLI服务中新建一个Flink作业模板,最多100个。 + 查询当前用户的作业列表,可以根据作业ID作为ID,查询大于ID或小于ID的限定条数的作业,默认查询全部状态的作业,也可以设定运行中或其他状态条件。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateFlinkSqlJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateFlinkSqlJobTemplateResponse` + :param request: Request instance for ListFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.ListFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListFlinkJobsResponse` """ - http_info = self._create_flink_sql_job_template_http_info(request) + http_info = self._list_flink_jobs_http_info(request) return self._call_api(**http_info) - def create_flink_sql_job_template_invoker(self, request): - http_info = self._create_flink_sql_job_template_http_info(request) + def list_flink_jobs_invoker(self, request): + http_info = self._list_flink_jobs_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_flink_sql_job_template_http_info(cls, request): + def _list_flink_jobs_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/job-templates", + "method": "GET", + "resource_path": "/v1.0/{project_id}/streaming/jobs", "request_type": request.__class__.__name__, - "response_type": "CreateFlinkSqlJobTemplateResponse" + "response_type": "ListFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5797,14 +5795,36 @@ def _create_flink_sql_job_template_http_info(cls, request): path_params = {} query_params = [] + if 'job_type' in local_var_params: + query_params.append(('job_type', local_var_params['job_type'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + if 'queue_name' in local_var_params: + query_params.append(('queue_name', local_var_params['queue_name'])) + if 'root_job_id' in local_var_params: + query_params.append(('root_job_id', local_var_params['root_job_id'])) + if 'show_detail' in local_var_params: + query_params.append(('show_detail', local_var_params['show_detail'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'sys_enterprise_project_name' in local_var_params: + query_params.append(('sys_enterprise_project_name', local_var_params['sys_enterprise_project_name'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'user_name' in local_var_params: + query_params.append(('user_name', local_var_params['user_name'])) 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() @@ -5826,33 +5846,31 @@ def _create_flink_sql_job_template_http_info(cls, request): return http_info - def create_ief_message_channel(self, request): - """创建IEF消息通道 + def list_flink_sql_job_templates(self, request): + """查询Flink作业模板列表 - 该API用于创建IEF消息通道 + 查询Flink作业模板列表。当前只支持查询用户自定义模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateIefMessageChannel - :type request: :class:`huaweicloudsdkdli.v1.CreateIefMessageChannelRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateIefMessageChannelResponse` + :param request: Request instance for ListFlinkSqlJobTemplates + :type request: :class:`huaweicloudsdkdli.v1.ListFlinkSqlJobTemplatesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListFlinkSqlJobTemplatesResponse` """ - warnings.warn("Method 'create_ief_message_channel' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_ief_message_channel_http_info(request) + http_info = self._list_flink_sql_job_templates_http_info(request) return self._call_api(**http_info) - def create_ief_message_channel_invoker(self, request): - warnings.warn("Method 'create_ief_message_channel_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_ief_message_channel_http_info(request) + def list_flink_sql_job_templates_invoker(self, request): + http_info = self._list_flink_sql_job_templates_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_ief_message_channel_http_info(cls, request): + def _list_flink_sql_job_templates_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/edgesrv/message-channel", + "method": "GET", + "resource_path": "/v1.0/{project_id}/streaming/job-templates", "request_type": request.__class__.__name__, - "response_type": "CreateIefMessageChannelResponse" + "response_type": "ListFlinkSqlJobTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5864,14 +5882,22 @@ def _create_ief_message_channel_http_info(cls, request): path_params = {} query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) 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() @@ -5893,33 +5919,33 @@ def _create_ief_message_channel_http_info(cls, request): return http_info - def create_ief_system_events(self, request): - """IEF系统事件上报 + def register_bucket(self, request): + """OBS授权给DLI服务 - 该API用于处理IEF系统事件上报 + 用户主动授权OBS桶的操作权限给DLI服务, 用于保存用户作业的checkpoint、作业的运行日志等。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateIefSystemEvents - :type request: :class:`huaweicloudsdkdli.v1.CreateIefSystemEventsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateIefSystemEventsResponse` + :param request: Request instance for RegisterBucket + :type request: :class:`huaweicloudsdkdli.v1.RegisterBucketRequest` + :rtype: :class:`huaweicloudsdkdli.v1.RegisterBucketResponse` """ - warnings.warn("Method 'create_ief_system_events' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_ief_system_events_http_info(request) + warnings.warn("Method 'register_bucket' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._register_bucket_http_info(request) return self._call_api(**http_info) - def create_ief_system_events_invoker(self, request): - warnings.warn("Method 'create_ief_system_events_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_ief_system_events_http_info(request) - return SyncInvoker(self, http_info) + def register_bucket_invoker(self, request): + warnings.warn("Method 'register_bucket_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._register_bucket_http_info(request) + return SyncInvoker(self, http_info) @classmethod - def _create_ief_system_events_http_info(cls, request): + def _register_bucket_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/edgesrv/system-events", + "resource_path": "/v1.0/{project_id}/dli/obs-authorize", "request_type": request.__class__.__name__, - "response_type": "CreateIefSystemEventsResponse" + "response_type": "RegisterBucketResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5960,31 +5986,33 @@ def _create_ief_system_events_http_info(cls, request): return http_info - def delete_flink_job(self, request): - """删除作业 + def run_ief_job_action_call_back(self, request): + """边缘Flink作业Action状态回调 - 删除任何状态的作业。 + 该API用于处理IEF Flink作业action回调信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteFlinkJob - :type request: :class:`huaweicloudsdkdli.v1.DeleteFlinkJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteFlinkJobResponse` + :param request: Request instance for RunIefJobActionCallBack + :type request: :class:`huaweicloudsdkdli.v1.RunIefJobActionCallBackRequest` + :rtype: :class:`huaweicloudsdkdli.v1.RunIefJobActionCallBackResponse` """ - http_info = self._delete_flink_job_http_info(request) + warnings.warn("Method 'run_ief_job_action_call_back' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._run_ief_job_action_call_back_http_info(request) return self._call_api(**http_info) - def delete_flink_job_invoker(self, request): - http_info = self._delete_flink_job_http_info(request) + def run_ief_job_action_call_back_invoker(self, request): + warnings.warn("Method 'run_ief_job_action_call_back_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._run_ief_job_action_call_back_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_flink_job_http_info(cls, request): + def _run_ief_job_action_call_back_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}", + "method": "POST", + "resource_path": "/v1/{project_id}/edgesrv/messages", "request_type": request.__class__.__name__, - "response_type": "DeleteFlinkJobResponse" + "response_type": "RunIefJobActionCallBackResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5994,8 +6022,6 @@ def _delete_flink_job_http_info(cls, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6004,6 +6030,8 @@ def _delete_flink_job_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -6025,31 +6053,31 @@ def _delete_flink_job_http_info(cls, request): return http_info - def delete_flink_sql_job_template(self, request): - """删除Flink作业模板 + def show_flink_job(self, request): + """查询Flink作业详情 - 删除一个Flink作业模板,即使当前模板正在被作业使用,也允许删除。 + 查看一个Flink作业的详情信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteFlinkSqlJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.DeleteFlinkSqlJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteFlinkSqlJobTemplateResponse` + :param request: Request instance for ShowFlinkJob + :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkJobResponse` """ - http_info = self._delete_flink_sql_job_template_http_info(request) + http_info = self._show_flink_job_http_info(request) return self._call_api(**http_info) - def delete_flink_sql_job_template_invoker(self, request): - http_info = self._delete_flink_sql_job_template_http_info(request) + def show_flink_job_invoker(self, request): + http_info = self._show_flink_job_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_flink_sql_job_template_http_info(cls, request): + def _show_flink_job_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/streaming/job-templates/{template_id}", + "method": "GET", + "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "DeleteFlinkSqlJobTemplateResponse" + "response_type": "ShowFlinkJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6059,8 +6087,8 @@ def _delete_flink_sql_job_template_http_info(cls, request): collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['template_id'] = local_var_params['template_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6090,31 +6118,31 @@ def _delete_flink_sql_job_template_http_info(cls, request): return http_info - def export_flink_jobs(self, request): - """flink作业导出 + def show_flink_job_execution_graph(self, request): + """查询Flink作业执行计划 - 通过POST方式,导出flink作业,请求体为JSON格式。 + 查询Flink作业执行计划。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ExportFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.ExportFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ExportFlinkJobsResponse` + :param request: Request instance for ShowFlinkJobExecutionGraph + :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkJobExecutionGraphRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkJobExecutionGraphResponse` """ - http_info = self._export_flink_jobs_http_info(request) + http_info = self._show_flink_job_execution_graph_http_info(request) return self._call_api(**http_info) - def export_flink_jobs_invoker(self, request): - http_info = self._export_flink_jobs_http_info(request) + def show_flink_job_execution_graph_invoker(self, request): + http_info = self._show_flink_job_execution_graph_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _export_flink_jobs_http_info(cls, request): + def _show_flink_job_execution_graph_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/export", + "method": "GET", + "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}/execute-graph", "request_type": request.__class__.__name__, - "response_type": "ExportFlinkJobsResponse" + "response_type": "ShowFlinkJobExecutionGraphResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6124,6 +6152,8 @@ def _export_flink_jobs_http_info(cls, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6132,8 +6162,6 @@ def _export_flink_jobs_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -6155,31 +6183,33 @@ def _export_flink_jobs_http_info(cls, request): return http_info - def import_flink_jobs(self, request): - """flink作业导入 + def show_flink_metric(self, request): + """查询Flink作业监控信息 - 通过POST方式,导入flink作业,请求体为JSON格式。 + 查询Flink作业监控信息, 支持同时查询多个Flink作业的监控信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ImportFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.ImportFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ImportFlinkJobsResponse` + :param request: Request instance for ShowFlinkMetric + :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkMetricRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkMetricResponse` """ - http_info = self._import_flink_jobs_http_info(request) + warnings.warn("Method 'show_flink_metric' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_flink_metric_http_info(request) return self._call_api(**http_info) - def import_flink_jobs_invoker(self, request): - http_info = self._import_flink_jobs_http_info(request) + def show_flink_metric_invoker(self, request): + warnings.warn("Method 'show_flink_metric_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_flink_metric_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _import_flink_jobs_http_info(cls, request): + def _show_flink_metric_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/import", + "resource_path": "/v1.0/{project_id}/streaming/jobs/metrics", "request_type": request.__class__.__name__, - "response_type": "ImportFlinkJobsResponse" + "response_type": "ShowFlinkMetricResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6220,31 +6250,31 @@ def _import_flink_jobs_http_info(cls, request): return http_info - def list_flink_jobs(self, request): - """查询Flink作业列表 + def stop_flink_jobs(self, request): + """批量停止Flink作业 - 查询当前用户的作业列表,可以根据作业ID作为ID,查询大于ID或小于ID的限定条数的作业,默认查询全部状态的作业,也可以设定运行中或其他状态条件。 + 批量停止正在运行的Flink作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.ListFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListFlinkJobsResponse` + :param request: Request instance for StopFlinkJobs + :type request: :class:`huaweicloudsdkdli.v1.StopFlinkJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.StopFlinkJobsResponse` """ - http_info = self._list_flink_jobs_http_info(request) + http_info = self._stop_flink_jobs_http_info(request) return self._call_api(**http_info) - def list_flink_jobs_invoker(self, request): - http_info = self._list_flink_jobs_http_info(request) + def stop_flink_jobs_invoker(self, request): + http_info = self._stop_flink_jobs_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_flink_jobs_http_info(cls, request): + def _stop_flink_jobs_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/streaming/jobs", + "method": "POST", + "resource_path": "/v1.0/{project_id}/streaming/jobs/stop", "request_type": request.__class__.__name__, - "response_type": "ListFlinkJobsResponse" + "response_type": "StopFlinkJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6256,36 +6286,14 @@ def _list_flink_jobs_http_info(cls, request): path_params = {} query_params = [] - if 'job_type' in local_var_params: - query_params.append(('job_type', local_var_params['job_type'])) - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'order' in local_var_params: - query_params.append(('order', local_var_params['order'])) - if 'queue_name' in local_var_params: - query_params.append(('queue_name', local_var_params['queue_name'])) - if 'root_job_id' in local_var_params: - query_params.append(('root_job_id', local_var_params['root_job_id'])) - if 'show_detail' in local_var_params: - query_params.append(('show_detail', local_var_params['show_detail'])) - if 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) - if 'sys_enterprise_project_name' in local_var_params: - query_params.append(('sys_enterprise_project_name', local_var_params['sys_enterprise_project_name'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) - if 'user_name' in local_var_params: - query_params.append(('user_name', local_var_params['user_name'])) 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() @@ -6307,31 +6315,31 @@ def _list_flink_jobs_http_info(cls, request): return http_info - def list_flink_sql_job_templates(self, request): - """查询Flink作业模板列表 + def update_flink_jar_job(self, request): + """更新Flink Jar作业 - 查询Flink作业模板列表。当前只支持查询用户自定义模板。 + 更新用户自定义作业,目前支持jar格式,运行在独享集群中。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListFlinkSqlJobTemplates - :type request: :class:`huaweicloudsdkdli.v1.ListFlinkSqlJobTemplatesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListFlinkSqlJobTemplatesResponse` + :param request: Request instance for UpdateFlinkJarJob + :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkJarJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkJarJobResponse` """ - http_info = self._list_flink_sql_job_templates_http_info(request) + http_info = self._update_flink_jar_job_http_info(request) return self._call_api(**http_info) - def list_flink_sql_job_templates_invoker(self, request): - http_info = self._list_flink_sql_job_templates_http_info(request) + def update_flink_jar_job_invoker(self, request): + http_info = self._update_flink_jar_job_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_flink_sql_job_templates_http_info(cls, request): + def _update_flink_jar_job_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/streaming/job-templates", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/streaming/flink-jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "ListFlinkSqlJobTemplatesResponse" + "response_type": "UpdateFlinkJarJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6341,24 +6349,18 @@ def _list_flink_sql_job_templates_http_info(cls, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'order' in local_var_params: - query_params.append(('order', local_var_params['order'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) 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() @@ -6380,33 +6382,31 @@ def _list_flink_sql_job_templates_http_info(cls, request): return http_info - def register_bucket(self, request): - """OBS授权给DLI服务 + def update_flink_sql_job(self, request): + """更新Flink SQL作业 - 用户主动授权OBS桶的操作权限给DLI服务, 用于保存用户作业的checkpoint、作业的运行日志等。 + Stream SQL的语法扩展了Apache Flink SQL。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RegisterBucket - :type request: :class:`huaweicloudsdkdli.v1.RegisterBucketRequest` - :rtype: :class:`huaweicloudsdkdli.v1.RegisterBucketResponse` + :param request: Request instance for UpdateFlinkSqlJob + :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobResponse` """ - warnings.warn("Method 'register_bucket' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._register_bucket_http_info(request) + http_info = self._update_flink_sql_job_http_info(request) return self._call_api(**http_info) - def register_bucket_invoker(self, request): - warnings.warn("Method 'register_bucket_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._register_bucket_http_info(request) + def update_flink_sql_job_invoker(self, request): + http_info = self._update_flink_sql_job_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _register_bucket_http_info(cls, request): + def _update_flink_sql_job_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/dli/obs-authorize", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/streaming/sql-jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "RegisterBucketResponse" + "response_type": "UpdateFlinkSqlJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6416,6 +6416,8 @@ def _register_bucket_http_info(cls, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6447,33 +6449,31 @@ def _register_bucket_http_info(cls, request): return http_info - def run_ief_job_action_call_back(self, request): - """边缘Flink作业Action状态回调 + def update_flink_sql_job_template(self, request): + """更新Flink作业模板 - 该API用于处理IEF Flink作业action回调信息 + 对DLI服务中已有的Flink作业模板进行更新。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RunIefJobActionCallBack - :type request: :class:`huaweicloudsdkdli.v1.RunIefJobActionCallBackRequest` - :rtype: :class:`huaweicloudsdkdli.v1.RunIefJobActionCallBackResponse` + :param request: Request instance for UpdateFlinkSqlJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobTemplateResponse` """ - warnings.warn("Method 'run_ief_job_action_call_back' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._run_ief_job_action_call_back_http_info(request) + http_info = self._update_flink_sql_job_template_http_info(request) return self._call_api(**http_info) - def run_ief_job_action_call_back_invoker(self, request): - warnings.warn("Method 'run_ief_job_action_call_back_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._run_ief_job_action_call_back_http_info(request) + def update_flink_sql_job_template_invoker(self, request): + http_info = self._update_flink_sql_job_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _run_ief_job_action_call_back_http_info(cls, request): + def _update_flink_sql_job_template_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/edgesrv/messages", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/streaming/job-templates/{template_id}", "request_type": request.__class__.__name__, - "response_type": "RunIefJobActionCallBackResponse" + "response_type": "UpdateFlinkSqlJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6483,6 +6483,8 @@ def _run_ief_job_action_call_back_http_info(cls, request): collection_formats = {} path_params = {} + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] query_params = [] @@ -6514,31 +6516,31 @@ def _run_ief_job_action_call_back_http_info(cls, request): return http_info - def show_flink_job(self, request): - """查询Flink作业详情 + def batch_delete_sql_job_templates(self, request): + """批量删除SQL模板 - 查看一个Flink作业的详情信息。 + 该API用于批量删除SQL模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowFlinkJob - :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkJobResponse` + :param request: Request instance for BatchDeleteSqlJobTemplates + :type request: :class:`huaweicloudsdkdli.v1.BatchDeleteSqlJobTemplatesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.BatchDeleteSqlJobTemplatesResponse` """ - http_info = self._show_flink_job_http_info(request) + http_info = self._batch_delete_sql_job_templates_http_info(request) return self._call_api(**http_info) - def show_flink_job_invoker(self, request): - http_info = self._show_flink_job_http_info(request) + def batch_delete_sql_job_templates_invoker(self, request): + http_info = self._batch_delete_sql_job_templates_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_flink_job_http_info(cls, request): + def _batch_delete_sql_job_templates_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}", + "method": "POST", + "resource_path": "/v1.0/{project_id}/sqls-deletion", "request_type": request.__class__.__name__, - "response_type": "ShowFlinkJobResponse" + "response_type": "BatchDeleteSqlJobTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6548,8 +6550,6 @@ def _show_flink_job_http_info(cls, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6558,6 +6558,8 @@ def _show_flink_job_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -6579,31 +6581,31 @@ def _show_flink_job_http_info(cls, request): return http_info - def show_flink_job_execution_graph(self, request): - """查询Flink作业执行计划 + def cancel_sql_job(self, request): + """取消作业 - 查询Flink作业执行计划。 + 该API用于取消已经提交的作业,若作业已经执行结束或失败则无法取消。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowFlinkJobExecutionGraph - :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkJobExecutionGraphRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkJobExecutionGraphResponse` + :param request: Request instance for CancelSqlJob + :type request: :class:`huaweicloudsdkdli.v1.CancelSqlJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CancelSqlJobResponse` """ - http_info = self._show_flink_job_execution_graph_http_info(request) + http_info = self._cancel_sql_job_http_info(request) return self._call_api(**http_info) - def show_flink_job_execution_graph_invoker(self, request): - http_info = self._show_flink_job_execution_graph_http_info(request) + def cancel_sql_job_invoker(self, request): + http_info = self._cancel_sql_job_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_flink_job_execution_graph_http_info(cls, request): + def _cancel_sql_job_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/streaming/jobs/{job_id}/execute-graph", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "ShowFlinkJobExecutionGraphResponse" + "response_type": "CancelSqlJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6644,33 +6646,31 @@ def _show_flink_job_execution_graph_http_info(cls, request): return http_info - def show_flink_metric(self, request): - """查询Flink作业监控信息 + def check_sql(self, request): + """检查SQL语法 - 查询Flink作业监控信息, 支持同时查询多个Flink作业的监控信息。 + 该API用于检查SQL语法。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowFlinkMetric - :type request: :class:`huaweicloudsdkdli.v1.ShowFlinkMetricRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowFlinkMetricResponse` + :param request: Request instance for CheckSql + :type request: :class:`huaweicloudsdkdli.v1.CheckSqlRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CheckSqlResponse` """ - warnings.warn("Method 'show_flink_metric' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_flink_metric_http_info(request) + http_info = self._check_sql_http_info(request) return self._call_api(**http_info) - def show_flink_metric_invoker(self, request): - warnings.warn("Method 'show_flink_metric_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_flink_metric_http_info(request) + def check_sql_invoker(self, request): + http_info = self._check_sql_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_flink_metric_http_info(cls, request): + def _check_sql_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/metrics", + "resource_path": "/v1.0/{project_id}/jobs/check-sql", "request_type": request.__class__.__name__, - "response_type": "ShowFlinkMetricResponse" + "response_type": "CheckSqlResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6711,31 +6711,33 @@ def _show_flink_metric_http_info(cls, request): return http_info - def stop_flink_jobs(self, request): - """批量停止Flink作业 + def create_database(self, request): + """创建数据库 - 批量停止正在运行的Flink作业。 + 该API用于新增数据库。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for StopFlinkJobs - :type request: :class:`huaweicloudsdkdli.v1.StopFlinkJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.StopFlinkJobsResponse` + :param request: Request instance for CreateDatabase + :type request: :class:`huaweicloudsdkdli.v1.CreateDatabaseRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateDatabaseResponse` """ - http_info = self._stop_flink_jobs_http_info(request) + warnings.warn("Method 'create_database' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_database_http_info(request) return self._call_api(**http_info) - def stop_flink_jobs_invoker(self, request): - http_info = self._stop_flink_jobs_http_info(request) + def create_database_invoker(self, request): + warnings.warn("Method 'create_database_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_database_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _stop_flink_jobs_http_info(cls, request): + def _create_database_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/streaming/jobs/stop", + "resource_path": "/v1.0/{project_id}/databases", "request_type": request.__class__.__name__, - "response_type": "StopFlinkJobsResponse" + "response_type": "CreateDatabaseResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6776,31 +6778,33 @@ def _stop_flink_jobs_http_info(cls, request): return http_info - def update_flink_jar_job(self, request): - """更新Flink Jar作业 + def create_sql_job(self, request): + """提交SQL作业 - 更新用户自定义作业,目前支持jar格式,运行在独享集群中。 + 该API用于通过执行SQL语句的方式向队列提交作业。 + + 作业包含以下类型:DDL、DCL、IMPORT、QUERY和INSERT。其中,IMPORT与导入数据的功能一致,区别仅在于实现方式不同。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateFlinkJarJob - :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkJarJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkJarJobResponse` + :param request: Request instance for CreateSqlJob + :type request: :class:`huaweicloudsdkdli.v1.CreateSqlJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateSqlJobResponse` """ - http_info = self._update_flink_jar_job_http_info(request) + http_info = self._create_sql_job_http_info(request) return self._call_api(**http_info) - def update_flink_jar_job_invoker(self, request): - http_info = self._update_flink_jar_job_http_info(request) + def create_sql_job_invoker(self, request): + http_info = self._create_sql_job_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_flink_jar_job_http_info(cls, request): + def _create_sql_job_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/streaming/flink-jobs/{job_id}", + "method": "POST", + "resource_path": "/v1.0/{project_id}/jobs/submit-job", "request_type": request.__class__.__name__, - "response_type": "UpdateFlinkJarJobResponse" + "response_type": "CreateSqlJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6810,8 +6814,6 @@ def _update_flink_jar_job_http_info(cls, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6843,31 +6845,31 @@ def _update_flink_jar_job_http_info(cls, request): return http_info - def update_flink_sql_job(self, request): - """更新Flink SQL作业 + def create_sql_job_template(self, request): + """存储指定SQL语句 - Stream SQL的语法扩展了Apache Flink SQL。 + 该API用于存储指定的SQL语句,后续可以重复使用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateFlinkSqlJob - :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobResponse` + :param request: Request instance for CreateSqlJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.CreateSqlJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateSqlJobTemplateResponse` """ - http_info = self._update_flink_sql_job_http_info(request) + http_info = self._create_sql_job_template_http_info(request) return self._call_api(**http_info) - def update_flink_sql_job_invoker(self, request): - http_info = self._update_flink_sql_job_http_info(request) + def create_sql_job_template_invoker(self, request): + http_info = self._create_sql_job_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_flink_sql_job_http_info(cls, request): + def _create_sql_job_template_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/streaming/sql-jobs/{job_id}", + "method": "POST", + "resource_path": "/v1.0/{project_id}/sqls", "request_type": request.__class__.__name__, - "response_type": "UpdateFlinkSqlJobResponse" + "response_type": "CreateSqlJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6877,8 +6879,6 @@ def _update_flink_sql_job_http_info(cls, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -6910,31 +6910,33 @@ def _update_flink_sql_job_http_info(cls, request): return http_info - def update_flink_sql_job_template(self, request): - """更新Flink作业模板 + def create_table(self, request): + """创建表 - 对DLI服务中已有的Flink作业模板进行更新。 + 该API用于创建新的表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateFlinkSqlJobTemplate - :type request: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobTemplateRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateFlinkSqlJobTemplateResponse` + :param request: Request instance for CreateTable + :type request: :class:`huaweicloudsdkdli.v1.CreateTableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateTableResponse` """ - http_info = self._update_flink_sql_job_template_http_info(request) + warnings.warn("Method 'create_table' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_table_http_info(request) return self._call_api(**http_info) - def update_flink_sql_job_template_invoker(self, request): - http_info = self._update_flink_sql_job_template_http_info(request) + def create_table_invoker(self, request): + warnings.warn("Method 'create_table_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._create_table_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_flink_sql_job_template_http_info(cls, request): + def _create_table_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/streaming/job-templates/{template_id}", + "method": "POST", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables", "request_type": request.__class__.__name__, - "response_type": "UpdateFlinkSqlJobTemplateResponse" + "response_type": "CreateTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -6944,8 +6946,8 @@ def _update_flink_sql_job_template_http_info(cls, request): collection_formats = {} path_params = {} - if 'template_id' in local_var_params: - path_params['template_id'] = local_var_params['template_id'] + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] query_params = [] @@ -6977,31 +6979,33 @@ def _update_flink_sql_job_template_http_info(cls, request): return http_info - def cancel_sql_job(self, request): - """取消作业 + def delete_database(self, request): + """删除数据库 - 该API用于取消已经提交的作业,若作业已经执行结束或失败则无法取消。 + 该API用于删除空数据库,若待删除的数据库中存在表,则需先删除其中的所有表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CancelSqlJob - :type request: :class:`huaweicloudsdkdli.v1.CancelSqlJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CancelSqlJobResponse` + :param request: Request instance for DeleteDatabase + :type request: :class:`huaweicloudsdkdli.v1.DeleteDatabaseRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteDatabaseResponse` """ - http_info = self._cancel_sql_job_http_info(request) + warnings.warn("Method 'delete_database' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_database_http_info(request) return self._call_api(**http_info) - def cancel_sql_job_invoker(self, request): - http_info = self._cancel_sql_job_http_info(request) + def delete_database_invoker(self, request): + warnings.warn("Method 'delete_database_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_database_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _cancel_sql_job_http_info(cls, request): + def _delete_database_http_info(cls, request): http_info = { "method": "DELETE", - "resource_path": "/v1.0/{project_id}/jobs/{job_id}", + "resource_path": "/v1.0/{project_id}/databases/{database_name}", "request_type": request.__class__.__name__, - "response_type": "CancelSqlJobResponse" + "response_type": "DeleteDatabaseResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7011,10 +7015,14 @@ def _cancel_sql_job_http_info(cls, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] query_params = [] + if '_async' in local_var_params: + query_params.append(('async', local_var_params['_async'])) + if 'cascade' in local_var_params: + query_params.append(('cascade', local_var_params['cascade'])) header_params = {} @@ -7042,31 +7050,33 @@ def _cancel_sql_job_http_info(cls, request): return http_info - def check_sql(self, request): - """检查SQL语法 + def delete_table(self, request): + """删除表 - 该API用于检查SQL语法。 + 该API用于删除指定的表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CheckSql - :type request: :class:`huaweicloudsdkdli.v1.CheckSqlRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CheckSqlResponse` + :param request: Request instance for DeleteTable + :type request: :class:`huaweicloudsdkdli.v1.DeleteTableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.DeleteTableResponse` """ - http_info = self._check_sql_http_info(request) + warnings.warn("Method 'delete_table' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_table_http_info(request) return self._call_api(**http_info) - def check_sql_invoker(self, request): - http_info = self._check_sql_http_info(request) + def delete_table_invoker(self, request): + warnings.warn("Method 'delete_table_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._delete_table_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _check_sql_http_info(cls, request): + def _delete_table_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/jobs/check-sql", + "method": "DELETE", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}", "request_type": request.__class__.__name__, - "response_type": "CheckSqlResponse" + "response_type": "DeleteTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7076,16 +7086,20 @@ def _check_sql_http_info(cls, request): collection_formats = {} path_params = {} + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] query_params = [] + if '_async' in local_var_params: + query_params.append(('async', local_var_params['_async'])) 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() @@ -7107,33 +7121,33 @@ def _check_sql_http_info(cls, request): return http_info - def create_database(self, request): - """创建数据库 + def export_sql_job_result(self, request): + """导出查询结果 - 该API用于新增数据库。 + 该API用于将SQL语句的查询结果导出到OBS对象存储中,只支持导出“QUERY”类型作业的查询结果。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateDatabase - :type request: :class:`huaweicloudsdkdli.v1.CreateDatabaseRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateDatabaseResponse` + :param request: Request instance for ExportSqlJobResult + :type request: :class:`huaweicloudsdkdli.v1.ExportSqlJobResultRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ExportSqlJobResultResponse` """ - warnings.warn("Method 'create_database' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_database_http_info(request) + warnings.warn("Method 'export_sql_job_result' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._export_sql_job_result_http_info(request) return self._call_api(**http_info) - def create_database_invoker(self, request): - warnings.warn("Method 'create_database_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_database_http_info(request) + def export_sql_job_result_invoker(self, request): + warnings.warn("Method 'export_sql_job_result_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._export_sql_job_result_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_database_http_info(cls, request): + def _export_sql_job_result_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/databases", + "resource_path": "/v1.0/{project_id}/jobs/{job_id}/export-result", "request_type": request.__class__.__name__, - "response_type": "CreateDatabaseResponse" + "response_type": "ExportSqlJobResultResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7143,6 +7157,8 @@ def _create_database_http_info(cls, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -7174,33 +7190,33 @@ def _create_database_http_info(cls, request): return http_info - def create_sql_job(self, request): - """提交SQL作业 + def export_table(self, request): + """导出查询结果 - 该API用于通过执行SQL语句的方式向队列提交作业。 - - 作业包含以下类型:DDL、DCL、IMPORT、QUERY和INSERT。其中,IMPORT与导入数据的功能一致,区别仅在于实现方式不同。 + 该API用于将SQL语句的查询结果导出到OBS对象存储中,只支持导出“QUERY”类型作业的查询结果。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateSqlJob - :type request: :class:`huaweicloudsdkdli.v1.CreateSqlJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateSqlJobResponse` + :param request: Request instance for ExportTable + :type request: :class:`huaweicloudsdkdli.v1.ExportTableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ExportTableResponse` """ - http_info = self._create_sql_job_http_info(request) + warnings.warn("Method 'export_table' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._export_table_http_info(request) return self._call_api(**http_info) - def create_sql_job_invoker(self, request): - http_info = self._create_sql_job_http_info(request) + def export_table_invoker(self, request): + warnings.warn("Method 'export_table_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._export_table_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_sql_job_http_info(cls, request): + def _export_table_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/jobs/submit-job", + "resource_path": "/v1.0/{project_id}/jobs/export-table", "request_type": request.__class__.__name__, - "response_type": "CreateSqlJobResponse" + "response_type": "ExportTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7241,33 +7257,33 @@ def _create_sql_job_http_info(cls, request): return http_info - def create_table(self, request): - """创建表 + def import_table(self, request): + """导入数据 - 该API用于创建新的表。 + 该API用于将数据从文件导入DLI或OBS表,目前仅支持将OBS上的数据导入DLI或OBS中。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateTable - :type request: :class:`huaweicloudsdkdli.v1.CreateTableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateTableResponse` + :param request: Request instance for ImportTable + :type request: :class:`huaweicloudsdkdli.v1.ImportTableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ImportTableResponse` """ - warnings.warn("Method 'create_table' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_table_http_info(request) + warnings.warn("Method 'import_table' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._import_table_http_info(request) return self._call_api(**http_info) - def create_table_invoker(self, request): - warnings.warn("Method 'create_table_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._create_table_http_info(request) + def import_table_invoker(self, request): + warnings.warn("Method 'import_table_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._import_table_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_table_http_info(cls, request): + def _import_table_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables", + "resource_path": "/v1.0/{project_id}/jobs/import-table", "request_type": request.__class__.__name__, - "response_type": "CreateTableResponse" + "response_type": "ImportTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7277,8 +7293,6 @@ def _create_table_http_info(cls, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] query_params = [] @@ -7310,33 +7324,33 @@ def _create_table_http_info(cls, request): return http_info - def delete_database(self, request): - """删除数据库 + def list_all_tables(self, request): + """查询所有表 - 该API用于删除空数据库,若待删除的数据库中存在表,则需先删除其中的所有表。 + 该API用于查询指定数据库下符合过滤条件的或所有的表信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteDatabase - :type request: :class:`huaweicloudsdkdli.v1.DeleteDatabaseRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteDatabaseResponse` + :param request: Request instance for ListAllTables + :type request: :class:`huaweicloudsdkdli.v1.ListAllTablesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListAllTablesResponse` """ - warnings.warn("Method 'delete_database' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_database_http_info(request) + warnings.warn("Method 'list_all_tables' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_all_tables_http_info(request) return self._call_api(**http_info) - def delete_database_invoker(self, request): - warnings.warn("Method 'delete_database_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_database_http_info(request) + def list_all_tables_invoker(self, request): + warnings.warn("Method 'list_all_tables_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_all_tables_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_database_http_info(cls, request): + def _list_all_tables_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/databases/{database_name}", + "method": "GET", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables", "request_type": request.__class__.__name__, - "response_type": "DeleteDatabaseResponse" + "response_type": "ListAllTablesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7350,10 +7364,18 @@ def _delete_database_http_info(cls, request): path_params['database_name'] = local_var_params['database_name'] query_params = [] - if '_async' in local_var_params: - query_params.append(('async', local_var_params['_async'])) - if 'cascade' in local_var_params: - query_params.append(('cascade', local_var_params['cascade'])) + if 'current_page' in local_var_params: + query_params.append(('current-page', local_var_params['current_page'])) + if 'keyword' in local_var_params: + query_params.append(('keyword', local_var_params['keyword'])) + if 'page_size' in local_var_params: + query_params.append(('page-size', local_var_params['page_size'])) + if 'table_type' in local_var_params: + query_params.append(('table-type', local_var_params['table_type'])) + if 'with_detail' in local_var_params: + query_params.append(('with-detail', local_var_params['with_detail'])) + if 'with_priv' in local_var_params: + query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -7381,33 +7403,33 @@ def _delete_database_http_info(cls, request): return http_info - def delete_table(self, request): - """删除表 + def list_databases(self, request): + """查询所有数据库 - 该API用于删除指定的表。 + 该API用于查询出所有的数据库信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteTable - :type request: :class:`huaweicloudsdkdli.v1.DeleteTableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.DeleteTableResponse` + :param request: Request instance for ListDatabases + :type request: :class:`huaweicloudsdkdli.v1.ListDatabasesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListDatabasesResponse` """ - warnings.warn("Method 'delete_table' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_table_http_info(request) + warnings.warn("Method 'list_databases' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_databases_http_info(request) return self._call_api(**http_info) - def delete_table_invoker(self, request): - warnings.warn("Method 'delete_table_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._delete_table_http_info(request) + def list_databases_invoker(self, request): + warnings.warn("Method 'list_databases_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._list_databases_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_table_http_info(cls, request): + def _list_databases_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}", + "method": "GET", + "resource_path": "/v1.0/{project_id}/databases", "request_type": request.__class__.__name__, - "response_type": "DeleteTableResponse" + "response_type": "ListDatabasesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7417,14 +7439,18 @@ def _delete_table_http_info(cls, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] query_params = [] - if '_async' in local_var_params: - query_params.append(('async', local_var_params['_async'])) + if 'keyword' in local_var_params: + query_params.append(('keyword', local_var_params['keyword'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'with_priv' in local_var_params: + query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -7452,33 +7478,31 @@ def _delete_table_http_info(cls, request): return http_info - def export_sql_job_result(self, request): - """导出查询结果 + def list_sql_job_templates(self, request): + """查看所有SQL模板 - 该API用于将SQL语句的查询结果导出到OBS对象存储中,只支持导出“QUERY”类型作业的查询结果。 + 该API用查看用户保存的所有SQL模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ExportSqlJobResult - :type request: :class:`huaweicloudsdkdli.v1.ExportSqlJobResultRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ExportSqlJobResultResponse` + :param request: Request instance for ListSqlJobTemplates + :type request: :class:`huaweicloudsdkdli.v1.ListSqlJobTemplatesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListSqlJobTemplatesResponse` """ - warnings.warn("Method 'export_sql_job_result' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._export_sql_job_result_http_info(request) + http_info = self._list_sql_job_templates_http_info(request) return self._call_api(**http_info) - def export_sql_job_result_invoker(self, request): - warnings.warn("Method 'export_sql_job_result_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._export_sql_job_result_http_info(request) + def list_sql_job_templates_invoker(self, request): + http_info = self._list_sql_job_templates_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _export_sql_job_result_http_info(cls, request): + def _list_sql_job_templates_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/jobs/{job_id}/export-result", + "method": "GET", + "resource_path": "/v1.0/{project_id}/sqls", "request_type": request.__class__.__name__, - "response_type": "ExportSqlJobResultResponse" + "response_type": "ListSqlJobTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7488,18 +7512,16 @@ def _export_sql_job_result_http_info(cls, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] query_params = [] + if 'keyword' in local_var_params: + query_params.append(('keyword', local_var_params['keyword'])) 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() @@ -7521,33 +7543,31 @@ def _export_sql_job_result_http_info(cls, request): return http_info - def export_table(self, request): - """导出查询结果 + def list_sql_jobs(self, request): + """查询所有作业 - 该API用于将SQL语句的查询结果导出到OBS对象存储中,只支持导出“QUERY”类型作业的查询结果。 + 该API用于查询当前工程下面的所有作业的信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ExportTable - :type request: :class:`huaweicloudsdkdli.v1.ExportTableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ExportTableResponse` + :param request: Request instance for ListSqlJobs + :type request: :class:`huaweicloudsdkdli.v1.ListSqlJobsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListSqlJobsResponse` """ - warnings.warn("Method 'export_table' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._export_table_http_info(request) + http_info = self._list_sql_jobs_http_info(request) return self._call_api(**http_info) - def export_table_invoker(self, request): - warnings.warn("Method 'export_table_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._export_table_http_info(request) + def list_sql_jobs_invoker(self, request): + http_info = self._list_sql_jobs_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _export_table_http_info(cls, request): + def _list_sql_jobs_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/jobs/export-table", + "method": "GET", + "resource_path": "/v1.0/{project_id}/jobs", "request_type": request.__class__.__name__, - "response_type": "ExportTableResponse" + "response_type": "ListSqlJobsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7559,14 +7579,40 @@ def _export_table_http_info(cls, request): path_params = {} query_params = [] + if 'current_page' in local_var_params: + query_params.append(('current-page', local_var_params['current_page'])) + if 'db_name' in local_var_params: + query_params.append(('db_name', local_var_params['db_name'])) + if 'end' in local_var_params: + query_params.append(('end', local_var_params['end'])) + if 'engine_type' in local_var_params: + query_params.append(('engine-type', local_var_params['engine_type'])) + if 'job_status' in local_var_params: + query_params.append(('job-status', local_var_params['job_status'])) + if 'job_type' in local_var_params: + query_params.append(('job-type', local_var_params['job_type'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + if 'owner' in local_var_params: + query_params.append(('owner', local_var_params['owner'])) + if 'page_size' in local_var_params: + query_params.append(('page-size', local_var_params['page_size'])) + if 'queue_name' in local_var_params: + query_params.append(('queue_name', local_var_params['queue_name'])) + if 'sql_pattern' in local_var_params: + query_params.append(('sql_pattern', local_var_params['sql_pattern'])) + if 'start' in local_var_params: + query_params.append(('start', local_var_params['start'])) + if 'table_name' in local_var_params: + query_params.append(('table_name', local_var_params['table_name'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) 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() @@ -7588,33 +7634,32 @@ def _export_table_http_info(cls, request): return http_info - def import_table(self, request): - """导入数据 + def preview_sql_job_result(self, request): + """预览SQL作业查询结果 - 该API用于将数据从文件导入DLI或OBS表,目前仅支持将OBS上的数据导入DLI或OBS中。 + 该API用于在执行SQL查询语句的作业完成后,查看该作业执行的结果。目前仅支持查看“QUERY”类型作业的执行结果。 + 该API只能查看前1000条的结果记录,若要查看全部的结果记录,需要先导出查询结果再进行查看。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ImportTable - :type request: :class:`huaweicloudsdkdli.v1.ImportTableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ImportTableResponse` + :param request: Request instance for PreviewSqlJobResult + :type request: :class:`huaweicloudsdkdli.v1.PreviewSqlJobResultRequest` + :rtype: :class:`huaweicloudsdkdli.v1.PreviewSqlJobResultResponse` """ - warnings.warn("Method 'import_table' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._import_table_http_info(request) + http_info = self._preview_sql_job_result_http_info(request) return self._call_api(**http_info) - def import_table_invoker(self, request): - warnings.warn("Method 'import_table_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._import_table_http_info(request) + def preview_sql_job_result_invoker(self, request): + http_info = self._preview_sql_job_result_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _import_table_http_info(cls, request): + def _preview_sql_job_result_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1.0/{project_id}/jobs/import-table", + "method": "GET", + "resource_path": "/v1.0/{project_id}/jobs/{job_id}/preview", "request_type": request.__class__.__name__, - "response_type": "ImportTableResponse" + "response_type": "PreviewSqlJobResultResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7624,16 +7669,18 @@ def _import_table_http_info(cls, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] + if 'queue_name' in local_var_params: + query_params.append(('queue-name', local_var_params['queue_name'])) 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() @@ -7655,33 +7702,33 @@ def _import_table_http_info(cls, request): return http_info - def list_all_tables(self, request): - """查询所有表 + def show_describe_table(self, request): + """描述表信息 - 该API用于查询指定数据库下符合过滤条件的或所有的表信息。 + 该API用于描述指定表的元数据信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAllTables - :type request: :class:`huaweicloudsdkdli.v1.ListAllTablesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListAllTablesResponse` + :param request: Request instance for ShowDescribeTable + :type request: :class:`huaweicloudsdkdli.v1.ShowDescribeTableRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowDescribeTableResponse` """ - warnings.warn("Method 'list_all_tables' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_all_tables_http_info(request) + warnings.warn("Method 'show_describe_table' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_describe_table_http_info(request) return self._call_api(**http_info) - def list_all_tables_invoker(self, request): - warnings.warn("Method 'list_all_tables_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_all_tables_http_info(request) + def show_describe_table_invoker(self, request): + warnings.warn("Method 'show_describe_table_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_describe_table_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_all_tables_http_info(cls, request): + def _show_describe_table_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}", "request_type": request.__class__.__name__, - "response_type": "ListAllTablesResponse" + "response_type": "ShowDescribeTableResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7693,20 +7740,10 @@ def _list_all_tables_http_info(cls, request): path_params = {} if 'database_name' in local_var_params: path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] query_params = [] - if 'current_page' in local_var_params: - query_params.append(('current-page', local_var_params['current_page'])) - if 'keyword' in local_var_params: - query_params.append(('keyword', local_var_params['keyword'])) - if 'page_size' in local_var_params: - query_params.append(('page-size', local_var_params['page_size'])) - if 'table_type' in local_var_params: - query_params.append(('table-type', local_var_params['table_type'])) - if 'with_detail' in local_var_params: - query_params.append(('with-detail', local_var_params['with_detail'])) - if 'with_priv' in local_var_params: - query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -7734,33 +7771,32 @@ def _list_all_tables_http_info(cls, request): return http_info - def list_databases(self, request): - """查询所有数据库 + def show_partitions(self, request): + """获取分区信息列表 - 该API用于查询出所有的数据库信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDatabases - :type request: :class:`huaweicloudsdkdli.v1.ListDatabasesRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListDatabasesResponse` + :param request: Request instance for ShowPartitions + :type request: :class:`huaweicloudsdkdli.v1.ShowPartitionsRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowPartitionsResponse` """ - warnings.warn("Method 'list_databases' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_databases_http_info(request) + warnings.warn("Method 'show_partitions' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_partitions_http_info(request) return self._call_api(**http_info) - def list_databases_invoker(self, request): - warnings.warn("Method 'list_databases_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._list_databases_http_info(request) + def show_partitions_invoker(self, request): + warnings.warn("Method 'show_partitions_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_partitions_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_databases_http_info(cls, request): + def _show_partitions_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/partitions", "request_type": request.__class__.__name__, - "response_type": "ListDatabasesResponse" + "response_type": "ShowPartitionsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7770,18 +7806,16 @@ def _list_databases_http_info(cls, request): collection_formats = {} path_params = {} + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] query_params = [] - if 'keyword' in local_var_params: - query_params.append(('keyword', local_var_params['keyword'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) if 'offset' in local_var_params: query_params.append(('offset', local_var_params['offset'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) - if 'with_priv' in local_var_params: - query_params.append(('with-priv', local_var_params['with_priv'])) header_params = {} @@ -7809,70 +7843,44 @@ def _list_databases_http_info(cls, request): return http_info - def list_sql_jobs(self, request): - """查询所有作业 + def show_sql_job_detail(self, request): + """查询作业详细信息 - 该API用于查询当前工程下面的所有作业的信息。 + 该API用于查询作业的详细信息,如作业的databasename、tablename、file size和export mode等信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListSqlJobs - :type request: :class:`huaweicloudsdkdli.v1.ListSqlJobsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ListSqlJobsResponse` + :param request: Request instance for ShowSqlJobDetail + :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobDetailRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobDetailResponse` """ - http_info = self._list_sql_jobs_http_info(request) + http_info = self._show_sql_job_detail_http_info(request) return self._call_api(**http_info) - def list_sql_jobs_invoker(self, request): - http_info = self._list_sql_jobs_http_info(request) + def show_sql_job_detail_invoker(self, request): + http_info = self._show_sql_job_detail_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_sql_jobs_http_info(cls, request): + def _show_sql_job_detail_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/jobs", - "request_type": request.__class__.__name__, - "response_type": "ListSqlJobsResponse" - } - - 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 'current_page' in local_var_params: - query_params.append(('current-page', local_var_params['current_page'])) - if 'db_name' in local_var_params: - query_params.append(('db_name', local_var_params['db_name'])) - if 'end' in local_var_params: - query_params.append(('end', local_var_params['end'])) - if 'engine_type' in local_var_params: - query_params.append(('engine-type', local_var_params['engine_type'])) - if 'job_status' in local_var_params: - query_params.append(('job-status', local_var_params['job_status'])) - if 'job_type' in local_var_params: - query_params.append(('job-type', local_var_params['job_type'])) - if 'order' in local_var_params: - query_params.append(('order', local_var_params['order'])) - if 'owner' in local_var_params: - query_params.append(('owner', local_var_params['owner'])) - if 'page_size' in local_var_params: - query_params.append(('page-size', local_var_params['page_size'])) - if 'queue_name' in local_var_params: - query_params.append(('queue_name', local_var_params['queue_name'])) - if 'sql_pattern' in local_var_params: - query_params.append(('sql_pattern', local_var_params['sql_pattern'])) - if 'start' in local_var_params: - query_params.append(('start', local_var_params['start'])) - if 'table_name' in local_var_params: - query_params.append(('table_name', local_var_params['table_name'])) - if 'tags' in local_var_params: - query_params.append(('tags', local_var_params['tags'])) + "resource_path": "/v1.0/{project_id}/jobs/{job_id}/detail", + "request_type": request.__class__.__name__, + "response_type": "ShowSqlJobDetailResponse" + } + + 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 = {} @@ -7900,32 +7908,31 @@ def _list_sql_jobs_http_info(cls, request): return http_info - def preview_sql_job_result(self, request): - """预览SQL作业查询结果 + def show_sql_job_progress(self, request): + """查询作业执行进度信息 - 该API用于在执行SQL查询语句的作业完成后,查看该作业执行的结果。目前仅支持查看“QUERY”类型作业的执行结果。 - 该API只能查看前1000条的结果记录,若要查看全部的结果记录,需要先导出查询结果再进行查看。 + 该API用于获取作业执行进度信息,如果作业正在执行,可以获取到子作业的信息,如果作业刚开始或者已经结束,不可以获取到子作业信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for PreviewSqlJobResult - :type request: :class:`huaweicloudsdkdli.v1.PreviewSqlJobResultRequest` - :rtype: :class:`huaweicloudsdkdli.v1.PreviewSqlJobResultResponse` + :param request: Request instance for ShowSqlJobProgress + :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobProgressRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobProgressResponse` """ - http_info = self._preview_sql_job_result_http_info(request) + http_info = self._show_sql_job_progress_http_info(request) return self._call_api(**http_info) - def preview_sql_job_result_invoker(self, request): - http_info = self._preview_sql_job_result_http_info(request) + def show_sql_job_progress_invoker(self, request): + http_info = self._show_sql_job_progress_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _preview_sql_job_result_http_info(cls, request): + def _show_sql_job_progress_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/jobs/{job_id}/preview", + "resource_path": "/v1/{project_id}/jobs/{job_id}/progress", "request_type": request.__class__.__name__, - "response_type": "PreviewSqlJobResultResponse" + "response_type": "ShowSqlJobProgressResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -7939,8 +7946,6 @@ def _preview_sql_job_result_http_info(cls, request): path_params['job_id'] = local_var_params['job_id'] query_params = [] - if 'queue_name' in local_var_params: - query_params.append(('queue-name', local_var_params['queue_name'])) header_params = {} @@ -7968,33 +7973,31 @@ def _preview_sql_job_result_http_info(cls, request): return http_info - def show_describe_table(self, request): - """描述表信息 + def show_sql_job_status(self, request): + """查询作业状态 - 该API用于描述指定表的元数据信息。 + 该API用于在作业提交后查询作业状态。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDescribeTable - :type request: :class:`huaweicloudsdkdli.v1.ShowDescribeTableRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowDescribeTableResponse` + :param request: Request instance for ShowSqlJobStatus + :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobStatusRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobStatusResponse` """ - warnings.warn("Method 'show_describe_table' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_describe_table_http_info(request) + http_info = self._show_sql_job_status_http_info(request) return self._call_api(**http_info) - def show_describe_table_invoker(self, request): - warnings.warn("Method 'show_describe_table_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_describe_table_http_info(request) + def show_sql_job_status_invoker(self, request): + http_info = self._show_sql_job_status_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_describe_table_http_info(cls, request): + def _show_sql_job_status_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}", + "resource_path": "/v1.0/{project_id}/jobs/{job_id}/status", "request_type": request.__class__.__name__, - "response_type": "ShowDescribeTableResponse" + "response_type": "ShowSqlJobStatusResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8004,10 +8007,8 @@ def _show_describe_table_http_info(cls, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -8037,32 +8038,33 @@ def _show_describe_table_http_info(cls, request): return http_info - def show_partitions(self, request): - """获取分区信息列表 + def show_sql_sample_templates(self, request): + """查询所有SQL样例模板 + 该API用于查询所有SQL样例模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowPartitions - :type request: :class:`huaweicloudsdkdli.v1.ShowPartitionsRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowPartitionsResponse` + :param request: Request instance for ShowSqlSampleTemplates + :type request: :class:`huaweicloudsdkdli.v1.ShowSqlSampleTemplatesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlSampleTemplatesResponse` """ - warnings.warn("Method 'show_partitions' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_partitions_http_info(request) + warnings.warn("Method 'show_sql_sample_templates' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_sql_sample_templates_http_info(request) return self._call_api(**http_info) - def show_partitions_invoker(self, request): - warnings.warn("Method 'show_partitions_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_partitions_http_info(request) + def show_sql_sample_templates_invoker(self, request): + warnings.warn("Method 'show_sql_sample_templates_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_sql_sample_templates_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_partitions_http_info(cls, request): + def _show_sql_sample_templates_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/partitions", + "resource_path": "/v1.0/{project_id}/sqls/sample", "request_type": request.__class__.__name__, - "response_type": "ShowPartitionsResponse" + "response_type": "ShowSqlSampleTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8072,16 +8074,8 @@ def _show_partitions_http_info(cls, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} @@ -8109,31 +8103,33 @@ def _show_partitions_http_info(cls, request): return http_info - def show_sql_job_detail(self, request): - """查询作业详细信息 + def show_table_content(self, request): + """预览表内容 - 该API用于查询作业的详细信息,如作业的databasename、tablename、file size和export mode等信息。 + 该API用于用于预览表中前10行的内容。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowSqlJobDetail - :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobDetailRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobDetailResponse` + :param request: Request instance for ShowTableContent + :type request: :class:`huaweicloudsdkdli.v1.ShowTableContentRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowTableContentResponse` """ - http_info = self._show_sql_job_detail_http_info(request) + warnings.warn("Method 'show_table_content' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_table_content_http_info(request) return self._call_api(**http_info) - def show_sql_job_detail_invoker(self, request): - http_info = self._show_sql_job_detail_http_info(request) + def show_table_content_invoker(self, request): + warnings.warn("Method 'show_table_content_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._show_table_content_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_sql_job_detail_http_info(cls, request): + def _show_table_content_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/jobs/{job_id}/detail", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/preview", "request_type": request.__class__.__name__, - "response_type": "ShowSqlJobDetailResponse" + "response_type": "ShowTableContentResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8143,10 +8139,14 @@ def _show_sql_job_detail_http_info(cls, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] + if 'table_name' in local_var_params: + path_params['table_name'] = local_var_params['table_name'] query_params = [] + if 'mode' in local_var_params: + query_params.append(('mode', local_var_params['mode'])) header_params = {} @@ -8174,31 +8174,33 @@ def _show_sql_job_detail_http_info(cls, request): return http_info - def show_sql_job_progress(self, request): - """查询作业执行进度信息 + def update_database_owner(self, request): + """修改数据库用户 - 该API用于获取作业执行进度信息,如果作业正在执行,可以获取到子作业的信息,如果作业刚开始或者已经结束,不可以获取到子作业信息。 + 用于修改数据库的owner。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowSqlJobProgress - :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobProgressRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobProgressResponse` + :param request: Request instance for UpdateDatabaseOwner + :type request: :class:`huaweicloudsdkdli.v1.UpdateDatabaseOwnerRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateDatabaseOwnerResponse` """ - http_info = self._show_sql_job_progress_http_info(request) + warnings.warn("Method 'update_database_owner' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_database_owner_http_info(request) return self._call_api(**http_info) - def show_sql_job_progress_invoker(self, request): - http_info = self._show_sql_job_progress_http_info(request) + def update_database_owner_invoker(self, request): + warnings.warn("Method 'update_database_owner_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_database_owner_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_sql_job_progress_http_info(cls, request): + def _update_database_owner_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/jobs/{job_id}/progress", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/owner", "request_type": request.__class__.__name__, - "response_type": "ShowSqlJobProgressResponse" + "response_type": "UpdateDatabaseOwnerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8208,8 +8210,8 @@ def _show_sql_job_progress_http_info(cls, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] + if 'database_name' in local_var_params: + path_params['database_name'] = local_var_params['database_name'] query_params = [] @@ -8218,6 +8220,8 @@ def _show_sql_job_progress_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -8239,31 +8243,31 @@ def _show_sql_job_progress_http_info(cls, request): return http_info - def show_sql_job_status(self, request): - """查询作业状态 + def update_sql_job_template(self, request): + """更新SQL模板 - 该API用于在作业提交后查询作业状态。 + 该API用于更新SQL模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowSqlJobStatus - :type request: :class:`huaweicloudsdkdli.v1.ShowSqlJobStatusRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowSqlJobStatusResponse` + :param request: Request instance for UpdateSqlJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.UpdateSqlJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateSqlJobTemplateResponse` """ - http_info = self._show_sql_job_status_http_info(request) + http_info = self._update_sql_job_template_http_info(request) return self._call_api(**http_info) - def show_sql_job_status_invoker(self, request): - http_info = self._show_sql_job_status_http_info(request) + def update_sql_job_template_invoker(self, request): + http_info = self._update_sql_job_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_sql_job_status_http_info(cls, request): + def _update_sql_job_template_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/jobs/{job_id}/status", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/sqls/{sql_id}", "request_type": request.__class__.__name__, - "response_type": "ShowSqlJobStatusResponse" + "response_type": "UpdateSqlJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8273,8 +8277,8 @@ def _show_sql_job_status_http_info(cls, request): collection_formats = {} path_params = {} - if 'job_id' in local_var_params: - path_params['job_id'] = local_var_params['job_id'] + if 'sql_id' in local_var_params: + path_params['sql_id'] = local_var_params['sql_id'] query_params = [] @@ -8283,6 +8287,8 @@ def _show_sql_job_status_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -8304,33 +8310,33 @@ def _show_sql_job_status_http_info(cls, request): return http_info - def show_table_content(self, request): - """预览表内容 + def update_table_owner(self, request): + """修改表用户 - 该API用于用于预览表中前10行的内容。 + 用于修改表的owner。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowTableContent - :type request: :class:`huaweicloudsdkdli.v1.ShowTableContentRequest` - :rtype: :class:`huaweicloudsdkdli.v1.ShowTableContentResponse` + :param request: Request instance for UpdateTableOwner + :type request: :class:`huaweicloudsdkdli.v1.UpdateTableOwnerRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateTableOwnerResponse` """ - warnings.warn("Method 'show_table_content' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_table_content_http_info(request) + warnings.warn("Method 'update_table_owner' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_table_owner_http_info(request) return self._call_api(**http_info) - def show_table_content_invoker(self, request): - warnings.warn("Method 'show_table_content_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._show_table_content_http_info(request) + def update_table_owner_invoker(self, request): + warnings.warn("Method 'update_table_owner_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) + http_info = self._update_table_owner_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_table_content_http_info(cls, request): + def _update_table_owner_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/preview", + "method": "PUT", + "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/owner", "request_type": request.__class__.__name__, - "response_type": "ShowTableContentResponse" + "response_type": "UpdateTableOwnerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8346,14 +8352,14 @@ def _show_table_content_http_info(cls, request): path_params['table_name'] = local_var_params['table_name'] query_params = [] - if 'mode' in local_var_params: - query_params.append(('mode', local_var_params['mode'])) 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() @@ -8375,33 +8381,31 @@ def _show_table_content_http_info(cls, request): return http_info - def update_database_owner(self, request): - """修改数据库用户 + def cancel_spark_job(self, request): + """取消批处理作业 - 用于修改数据库的owner。 + 该API用于取消批处理作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDatabaseOwner - :type request: :class:`huaweicloudsdkdli.v1.UpdateDatabaseOwnerRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateDatabaseOwnerResponse` + :param request: Request instance for CancelSparkJob + :type request: :class:`huaweicloudsdkdli.v1.CancelSparkJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CancelSparkJobResponse` """ - warnings.warn("Method 'update_database_owner' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_database_owner_http_info(request) + http_info = self._cancel_spark_job_http_info(request) return self._call_api(**http_info) - def update_database_owner_invoker(self, request): - warnings.warn("Method 'update_database_owner_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_database_owner_http_info(request) + def cancel_spark_job_invoker(self, request): + http_info = self._cancel_spark_job_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_database_owner_http_info(cls, request): + def _cancel_spark_job_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/owner", + "method": "DELETE", + "resource_path": "/v2.0/{project_id}/batches/{batch_id}", "request_type": request.__class__.__name__, - "response_type": "UpdateDatabaseOwnerResponse" + "response_type": "CancelSparkJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8411,8 +8415,8 @@ def _update_database_owner_http_info(cls, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] + if 'batch_id' in local_var_params: + path_params['batch_id'] = local_var_params['batch_id'] query_params = [] @@ -8421,8 +8425,6 @@ def _update_database_owner_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -8444,33 +8446,31 @@ def _update_database_owner_http_info(cls, request): return http_info - def update_table_owner(self, request): - """修改表用户 + def create_spark_job(self, request): + """创建批处理作业 - 用于修改表的owner。 + 该API用于在某个队列上创建作业。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateTableOwner - :type request: :class:`huaweicloudsdkdli.v1.UpdateTableOwnerRequest` - :rtype: :class:`huaweicloudsdkdli.v1.UpdateTableOwnerResponse` + :param request: Request instance for CreateSparkJob + :type request: :class:`huaweicloudsdkdli.v1.CreateSparkJobRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateSparkJobResponse` """ - warnings.warn("Method 'update_table_owner' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_table_owner_http_info(request) + http_info = self._create_spark_job_http_info(request) return self._call_api(**http_info) - def update_table_owner_invoker(self, request): - warnings.warn("Method 'update_table_owner_invoker' of DliClient is deprecated and will be removed in the future versions", DeprecationWarning) - http_info = self._update_table_owner_http_info(request) + def create_spark_job_invoker(self, request): + http_info = self._create_spark_job_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_table_owner_http_info(cls, request): + def _create_spark_job_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v1.0/{project_id}/databases/{database_name}/tables/{table_name}/owner", + "method": "POST", + "resource_path": "/v2.0/{project_id}/batches", "request_type": request.__class__.__name__, - "response_type": "UpdateTableOwnerResponse" + "response_type": "CreateSparkJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8480,14 +8480,12 @@ def _update_table_owner_http_info(cls, request): collection_formats = {} path_params = {} - if 'database_name' in local_var_params: - path_params['database_name'] = local_var_params['database_name'] - if 'table_name' in local_var_params: - path_params['table_name'] = local_var_params['table_name'] query_params = [] header_params = {} + if 'user_id' in local_var_params: + header_params['USER-ID'] = local_var_params['user_id'] form_params = {} @@ -8515,31 +8513,31 @@ def _update_table_owner_http_info(cls, request): return http_info - def cancel_spark_job(self, request): - """取消批处理作业 + def create_spark_job_template(self, request): + """创建作业模板 - 该API用于取消批处理作业。 + 该API用于创建作业模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CancelSparkJob - :type request: :class:`huaweicloudsdkdli.v1.CancelSparkJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CancelSparkJobResponse` + :param request: Request instance for CreateSparkJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.CreateSparkJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.CreateSparkJobTemplateResponse` """ - http_info = self._cancel_spark_job_http_info(request) + http_info = self._create_spark_job_template_http_info(request) return self._call_api(**http_info) - def cancel_spark_job_invoker(self, request): - http_info = self._cancel_spark_job_http_info(request) + def create_spark_job_template_invoker(self, request): + http_info = self._create_spark_job_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _cancel_spark_job_http_info(cls, request): + def _create_spark_job_template_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v2.0/{project_id}/batches/{batch_id}", + "method": "POST", + "resource_path": "/v3/{project_id}/templates", "request_type": request.__class__.__name__, - "response_type": "CancelSparkJobResponse" + "response_type": "CreateSparkJobTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8549,8 +8547,6 @@ def _cancel_spark_job_http_info(cls, request): collection_formats = {} path_params = {} - if 'batch_id' in local_var_params: - path_params['batch_id'] = local_var_params['batch_id'] query_params = [] @@ -8559,6 +8555,8 @@ def _cancel_spark_job_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -8580,31 +8578,31 @@ def _cancel_spark_job_http_info(cls, request): return http_info - def create_spark_job(self, request): - """创建批处理作业 + def list_spark_job_templates(self, request): + """查询作业模板列表 - 该API用于在某个队列上创建作业。 + 该API用于查询作业模板列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateSparkJob - :type request: :class:`huaweicloudsdkdli.v1.CreateSparkJobRequest` - :rtype: :class:`huaweicloudsdkdli.v1.CreateSparkJobResponse` + :param request: Request instance for ListSparkJobTemplates + :type request: :class:`huaweicloudsdkdli.v1.ListSparkJobTemplatesRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ListSparkJobTemplatesResponse` """ - http_info = self._create_spark_job_http_info(request) + http_info = self._list_spark_job_templates_http_info(request) return self._call_api(**http_info) - def create_spark_job_invoker(self, request): - http_info = self._create_spark_job_http_info(request) + def list_spark_job_templates_invoker(self, request): + http_info = self._list_spark_job_templates_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_spark_job_http_info(cls, request): + def _list_spark_job_templates_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v2.0/{project_id}/batches", + "method": "GET", + "resource_path": "/v3/{project_id}/templates", "request_type": request.__class__.__name__, - "response_type": "CreateSparkJobResponse" + "response_type": "ListSparkJobTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -8616,16 +8614,20 @@ def _create_spark_job_http_info(cls, request): path_params = {} query_params = [] + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'keyword' in local_var_params: + query_params.append(('keyword', local_var_params['keyword'])) + if 'page_size' in local_var_params: + query_params.append(('page-size', local_var_params['page_size'])) + if 'current_page' in local_var_params: + query_params.append(('current-page', local_var_params['current_page'])) header_params = {} - if 'user_id' in local_var_params: - header_params['USER-ID'] = local_var_params['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() @@ -8935,6 +8937,138 @@ def _show_spark_job_status_http_info(cls, request): return http_info + def show_spark_job_template(self, request): + """获取作业模板 + + 该API用于获取作业模板。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowSparkJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.ShowSparkJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.ShowSparkJobTemplateResponse` + """ + http_info = self._show_spark_job_template_http_info(request) + return self._call_api(**http_info) + + def show_spark_job_template_invoker(self, request): + http_info = self._show_spark_job_template_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_spark_job_template_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/templates/{template_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowSparkJobTemplateResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_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 update_spark_job_template(self, request): + """修改作业模板 + + 该API用于修改作业模板。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateSparkJobTemplate + :type request: :class:`huaweicloudsdkdli.v1.UpdateSparkJobTemplateRequest` + :rtype: :class:`huaweicloudsdkdli.v1.UpdateSparkJobTemplateResponse` + """ + http_info = self._update_spark_job_template_http_info(request) + return self._call_api(**http_info) + + def update_spark_job_template_invoker(self, request): + http_info = self._update_spark_job_template_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_spark_job_template_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/{project_id}/templates/{template_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateSparkJobTemplateResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_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 _call_api(self, **kwargs): try: return self.do_http_request(**kwargs) diff --git a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/__init__.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/__init__.py index 7e153914d9..2bb86be804 100644 --- a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/__init__.py +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/__init__.py @@ -91,6 +91,9 @@ from huaweicloudsdkdli.v1.model.create_queue_request import CreateQueueRequest from huaweicloudsdkdli.v1.model.create_queue_response import CreateQueueResponse from huaweicloudsdkdli.v1.model.create_route_request_body import CreateRouteRequestBody +from huaweicloudsdkdli.v1.model.create_route_to_enhanced_connection_request import CreateRouteToEnhancedConnectionRequest +from huaweicloudsdkdli.v1.model.create_route_to_enhanced_connection_request_body import CreateRouteToEnhancedConnectionRequestBody +from huaweicloudsdkdli.v1.model.create_route_to_enhanced_connection_response import CreateRouteToEnhancedConnectionResponse from huaweicloudsdkdli.v1.model.create_session_req_group import CreateSessionReqGroup from huaweicloudsdkdli.v1.model.create_session_req_resource import CreateSessionReqResource from huaweicloudsdkdli.v1.model.create_spark_job_request import CreateSparkJobRequest @@ -137,6 +140,8 @@ from huaweicloudsdkdli.v1.model.delete_queue_response import DeleteQueueResponse from huaweicloudsdkdli.v1.model.delete_resource_request import DeleteResourceRequest from huaweicloudsdkdli.v1.model.delete_resource_response import DeleteResourceResponse +from huaweicloudsdkdli.v1.model.delete_route_from_enhanced_connection_request import DeleteRouteFromEnhancedConnectionRequest +from huaweicloudsdkdli.v1.model.delete_route_from_enhanced_connection_response import DeleteRouteFromEnhancedConnectionResponse from huaweicloudsdkdli.v1.model.delete_sql_templates_request_body import DeleteSqlTemplatesRequestBody from huaweicloudsdkdli.v1.model.delete_table_request import DeleteTableRequest from huaweicloudsdkdli.v1.model.delete_table_response import DeleteTableResponse diff --git a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/create_route_to_enhanced_connection_request.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/create_route_to_enhanced_connection_request.py new file mode 100644 index 0000000000..36760c8e31 --- /dev/null +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/create_route_to_enhanced_connection_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRouteToEnhancedConnectionRequest: + + """ + 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 = { + 'connection_id': 'str', + 'body': 'CreateRouteToEnhancedConnectionRequestBody' + } + + attribute_map = { + 'connection_id': 'connection_id', + 'body': 'body' + } + + def __init__(self, connection_id=None, body=None): + """CreateRouteToEnhancedConnectionRequest + + The model defined in huaweicloud sdk + + :param connection_id: 连接ID,用于标识跨源连接的UUID。 + :type connection_id: str + :param body: Body of the CreateRouteToEnhancedConnectionRequest + :type body: :class:`huaweicloudsdkdli.v1.CreateRouteToEnhancedConnectionRequestBody` + """ + + + + self._connection_id = None + self._body = None + self.discriminator = None + + self.connection_id = connection_id + if body is not None: + self.body = body + + @property + def connection_id(self): + """Gets the connection_id of this CreateRouteToEnhancedConnectionRequest. + + 连接ID,用于标识跨源连接的UUID。 + + :return: The connection_id of this CreateRouteToEnhancedConnectionRequest. + :rtype: str + """ + return self._connection_id + + @connection_id.setter + def connection_id(self, connection_id): + """Sets the connection_id of this CreateRouteToEnhancedConnectionRequest. + + 连接ID,用于标识跨源连接的UUID。 + + :param connection_id: The connection_id of this CreateRouteToEnhancedConnectionRequest. + :type connection_id: str + """ + self._connection_id = connection_id + + @property + def body(self): + """Gets the body of this CreateRouteToEnhancedConnectionRequest. + + :return: The body of this CreateRouteToEnhancedConnectionRequest. + :rtype: :class:`huaweicloudsdkdli.v1.CreateRouteToEnhancedConnectionRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateRouteToEnhancedConnectionRequest. + + :param body: The body of this CreateRouteToEnhancedConnectionRequest. + :type body: :class:`huaweicloudsdkdli.v1.CreateRouteToEnhancedConnectionRequestBody` + """ + 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, CreateRouteToEnhancedConnectionRequest): + 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-dli/huaweicloudsdkdli/v1/model/create_route_to_enhanced_connection_request_body.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/create_route_to_enhanced_connection_request_body.py new file mode 100644 index 0000000000..55b9420690 --- /dev/null +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/create_route_to_enhanced_connection_request_body.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRouteToEnhancedConnectionRequestBody: + + """ + 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', + 'cidr': 'str' + } + + attribute_map = { + 'name': 'name', + 'cidr': 'cidr' + } + + def __init__(self, name=None, cidr=None): + """CreateRouteToEnhancedConnectionRequestBody + + The model defined in huaweicloud sdk + + :param name: 路由名称,长度限制:1-64个字符。 + :type name: str + :param cidr: 路由网段范围。 + :type cidr: str + """ + + + + self._name = None + self._cidr = None + self.discriminator = None + + self.name = name + self.cidr = cidr + + @property + def name(self): + """Gets the name of this CreateRouteToEnhancedConnectionRequestBody. + + 路由名称,长度限制:1-64个字符。 + + :return: The name of this CreateRouteToEnhancedConnectionRequestBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateRouteToEnhancedConnectionRequestBody. + + 路由名称,长度限制:1-64个字符。 + + :param name: The name of this CreateRouteToEnhancedConnectionRequestBody. + :type name: str + """ + self._name = name + + @property + def cidr(self): + """Gets the cidr of this CreateRouteToEnhancedConnectionRequestBody. + + 路由网段范围。 + + :return: The cidr of this CreateRouteToEnhancedConnectionRequestBody. + :rtype: str + """ + return self._cidr + + @cidr.setter + def cidr(self, cidr): + """Sets the cidr of this CreateRouteToEnhancedConnectionRequestBody. + + 路由网段范围。 + + :param cidr: The cidr of this CreateRouteToEnhancedConnectionRequestBody. + :type cidr: str + """ + self._cidr = cidr + + 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, CreateRouteToEnhancedConnectionRequestBody): + 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-dli/huaweicloudsdkdli/v1/model/create_route_to_enhanced_connection_response.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/create_route_to_enhanced_connection_response.py new file mode 100644 index 0000000000..e1feebfba5 --- /dev/null +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/create_route_to_enhanced_connection_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 CreateRouteToEnhancedConnectionResponse(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 = { + 'is_success': 'bool', + 'message': 'str' + } + + attribute_map = { + 'is_success': 'is_success', + 'message': 'message' + } + + def __init__(self, is_success=None, message=None): + """CreateRouteToEnhancedConnectionResponse + + The model defined in huaweicloud sdk + + :param is_success: 执行请求是否成功。“true”表示请求执行成功。 + :type is_success: bool + :param message: 系统提示信息,执行成功时,信息可能为空。 + :type message: str + """ + + super(CreateRouteToEnhancedConnectionResponse, self).__init__() + + self._is_success = None + self._message = None + self.discriminator = None + + if is_success is not None: + self.is_success = is_success + if message is not None: + self.message = message + + @property + def is_success(self): + """Gets the is_success of this CreateRouteToEnhancedConnectionResponse. + + 执行请求是否成功。“true”表示请求执行成功。 + + :return: The is_success of this CreateRouteToEnhancedConnectionResponse. + :rtype: bool + """ + return self._is_success + + @is_success.setter + def is_success(self, is_success): + """Sets the is_success of this CreateRouteToEnhancedConnectionResponse. + + 执行请求是否成功。“true”表示请求执行成功。 + + :param is_success: The is_success of this CreateRouteToEnhancedConnectionResponse. + :type is_success: bool + """ + self._is_success = is_success + + @property + def message(self): + """Gets the message of this CreateRouteToEnhancedConnectionResponse. + + 系统提示信息,执行成功时,信息可能为空。 + + :return: The message of this CreateRouteToEnhancedConnectionResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CreateRouteToEnhancedConnectionResponse. + + 系统提示信息,执行成功时,信息可能为空。 + + :param message: The message of this CreateRouteToEnhancedConnectionResponse. + :type message: str + """ + self._message = message + + 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, CreateRouteToEnhancedConnectionResponse): + 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-dli/huaweicloudsdkdli/v1/model/delete_route_from_enhanced_connection_request.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/delete_route_from_enhanced_connection_request.py new file mode 100644 index 0000000000..9121b4610a --- /dev/null +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/delete_route_from_enhanced_connection_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteRouteFromEnhancedConnectionRequest: + + """ + 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 = { + 'connection_id': 'str', + 'name': 'str' + } + + attribute_map = { + 'connection_id': 'connection_id', + 'name': 'name' + } + + def __init__(self, connection_id=None, name=None): + """DeleteRouteFromEnhancedConnectionRequest + + The model defined in huaweicloud sdk + + :param connection_id: 连接ID,用于标识跨源连接的UUID。 + :type connection_id: str + :param name: + :type name: str + """ + + + + self._connection_id = None + self._name = None + self.discriminator = None + + self.connection_id = connection_id + self.name = name + + @property + def connection_id(self): + """Gets the connection_id of this DeleteRouteFromEnhancedConnectionRequest. + + 连接ID,用于标识跨源连接的UUID。 + + :return: The connection_id of this DeleteRouteFromEnhancedConnectionRequest. + :rtype: str + """ + return self._connection_id + + @connection_id.setter + def connection_id(self, connection_id): + """Sets the connection_id of this DeleteRouteFromEnhancedConnectionRequest. + + 连接ID,用于标识跨源连接的UUID。 + + :param connection_id: The connection_id of this DeleteRouteFromEnhancedConnectionRequest. + :type connection_id: str + """ + self._connection_id = connection_id + + @property + def name(self): + """Gets the name of this DeleteRouteFromEnhancedConnectionRequest. + + :return: The name of this DeleteRouteFromEnhancedConnectionRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DeleteRouteFromEnhancedConnectionRequest. + + :param name: The name of this DeleteRouteFromEnhancedConnectionRequest. + :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, DeleteRouteFromEnhancedConnectionRequest): + 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-dli/huaweicloudsdkdli/v1/model/delete_route_from_enhanced_connection_response.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/delete_route_from_enhanced_connection_response.py new file mode 100644 index 0000000000..e2a9887b7e --- /dev/null +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/delete_route_from_enhanced_connection_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 DeleteRouteFromEnhancedConnectionResponse(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 = { + 'is_success': 'bool', + 'message': 'str' + } + + attribute_map = { + 'is_success': 'is_success', + 'message': 'message' + } + + def __init__(self, is_success=None, message=None): + """DeleteRouteFromEnhancedConnectionResponse + + The model defined in huaweicloud sdk + + :param is_success: 执行请求是否成功。“true”表示请求执行成功。 + :type is_success: bool + :param message: 系统提示信息,执行成功时,信息可能为空。 + :type message: str + """ + + super(DeleteRouteFromEnhancedConnectionResponse, self).__init__() + + self._is_success = None + self._message = None + self.discriminator = None + + if is_success is not None: + self.is_success = is_success + if message is not None: + self.message = message + + @property + def is_success(self): + """Gets the is_success of this DeleteRouteFromEnhancedConnectionResponse. + + 执行请求是否成功。“true”表示请求执行成功。 + + :return: The is_success of this DeleteRouteFromEnhancedConnectionResponse. + :rtype: bool + """ + return self._is_success + + @is_success.setter + def is_success(self, is_success): + """Sets the is_success of this DeleteRouteFromEnhancedConnectionResponse. + + 执行请求是否成功。“true”表示请求执行成功。 + + :param is_success: The is_success of this DeleteRouteFromEnhancedConnectionResponse. + :type is_success: bool + """ + self._is_success = is_success + + @property + def message(self): + """Gets the message of this DeleteRouteFromEnhancedConnectionResponse. + + 系统提示信息,执行成功时,信息可能为空。 + + :return: The message of this DeleteRouteFromEnhancedConnectionResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this DeleteRouteFromEnhancedConnectionResponse. + + 系统提示信息,执行成功时,信息可能为空。 + + :param message: The message of this DeleteRouteFromEnhancedConnectionResponse. + :type message: str + """ + self._message = message + + 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, DeleteRouteFromEnhancedConnectionResponse): + 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-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index 97dccf503f..8a88ca5c17 100644 --- a/huaweicloud-sdk-dli/setup.py +++ b/huaweicloud-sdk-dli/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdli" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index 2299553df0..6e85e4321a 100644 --- a/huaweicloud-sdk-dns/setup.py +++ b/huaweicloud-sdk-dns/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdns" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dris/requirements.txt +++ b/huaweicloud-sdk-dris/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py index 887dbf951d..0b3df34741 100644 --- a/huaweicloud-sdk-dris/setup.py +++ b/huaweicloud-sdk-dris/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdris" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index 3258712b15..7136951b49 100644 --- a/huaweicloud-sdk-drs/setup.py +++ b/huaweicloud-sdk-drs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdrs" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index 6dde519fcd..825d0b1b85 100644 --- a/huaweicloud-sdk-dsc/setup.py +++ b/huaweicloud-sdk-dsc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdsc" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index e4557df2ab..9c3a9f984c 100644 --- a/huaweicloud-sdk-dwr/setup.py +++ b/huaweicloud-sdk-dwr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdwr" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py index 6fd73044c9..fd037339c4 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py @@ -5,6 +5,7 @@ from huaweicloudsdkdws.v2.dws_client import DwsClient from huaweicloudsdkdws.v2.dws_async_client import DwsAsyncClient +from huaweicloudsdkdws.v2.model.action_info import ActionInfo from huaweicloudsdkdws.v2.model.add_snapshot_cross_region_policy_request import AddSnapshotCrossRegionPolicyRequest from huaweicloudsdkdws.v2.model.add_snapshot_cross_region_policy_request_body import AddSnapshotCrossRegionPolicyRequestBody from huaweicloudsdkdws.v2.model.add_snapshot_cross_region_policy_response import AddSnapshotCrossRegionPolicyResponse @@ -38,6 +39,7 @@ from huaweicloudsdkdws.v2.model.batch_delete_resource_tag_request import BatchDeleteResourceTagRequest from huaweicloudsdkdws.v2.model.batch_delete_resource_tag_response import BatchDeleteResourceTagResponse from huaweicloudsdkdws.v2.model.batch_delete_resource_tags import BatchDeleteResourceTags +from huaweicloudsdkdws.v2.model.build_task_info import BuildTaskInfo from huaweicloudsdkdws.v2.model.cancel_readonly_cluster_request import CancelReadonlyClusterRequest from huaweicloudsdkdws.v2.model.cancel_readonly_cluster_response import CancelReadonlyClusterResponse from huaweicloudsdkdws.v2.model.check_cluster_request import CheckClusterRequest @@ -58,7 +60,9 @@ from huaweicloudsdkdws.v2.model.cluster_elb_info import ClusterElbInfo from huaweicloudsdkdws.v2.model.cluster_flavor_resp import ClusterFlavorResp from huaweicloudsdkdws.v2.model.cluster_info import ClusterInfo +from huaweicloudsdkdws.v2.model.cluster_node_info import ClusterNodeInfo from huaweicloudsdkdws.v2.model.cluster_recovery_progress import ClusterRecoveryProgress +from huaweicloudsdkdws.v2.model.cluster_ring import ClusterRing from huaweicloudsdkdws.v2.model.cluster_shrink_req import ClusterShrinkReq from huaweicloudsdkdws.v2.model.cluster_snapshots import ClusterSnapshots from huaweicloudsdkdws.v2.model.cluster_update_record_resp import ClusterUpdateRecordResp @@ -72,6 +76,8 @@ from huaweicloudsdkdws.v2.model.configuration_parameter_value import ConfigurationParameterValue from huaweicloudsdkdws.v2.model.configuration_parameter_values import ConfigurationParameterValues from huaweicloudsdkdws.v2.model.configuration_record_resp import ConfigurationRecordResp +from huaweicloudsdkdws.v2.model.convert_to_logical_cluster_request import ConvertToLogicalClusterRequest +from huaweicloudsdkdws.v2.model.convert_to_logical_cluster_response import ConvertToLogicalClusterResponse from huaweicloudsdkdws.v2.model.coordinator_node import CoordinatorNode from huaweicloudsdkdws.v2.model.copy_snapshot_request import CopySnapshotRequest from huaweicloudsdkdws.v2.model.copy_snapshot_response import CopySnapshotResponse @@ -96,6 +102,10 @@ from huaweicloudsdkdws.v2.model.create_disaster_recovery_response import CreateDisasterRecoveryResponse from huaweicloudsdkdws.v2.model.create_event_sub_request import CreateEventSubRequest from huaweicloudsdkdws.v2.model.create_event_sub_response import CreateEventSubResponse +from huaweicloudsdkdws.v2.model.create_logical_cluster_info import CreateLogicalClusterInfo +from huaweicloudsdkdws.v2.model.create_logical_cluster_request import CreateLogicalClusterRequest +from huaweicloudsdkdws.v2.model.create_logical_cluster_request_body import CreateLogicalClusterRequestBody +from huaweicloudsdkdws.v2.model.create_logical_cluster_response import CreateLogicalClusterResponse from huaweicloudsdkdws.v2.model.create_snapshot_policy_request import CreateSnapshotPolicyRequest from huaweicloudsdkdws.v2.model.create_snapshot_policy_response import CreateSnapshotPolicyResponse from huaweicloudsdkdws.v2.model.create_snapshot_request import CreateSnapshotRequest @@ -114,6 +124,9 @@ from huaweicloudsdkdws.v2.model.delete_alarm_sub_response import DeleteAlarmSubResponse from huaweicloudsdkdws.v2.model.delete_cluster_dns_request import DeleteClusterDnsRequest from huaweicloudsdkdws.v2.model.delete_cluster_dns_response import DeleteClusterDnsResponse +from huaweicloudsdkdws.v2.model.delete_cluster_nodes_request import DeleteClusterNodesRequest +from huaweicloudsdkdws.v2.model.delete_cluster_nodes_request_body import DeleteClusterNodesRequestBody +from huaweicloudsdkdws.v2.model.delete_cluster_nodes_response import DeleteClusterNodesResponse from huaweicloudsdkdws.v2.model.delete_cluster_request import DeleteClusterRequest from huaweicloudsdkdws.v2.model.delete_cluster_request_body import DeleteClusterRequestBody from huaweicloudsdkdws.v2.model.delete_cluster_response import DeleteClusterResponse @@ -123,6 +136,8 @@ from huaweicloudsdkdws.v2.model.delete_disaster_recovery_response import DeleteDisasterRecoveryResponse from huaweicloudsdkdws.v2.model.delete_event_sub_request import DeleteEventSubRequest from huaweicloudsdkdws.v2.model.delete_event_sub_response import DeleteEventSubResponse +from huaweicloudsdkdws.v2.model.delete_logical_cluster_request import DeleteLogicalClusterRequest +from huaweicloudsdkdws.v2.model.delete_logical_cluster_response import DeleteLogicalClusterResponse from huaweicloudsdkdws.v2.model.delete_snapshot_cross_region_policy_request import DeleteSnapshotCrossRegionPolicyRequest from huaweicloudsdkdws.v2.model.delete_snapshot_cross_region_policy_response import DeleteSnapshotCrossRegionPolicyResponse from huaweicloudsdkdws.v2.model.delete_snapshot_policy_request import DeleteSnapshotPolicyRequest @@ -134,6 +149,8 @@ from huaweicloudsdkdws.v2.model.delete_workload_queue_request import DeleteWorkloadQueueRequest from huaweicloudsdkdws.v2.model.delete_workload_queue_response import DeleteWorkloadQueueResponse from huaweicloudsdkdws.v2.model.detail import Detail +from huaweicloudsdkdws.v2.model.disable_lts_logs_request import DisableLtsLogsRequest +from huaweicloudsdkdws.v2.model.disable_lts_logs_response import DisableLtsLogsResponse from huaweicloudsdkdws.v2.model.disassociate_eip_request import DisassociateEipRequest from huaweicloudsdkdws.v2.model.disassociate_eip_response import DisassociateEipResponse from huaweicloudsdkdws.v2.model.disassociate_elb_request import DisassociateElbRequest @@ -146,6 +163,11 @@ from huaweicloudsdkdws.v2.model.disk_resp import DiskResp from huaweicloudsdkdws.v2.model.dss_pool import DssPool from huaweicloudsdkdws.v2.model.elb_resp import ElbResp +from huaweicloudsdkdws.v2.model.enable_logical_cluster_request import EnableLogicalClusterRequest +from huaweicloudsdkdws.v2.model.enable_logical_cluster_request_body import EnableLogicalClusterRequestBody +from huaweicloudsdkdws.v2.model.enable_logical_cluster_response import EnableLogicalClusterResponse +from huaweicloudsdkdws.v2.model.enable_lts_logs_request import EnableLtsLogsRequest +from huaweicloudsdkdws.v2.model.enable_lts_logs_response import EnableLtsLogsResponse from huaweicloudsdkdws.v2.model.endpoints import Endpoints from huaweicloudsdkdws.v2.model.event_response import EventResponse from huaweicloudsdkdws.v2.model.event_spec_response import EventSpecResponse @@ -193,6 +215,8 @@ from huaweicloudsdkdws.v2.model.list_cluster_configurations_response import ListClusterConfigurationsResponse from huaweicloudsdkdws.v2.model.list_cluster_details_request import ListClusterDetailsRequest from huaweicloudsdkdws.v2.model.list_cluster_details_response import ListClusterDetailsResponse +from huaweicloudsdkdws.v2.model.list_cluster_nodes_request import ListClusterNodesRequest +from huaweicloudsdkdws.v2.model.list_cluster_nodes_response import ListClusterNodesResponse from huaweicloudsdkdws.v2.model.list_cluster_scale_in_numbers_request import ListClusterScaleInNumbersRequest from huaweicloudsdkdws.v2.model.list_cluster_scale_in_numbers_response import ListClusterScaleInNumbersResponse from huaweicloudsdkdws.v2.model.list_cluster_snapshots_request import ListClusterSnapshotsRequest @@ -229,12 +253,29 @@ from huaweicloudsdkdws.v2.model.list_host_overview_response import ListHostOverviewResponse from huaweicloudsdkdws.v2.model.list_job_details_request import ListJobDetailsRequest from huaweicloudsdkdws.v2.model.list_job_details_response import ListJobDetailsResponse +from huaweicloudsdkdws.v2.model.list_logical_cluster_rings_request import ListLogicalClusterRingsRequest +from huaweicloudsdkdws.v2.model.list_logical_cluster_rings_response import ListLogicalClusterRingsResponse +from huaweicloudsdkdws.v2.model.list_logical_cluster_tasks_request import ListLogicalClusterTasksRequest +from huaweicloudsdkdws.v2.model.list_logical_cluster_tasks_response import ListLogicalClusterTasksResponse +from huaweicloudsdkdws.v2.model.list_logical_cluster_volumes_request import ListLogicalClusterVolumesRequest +from huaweicloudsdkdws.v2.model.list_logical_cluster_volumes_response import ListLogicalClusterVolumesResponse +from huaweicloudsdkdws.v2.model.list_logical_clusters_request import ListLogicalClustersRequest +from huaweicloudsdkdws.v2.model.list_logical_clusters_response import ListLogicalClustersResponse +from huaweicloudsdkdws.v2.model.list_lts_logs_request import ListLtsLogsRequest +from huaweicloudsdkdws.v2.model.list_lts_logs_response import ListLtsLogsResponse from huaweicloudsdkdws.v2.model.list_monitor_indicator_data_request import ListMonitorIndicatorDataRequest from huaweicloudsdkdws.v2.model.list_monitor_indicator_data_response import ListMonitorIndicatorDataResponse from huaweicloudsdkdws.v2.model.list_monitor_indicators_request import ListMonitorIndicatorsRequest from huaweicloudsdkdws.v2.model.list_monitor_indicators_response import ListMonitorIndicatorsResponse from huaweicloudsdkdws.v2.model.list_node_types_request import ListNodeTypesRequest from huaweicloudsdkdws.v2.model.list_node_types_response import ListNodeTypesResponse +from huaweicloudsdkdws.v2.model.list_queries_condition import ListQueriesCondition +from huaweicloudsdkdws.v2.model.list_queries_data import ListQueriesData +from huaweicloudsdkdws.v2.model.list_queries_dto import ListQueriesDto +from huaweicloudsdkdws.v2.model.list_queries_request import ListQueriesRequest +from huaweicloudsdkdws.v2.model.list_queries_request_body import ListQueriesRequestBody +from huaweicloudsdkdws.v2.model.list_queries_response import ListQueriesResponse +from huaweicloudsdkdws.v2.model.list_queries_status import ListQueriesStatus from huaweicloudsdkdws.v2.model.list_quotas_request import ListQuotasRequest from huaweicloudsdkdws.v2.model.list_quotas_response import ListQuotasResponse from huaweicloudsdkdws.v2.model.list_snapshot_cross_region_policy_request import ListSnapshotCrossRegionPolicyRequest @@ -251,14 +292,24 @@ from huaweicloudsdkdws.v2.model.list_snapshots_response import ListSnapshotsResponse from huaweicloudsdkdws.v2.model.list_statistics_request import ListStatisticsRequest from huaweicloudsdkdws.v2.model.list_statistics_response import ListStatisticsResponse +from huaweicloudsdkdws.v2.model.list_tables_statistic_dto import ListTablesStatisticDto +from huaweicloudsdkdws.v2.model.list_tables_statistic_request import ListTablesStatisticRequest +from huaweicloudsdkdws.v2.model.list_tables_statistic_response import ListTablesStatisticResponse from huaweicloudsdkdws.v2.model.list_tags_request import ListTagsRequest from huaweicloudsdkdws.v2.model.list_tags_response import ListTagsResponse +from huaweicloudsdkdws.v2.model.list_topo_rings_request import ListTopoRingsRequest +from huaweicloudsdkdws.v2.model.list_topo_rings_response import ListTopoRingsResponse from huaweicloudsdkdws.v2.model.list_updatable_version_request import ListUpdatableVersionRequest from huaweicloudsdkdws.v2.model.list_updatable_version_response import ListUpdatableVersionResponse from huaweicloudsdkdws.v2.model.list_update_record_request import ListUpdateRecordRequest from huaweicloudsdkdws.v2.model.list_update_record_response import ListUpdateRecordResponse from huaweicloudsdkdws.v2.model.list_workload_queue_request import ListWorkloadQueueRequest from huaweicloudsdkdws.v2.model.list_workload_queue_response import ListWorkloadQueueResponse +from huaweicloudsdkdws.v2.model.logical_cluster_info import LogicalClusterInfo +from huaweicloudsdkdws.v2.model.logical_cluster_ring_info import LogicalClusterRingInfo +from huaweicloudsdkdws.v2.model.logical_cluster_task_info import LogicalClusterTaskInfo +from huaweicloudsdkdws.v2.model.logical_cluster_volume import LogicalClusterVolume +from huaweicloudsdkdws.v2.model.ltslog_info import LtslogInfo from huaweicloudsdkdws.v2.model.maintain_window import MaintainWindow from huaweicloudsdkdws.v2.model.maintenance_window import MaintenanceWindow from huaweicloudsdkdws.v2.model.modify_cluster_dns import ModifyClusterDns @@ -292,14 +343,20 @@ from huaweicloudsdkdws.v2.model.reset_password_request import ResetPasswordRequest from huaweicloudsdkdws.v2.model.reset_password_request_body import ResetPasswordRequestBody from huaweicloudsdkdws.v2.model.reset_password_response import ResetPasswordResponse +from huaweicloudsdkdws.v2.model.resize import Resize from huaweicloudsdkdws.v2.model.resize_cluster_request import ResizeClusterRequest from huaweicloudsdkdws.v2.model.resize_cluster_request_body import ResizeClusterRequestBody from huaweicloudsdkdws.v2.model.resize_cluster_response import ResizeClusterResponse +from huaweicloudsdkdws.v2.model.resize_cluster_with_existed_nodes_request import ResizeClusterWithExistedNodesRequest +from huaweicloudsdkdws.v2.model.resize_cluster_with_existed_nodes_request_body import ResizeClusterWithExistedNodesRequestBody +from huaweicloudsdkdws.v2.model.resize_cluster_with_existed_nodes_response import ResizeClusterWithExistedNodesResponse from huaweicloudsdkdws.v2.model.resize_info import ResizeInfo from huaweicloudsdkdws.v2.model.resource_tag import ResourceTag from huaweicloudsdkdws.v2.model.restart_cluster_request import RestartClusterRequest from huaweicloudsdkdws.v2.model.restart_cluster_request_body import RestartClusterRequestBody from huaweicloudsdkdws.v2.model.restart_cluster_response import RestartClusterResponse +from huaweicloudsdkdws.v2.model.restart_logical_cluster_request import RestartLogicalClusterRequest +from huaweicloudsdkdws.v2.model.restart_logical_cluster_response import RestartLogicalClusterResponse from huaweicloudsdkdws.v2.model.restore import Restore from huaweicloudsdkdws.v2.model.restore_cluster_request import RestoreClusterRequest from huaweicloudsdkdws.v2.model.restore_cluster_request_body import RestoreClusterRequestBody @@ -307,10 +364,13 @@ from huaweicloudsdkdws.v2.model.restore_disaster_request import RestoreDisasterRequest from huaweicloudsdkdws.v2.model.restore_disaster_response import RestoreDisasterResponse from huaweicloudsdkdws.v2.model.restore_point import RestorePoint +from huaweicloudsdkdws.v2.model.restore_redistribution_request import RestoreRedistributionRequest +from huaweicloudsdkdws.v2.model.restore_redistribution_response import RestoreRedistributionResponse from huaweicloudsdkdws.v2.model.restore_table_request import RestoreTableRequest from huaweicloudsdkdws.v2.model.restore_table_request_body import RestoreTableRequestBody from huaweicloudsdkdws.v2.model.restore_table_response import RestoreTableResponse from huaweicloudsdkdws.v2.model.revoke import Revoke +from huaweicloudsdkdws.v2.model.ring_host import RingHost from huaweicloudsdkdws.v2.model.role_authority import RoleAuthority from huaweicloudsdkdws.v2.model.save_cluster_description_info_request import SaveClusterDescriptionInfoRequest from huaweicloudsdkdws.v2.model.save_cluster_description_info_response import SaveClusterDescriptionInfoResponse @@ -330,6 +390,8 @@ from huaweicloudsdkdws.v2.model.show_disaster_progress_response import ShowDisasterProgressResponse from huaweicloudsdkdws.v2.model.show_instance_request import ShowInstanceRequest from huaweicloudsdkdws.v2.model.show_instance_response import ShowInstanceResponse +from huaweicloudsdkdws.v2.model.show_query_detail_request import ShowQueryDetailRequest +from huaweicloudsdkdws.v2.model.show_query_detail_response import ShowQueryDetailResponse from huaweicloudsdkdws.v2.model.show_workload_plan_request import ShowWorkloadPlanRequest from huaweicloudsdkdws.v2.model.show_workload_plan_response import ShowWorkloadPlanResponse from huaweicloudsdkdws.v2.model.shrink_cluster_request import ShrinkClusterRequest @@ -345,6 +407,8 @@ from huaweicloudsdkdws.v2.model.start_workload_plan_request import StartWorkloadPlanRequest from huaweicloudsdkdws.v2.model.start_workload_plan_response import StartWorkloadPlanResponse from huaweicloudsdkdws.v2.model.statistic import Statistic +from huaweicloudsdkdws.v2.model.stop_redistribution_request import StopRedistributionRequest +from huaweicloudsdkdws.v2.model.stop_redistribution_response import StopRedistributionResponse from huaweicloudsdkdws.v2.model.stop_workload_plan_request import StopWorkloadPlanRequest from huaweicloudsdkdws.v2.model.stop_workload_plan_response import StopWorkloadPlanResponse from huaweicloudsdkdws.v2.model.switch_failover_disaster_request import SwitchFailoverDisasterRequest @@ -358,6 +422,8 @@ from huaweicloudsdkdws.v2.model.table_detail import TableDetail from huaweicloudsdkdws.v2.model.tag import Tag from huaweicloudsdkdws.v2.model.tags import Tags +from huaweicloudsdkdws.v2.model.topo_instance_info import TopoInstanceInfo +from huaweicloudsdkdws.v2.model.topo_ring_info import TopoRingInfo from huaweicloudsdkdws.v2.model.trend_query_data import TrendQueryData from huaweicloudsdkdws.v2.model.trend_query_data_resp import TrendQueryDataResp from huaweicloudsdkdws.v2.model.update_alarm_sub_request import UpdateAlarmSubRequest @@ -379,6 +445,9 @@ from huaweicloudsdkdws.v2.model.update_event_sub_request import UpdateEventSubRequest from huaweicloudsdkdws.v2.model.update_event_sub_response import UpdateEventSubResponse from huaweicloudsdkdws.v2.model.update_item_resp import UpdateItemResp +from huaweicloudsdkdws.v2.model.update_logical_cluster_request import UpdateLogicalClusterRequest +from huaweicloudsdkdws.v2.model.update_logical_cluster_request_body import UpdateLogicalClusterRequestBody +from huaweicloudsdkdws.v2.model.update_logical_cluster_response import UpdateLogicalClusterResponse from huaweicloudsdkdws.v2.model.update_maintenance_window_request import UpdateMaintenanceWindowRequest from huaweicloudsdkdws.v2.model.update_maintenance_window_response import UpdateMaintenanceWindowResponse from huaweicloudsdkdws.v2.model.v2_create_cluster import V2CreateCluster diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py index 60a60bb9f2..bf2bd8692b 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py @@ -841,6 +841,73 @@ def _check_table_restore_http_info(self, request): return http_info + def convert_to_logical_cluster_async(self, request): + """物理集群转换到逻辑集群 + + 逻辑集群-物理集群转换到逻辑集群 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ConvertToLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.ConvertToLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ConvertToLogicalClusterResponse` + """ + http_info = self._convert_to_logical_cluster_http_info(request) + return self._call_api(**http_info) + + def convert_to_logical_cluster_async_invoker(self, request): + http_info = self._convert_to_logical_cluster_http_info(request) + return AsyncInvoker(self, http_info) + + def _convert_to_logical_cluster_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/convert-to-logical-cluster/{name}", + "request_type": request.__class__.__name__, + "response_type": "ConvertToLogicalClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] + + 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 copy_snapshot_async(self, request): """复制快照 @@ -1438,6 +1505,73 @@ def _create_event_sub_http_info(self, request): return http_info + def create_logical_cluster_async(self, request): + """创建逻辑集群 + + 逻辑集群-创建逻辑集群 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.CreateLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.CreateLogicalClusterResponse` + """ + http_info = self._create_logical_cluster_http_info(request) + return self._call_api(**http_info) + + def create_logical_cluster_async_invoker(self, request): + http_info = self._create_logical_cluster_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_logical_cluster_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters", + "request_type": request.__class__.__name__, + "response_type": "CreateLogicalClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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_snapshot_async(self, request): """创建快照 @@ -1836,6 +1970,73 @@ def _delete_cluster_dns_http_info(self, request): return http_info + def delete_cluster_nodes_async(self, request): + """删除节点 + + 此接口用于删除节点。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteClusterNodes + :type request: :class:`huaweicloudsdkdws.v2.DeleteClusterNodesRequest` + :rtype: :class:`huaweicloudsdkdws.v2.DeleteClusterNodesResponse` + """ + http_info = self._delete_cluster_nodes_http_info(request) + return self._call_api(**http_info) + + def delete_cluster_nodes_async_invoker(self, request): + http_info = self._delete_cluster_nodes_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_cluster_nodes_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/nodes/delete", + "request_type": request.__class__.__name__, + "response_type": "DeleteClusterNodesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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_data_source_async(self, request): """删除数据源 @@ -2033,6 +2234,73 @@ def _delete_event_sub_http_info(self, request): return http_info + def delete_logical_cluster_async(self, request): + """删除逻辑集群 + + 此接口用于删除逻辑集群。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.DeleteLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.DeleteLogicalClusterResponse` + """ + http_info = self._delete_logical_cluster_http_info(request) + return self._call_api(**http_info) + + def delete_logical_cluster_async_invoker(self, request): + http_info = self._delete_logical_cluster_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_logical_cluster_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/{logical_cluster_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteLogicalClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'logical_cluster_id' in local_var_params: + path_params['logical_cluster_id'] = local_var_params['logical_cluster_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_snapshot_async(self, request): """删除快照 @@ -2366,31 +2634,31 @@ def _delete_workload_queue_http_info(self, request): return http_info - def disassociate_eip_async(self, request): - """集群解绑EIP + def disable_lts_logs_async(self, request): + """关闭云服务日志 - 集群解绑Eip + 该接口用于关闭集群LTS云日志服务 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DisassociateEip - :type request: :class:`huaweicloudsdkdws.v2.DisassociateEipRequest` - :rtype: :class:`huaweicloudsdkdws.v2.DisassociateEipResponse` + :param request: Request instance for DisableLtsLogs + :type request: :class:`huaweicloudsdkdws.v2.DisableLtsLogsRequest` + :rtype: :class:`huaweicloudsdkdws.v2.DisableLtsLogsResponse` """ - http_info = self._disassociate_eip_http_info(request) + http_info = self._disable_lts_logs_http_info(request) return self._call_api(**http_info) - def disassociate_eip_async_invoker(self, request): - http_info = self._disassociate_eip_http_info(request) + def disable_lts_logs_async_invoker(self, request): + http_info = self._disable_lts_logs_http_info(request) return AsyncInvoker(self, http_info) - def _disassociate_eip_http_info(self, request): + def _disable_lts_logs_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v2/{project_id}/clusters/{cluster_id}/eips/{eip_id}", + "method": "POST", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/lts-logs/disable", "request_type": request.__class__.__name__, - "response_type": "DisassociateEipResponse" + "response_type": "DisableLtsLogsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2402,8 +2670,6 @@ def _disassociate_eip_http_info(self, request): path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] - if 'eip_id' in local_var_params: - path_params['eip_id'] = local_var_params['eip_id'] query_params = [] @@ -2433,29 +2699,96 @@ def _disassociate_eip_http_info(self, request): return http_info - def disassociate_elb_async(self, request): - """集群解绑ELB + def disassociate_eip_async(self, request): + """集群解绑EIP - 集群解绑Elb接口 + 集群解绑Eip Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DisassociateElb - :type request: :class:`huaweicloudsdkdws.v2.DisassociateElbRequest` - :rtype: :class:`huaweicloudsdkdws.v2.DisassociateElbResponse` + :param request: Request instance for DisassociateEip + :type request: :class:`huaweicloudsdkdws.v2.DisassociateEipRequest` + :rtype: :class:`huaweicloudsdkdws.v2.DisassociateEipResponse` """ - http_info = self._disassociate_elb_http_info(request) + http_info = self._disassociate_eip_http_info(request) return self._call_api(**http_info) - def disassociate_elb_async_invoker(self, request): - http_info = self._disassociate_elb_http_info(request) + def disassociate_eip_async_invoker(self, request): + http_info = self._disassociate_eip_http_info(request) return AsyncInvoker(self, http_info) - def _disassociate_elb_http_info(self, request): + def _disassociate_eip_http_info(self, request): http_info = { "method": "DELETE", - "resource_path": "/v2/{project_id}/clusters/{cluster_id}/elbs/{elb_id}", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/eips/{eip_id}", + "request_type": request.__class__.__name__, + "response_type": "DisassociateEipResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'eip_id' in local_var_params: + path_params['eip_id'] = local_var_params['eip_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 disassociate_elb_async(self, request): + """集群解绑ELB + + 集群解绑Elb接口 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DisassociateElb + :type request: :class:`huaweicloudsdkdws.v2.DisassociateElbRequest` + :rtype: :class:`huaweicloudsdkdws.v2.DisassociateElbResponse` + """ + http_info = self._disassociate_elb_http_info(request) + return self._call_api(**http_info) + + def disassociate_elb_async_invoker(self, request): + http_info = self._disassociate_elb_http_info(request) + return AsyncInvoker(self, http_info) + + def _disassociate_elb_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/elbs/{elb_id}", "request_type": request.__class__.__name__, "response_type": "DisassociateElbResponse" } @@ -2500,6 +2833,138 @@ def _disassociate_elb_http_info(self, request): return http_info + def enable_logical_cluster_async(self, request): + """切换逻辑集群开关 + + 此接口用于切换逻辑集群开关。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for EnableLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.EnableLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.EnableLogicalClusterResponse` + """ + http_info = self._enable_logical_cluster_http_info(request) + return self._call_api(**http_info) + + def enable_logical_cluster_async_invoker(self, request): + http_info = self._enable_logical_cluster_http_info(request) + return AsyncInvoker(self, http_info) + + def _enable_logical_cluster_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/enable", + "request_type": request.__class__.__name__, + "response_type": "EnableLogicalClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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 enable_lts_logs_async(self, request): + """开启云服务日志 + + 该接口用于开启集群LTS云日志服务 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for EnableLtsLogs + :type request: :class:`huaweicloudsdkdws.v2.EnableLtsLogsRequest` + :rtype: :class:`huaweicloudsdkdws.v2.EnableLtsLogsResponse` + """ + http_info = self._enable_lts_logs_http_info(request) + return self._call_api(**http_info) + + def enable_lts_logs_async_invoker(self, request): + http_info = self._enable_lts_logs_http_info(request) + return AsyncInvoker(self, http_info) + + def _enable_lts_logs_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/lts-logs/enable", + "request_type": request.__class__.__name__, + "response_type": "EnableLtsLogsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 execute_cluster_upgrade_action_async(self, request): """下发集群升级相关操作 @@ -3509,6 +3974,88 @@ def _list_cluster_details_http_info(self, request): return http_info + def list_cluster_nodes_async(self, request): + """查询节点列表 + + 查询节点列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListClusterNodes + :type request: :class:`huaweicloudsdkdws.v2.ListClusterNodesRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListClusterNodesResponse` + """ + http_info = self._list_cluster_nodes_http_info(request) + return self._call_api(**http_info) + + def list_cluster_nodes_async_invoker(self, request): + http_info = self._list_cluster_nodes_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_cluster_nodes_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/nodes", + "request_type": request.__class__.__name__, + "response_type": "ListClusterNodesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'deleted' in local_var_params: + query_params.append(('deleted', local_var_params['deleted'])) + if 'node_ids' in local_var_params: + query_params.append(('node_ids', local_var_params['node_ids'])) + collection_formats['node_ids'] = 'csv' + 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 'filter_by' in local_var_params: + query_params.append(('filter_by', local_var_params['filter_by'])) + if 'filter' in local_var_params: + query_params.append(('filter', local_var_params['filter'])) + if 'order_by' in local_var_params: + query_params.append(('order_by', local_var_params['order_by'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + + 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_cluster_scale_in_numbers_async(self, request): """查询合适的缩容数 @@ -4485,6 +5032,8 @@ def _list_host_disk_http_info(self, request): query_params = [] if 'cluster_id' in local_var_params: query_params.append(('cluster_id', local_var_params['cluster_id'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) if 'instance_name' in local_var_params: query_params.append(('instance_name', local_var_params['instance_name'])) if 'limit' in local_var_params: @@ -4725,31 +5274,31 @@ def _list_job_details_http_info(self, request): return http_info - def list_monitor_indicator_data_async(self, request): - """openApi查询历史监控数据 + def list_logical_cluster_rings_async(self, request): + """查询逻辑集群可用ring环节点信息 - openApi查询历史监控数据 + 查询逻辑集群可用ring环节点信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListMonitorIndicatorData - :type request: :class:`huaweicloudsdkdws.v2.ListMonitorIndicatorDataRequest` - :rtype: :class:`huaweicloudsdkdws.v2.ListMonitorIndicatorDataResponse` + :param request: Request instance for ListLogicalClusterRings + :type request: :class:`huaweicloudsdkdws.v2.ListLogicalClusterRingsRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListLogicalClusterRingsResponse` """ - http_info = self._list_monitor_indicator_data_http_info(request) + http_info = self._list_logical_cluster_rings_http_info(request) return self._call_api(**http_info) - def list_monitor_indicator_data_async_invoker(self, request): - http_info = self._list_monitor_indicator_data_http_info(request) + def list_logical_cluster_rings_async_invoker(self, request): + http_info = self._list_logical_cluster_rings_http_info(request) return AsyncInvoker(self, http_info) - def _list_monitor_indicator_data_http_info(self, request): + def _list_logical_cluster_rings_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/dms/metric-data", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/rings", "request_type": request.__class__.__name__, - "response_type": "ListMonitorIndicatorDataResponse" + "response_type": "ListLogicalClusterRingsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4759,13 +5308,366 @@ def _list_monitor_indicator_data_http_info(self, request): collection_formats = {} path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if '_from' in local_var_params: - query_params.append(('from', local_var_params['_from'])) - if 'to' in local_var_params: - query_params.append(('to', local_var_params['to'])) - if 'function' in local_var_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'])) + + 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_logical_cluster_tasks_async(self, request): + """查询逻辑集群任务信息 + + 逻辑集群-查询逻辑集群任务信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListLogicalClusterTasks + :type request: :class:`huaweicloudsdkdws.v2.ListLogicalClusterTasksRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListLogicalClusterTasksResponse` + """ + http_info = self._list_logical_cluster_tasks_http_info(request) + return self._call_api(**http_info) + + def list_logical_cluster_tasks_async_invoker(self, request): + http_info = self._list_logical_cluster_tasks_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_logical_cluster_tasks_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/tasks", + "request_type": request.__class__.__name__, + "response_type": "ListLogicalClusterTasksResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + 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 'logical_cluster_name' in local_var_params: + query_params.append(('logical_cluster_name', local_var_params['logical_cluster_name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'order_by' in local_var_params: + query_params.append(('order_by', local_var_params['order_by'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + + 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_logical_cluster_volumes_async(self, request): + """查询逻辑集群磁盘信息 + + 逻辑集群-查询逻辑集群磁盘信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListLogicalClusterVolumes + :type request: :class:`huaweicloudsdkdws.v2.ListLogicalClusterVolumesRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListLogicalClusterVolumesResponse` + """ + http_info = self._list_logical_cluster_volumes_http_info(request) + return self._call_api(**http_info) + + def list_logical_cluster_volumes_async_invoker(self, request): + http_info = self._list_logical_cluster_volumes_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_logical_cluster_volumes_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/volumes", + "request_type": request.__class__.__name__, + "response_type": "ListLogicalClusterVolumesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + 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'])) + + 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_logical_clusters_async(self, request): + """查询逻辑集群列表 + + 逻辑集群-查询逻辑集群列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListLogicalClusters + :type request: :class:`huaweicloudsdkdws.v2.ListLogicalClustersRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListLogicalClustersResponse` + """ + http_info = self._list_logical_clusters_http_info(request) + return self._call_api(**http_info) + + def list_logical_clusters_async_invoker(self, request): + http_info = self._list_logical_clusters_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_logical_clusters_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters", + "request_type": request.__class__.__name__, + "response_type": "ListLogicalClustersResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + 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'])) + + 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_lts_logs_async(self, request): + """获取LTS日志列表 + + 获取LTS日志列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListLtsLogs + :type request: :class:`huaweicloudsdkdws.v2.ListLtsLogsRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListLtsLogsResponse` + """ + http_info = self._list_lts_logs_http_info(request) + return self._call_api(**http_info) + + def list_lts_logs_async_invoker(self, request): + http_info = self._list_lts_logs_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_lts_logs_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/lts-logs", + "request_type": request.__class__.__name__, + "response_type": "ListLtsLogsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + 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_monitor_indicator_data_async(self, request): + """openApi查询历史监控数据 + + openApi查询历史监控数据 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListMonitorIndicatorData + :type request: :class:`huaweicloudsdkdws.v2.ListMonitorIndicatorDataRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListMonitorIndicatorDataResponse` + """ + http_info = self._list_monitor_indicator_data_http_info(request) + return self._call_api(**http_info) + + def list_monitor_indicator_data_async_invoker(self, request): + http_info = self._list_monitor_indicator_data_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_monitor_indicator_data_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1.0/{project_id}/dms/metric-data", + "request_type": request.__class__.__name__, + "response_type": "ListMonitorIndicatorDataResponse" + } + + 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 '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'function' in local_var_params: query_params.append(('function', local_var_params['function'])) if 'period' in local_var_params: query_params.append(('period', local_var_params['period'])) @@ -4877,19 +5779,82 @@ def list_node_types_async(self, request): :type request: :class:`huaweicloudsdkdws.v2.ListNodeTypesRequest` :rtype: :class:`huaweicloudsdkdws.v2.ListNodeTypesResponse` """ - http_info = self._list_node_types_http_info(request) + http_info = self._list_node_types_http_info(request) + return self._call_api(**http_info) + + def list_node_types_async_invoker(self, request): + http_info = self._list_node_types_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_node_types_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/node-types", + "request_type": request.__class__.__name__, + "response_type": "ListNodeTypesResponse" + } + + 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 = {} + + 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_queries_async(self, request): + """查询SQL列表 + + 该接口用于查询实时SQL列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListQueries + :type request: :class:`huaweicloudsdkdws.v2.ListQueriesRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListQueriesResponse` + """ + http_info = self._list_queries_http_info(request) return self._call_api(**http_info) - def list_node_types_async_invoker(self, request): - http_info = self._list_node_types_http_info(request) + def list_queries_async_invoker(self, request): + http_info = self._list_queries_http_info(request) return AsyncInvoker(self, http_info) - def _list_node_types_http_info(self, request): + def _list_queries_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v2/{project_id}/node-types", + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/dms/queries", "request_type": request.__class__.__name__, - "response_type": "ListNodeTypesResponse" + "response_type": "ListQueriesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4899,6 +5864,8 @@ def _list_node_types_http_info(self, request): collection_formats = {} path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] @@ -4907,13 +5874,15 @@ def _list_node_types_http_info(self, request): 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']) + ['application/json;charset=UTF-8']) auth_settings = [] @@ -5448,6 +6417,85 @@ def _list_statistics_http_info(self, request): return http_info + def list_tables_statistic_async(self, request): + """查询表倾斜或脏页率信息 + + 该接口用于查询表倾斜或脏页率信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListTablesStatistic + :type request: :class:`huaweicloudsdkdws.v2.ListTablesStatisticRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListTablesStatisticResponse` + """ + http_info = self._list_tables_statistic_http_info(request) + return self._call_api(**http_info) + + def list_tables_statistic_async_invoker(self, request): + http_info = self._list_tables_statistic_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_tables_statistic_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/dms/tables/statistic", + "request_type": request.__class__.__name__, + "response_type": "ListTablesStatisticResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'rate_type' in local_var_params: + query_params.append(('rate_type', local_var_params['rate_type'])) + 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 'order_by' in local_var_params: + query_params.append(('order_by', local_var_params['order_by'])) + if 'sort_by' in local_var_params: + query_params.append(('sort_by', local_var_params['sort_by'])) + if 'filter' in local_var_params: + query_params.append(('filter', local_var_params['filter'])) + if 'value' in local_var_params: + query_params.append(('value', local_var_params['value'])) + + 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_tags_async(self, request): """查询项目标签 @@ -5511,6 +6559,75 @@ def _list_tags_http_info(self, request): return http_info + def list_topo_rings_async(self, request): + """查询集群拓扑ring环节点信息 + + 查询集群拓扑ring环节点信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListTopoRings + :type request: :class:`huaweicloudsdkdws.v2.ListTopoRingsRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListTopoRingsResponse` + """ + http_info = self._list_topo_rings_http_info(request) + return self._call_api(**http_info) + + def list_topo_rings_async_invoker(self, request): + http_info = self._list_topo_rings_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_topo_rings_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/topo/rings", + "request_type": request.__class__.__name__, + "response_type": "ListTopoRingsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + 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'])) + + 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_updatable_version_async(self, request): """获取集群可升级的目标版本 @@ -5801,9 +6918,143 @@ def reset_password_async_invoker(self, request): def _reset_password_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/reset-password", + "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/reset-password", + "request_type": request.__class__.__name__, + "response_type": "ResetPasswordResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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 resize_cluster_async(self, request): + """扩容集群调整集群大小 + + 此接口用于扩容集群。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ResizeCluster + :type request: :class:`huaweicloudsdkdws.v2.ResizeClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ResizeClusterResponse` + """ + http_info = self._resize_cluster_http_info(request) + return self._call_api(**http_info) + + def resize_cluster_async_invoker(self, request): + http_info = self._resize_cluster_http_info(request) + return AsyncInvoker(self, http_info) + + def _resize_cluster_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/resize", + "request_type": request.__class__.__name__, + "response_type": "ResizeClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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 resize_cluster_with_existed_nodes_async(self, request): + """从空闲节点扩容 + + 此接口用于从空闲节点扩容。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ResizeClusterWithExistedNodes + :type request: :class:`huaweicloudsdkdws.v2.ResizeClusterWithExistedNodesRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ResizeClusterWithExistedNodesResponse` + """ + http_info = self._resize_cluster_with_existed_nodes_http_info(request) + return self._call_api(**http_info) + + def resize_cluster_with_existed_nodes_async_invoker(self, request): + http_info = self._resize_cluster_with_existed_nodes_http_info(request) + return AsyncInvoker(self, http_info) + + def _resize_cluster_with_existed_nodes_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/resize-with-existed-nodes", "request_type": request.__class__.__name__, - "response_type": "ResetPasswordResponse" + "response_type": "ResizeClusterWithExistedNodesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5846,31 +7097,31 @@ def _reset_password_http_info(self, request): return http_info - def resize_cluster_async(self, request): - """扩容集群调整集群大小 + def restart_cluster_async(self, request): + """重启集群 - 此接口用于扩容集群。 + 此接口用于重启集群。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ResizeCluster - :type request: :class:`huaweicloudsdkdws.v2.ResizeClusterRequest` - :rtype: :class:`huaweicloudsdkdws.v2.ResizeClusterResponse` + :param request: Request instance for RestartCluster + :type request: :class:`huaweicloudsdkdws.v2.RestartClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.RestartClusterResponse` """ - http_info = self._resize_cluster_http_info(request) + http_info = self._restart_cluster_http_info(request) return self._call_api(**http_info) - def resize_cluster_async_invoker(self, request): - http_info = self._resize_cluster_http_info(request) + def restart_cluster_async_invoker(self, request): + http_info = self._restart_cluster_http_info(request) return AsyncInvoker(self, http_info) - def _resize_cluster_http_info(self, request): + def _restart_cluster_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/resize", + "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/restart", "request_type": request.__class__.__name__, - "response_type": "ResizeClusterResponse" + "response_type": "RestartClusterResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5913,31 +7164,31 @@ def _resize_cluster_http_info(self, request): return http_info - def restart_cluster_async(self, request): - """重启集群 + def restart_logical_cluster_async(self, request): + """重启逻辑集群 - 此接口用于重启集群。 + 此接口用于重启逻辑集群。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RestartCluster - :type request: :class:`huaweicloudsdkdws.v2.RestartClusterRequest` - :rtype: :class:`huaweicloudsdkdws.v2.RestartClusterResponse` + :param request: Request instance for RestartLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.RestartLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.RestartLogicalClusterResponse` """ - http_info = self._restart_cluster_http_info(request) + http_info = self._restart_logical_cluster_http_info(request) return self._call_api(**http_info) - def restart_cluster_async_invoker(self, request): - http_info = self._restart_cluster_http_info(request) + def restart_logical_cluster_async_invoker(self, request): + http_info = self._restart_logical_cluster_http_info(request) return AsyncInvoker(self, http_info) - def _restart_cluster_http_info(self, request): + def _restart_logical_cluster_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/restart", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/{logical_cluster_id}/restart", "request_type": request.__class__.__name__, - "response_type": "RestartClusterResponse" + "response_type": "RestartLogicalClusterResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5949,6 +7200,8 @@ def _restart_cluster_http_info(self, request): path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] + if 'logical_cluster_id' in local_var_params: + path_params['logical_cluster_id'] = local_var_params['logical_cluster_id'] query_params = [] @@ -5957,15 +7210,13 @@ def _restart_cluster_http_info(self, request): 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;charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -6112,6 +7363,71 @@ def _restore_disaster_http_info(self, request): return http_info + def restore_redistribution_async(self, request): + """恢复重分布 + + 此接口用于恢复重分布。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RestoreRedistribution + :type request: :class:`huaweicloudsdkdws.v2.RestoreRedistributionRequest` + :rtype: :class:`huaweicloudsdkdws.v2.RestoreRedistributionResponse` + """ + http_info = self._restore_redistribution_http_info(request) + return self._call_api(**http_info) + + def restore_redistribution_async_invoker(self, request): + http_info = self._restore_redistribution_http_info(request) + return AsyncInvoker(self, http_info) + + def _restore_redistribution_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/redistribution/recovery", + "request_type": request.__class__.__name__, + "response_type": "RestoreRedistributionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 restore_table_async(self, request): """恢复表 @@ -6726,6 +8042,75 @@ def _show_instance_http_info(self, request): return http_info + def show_query_detail_async(self, request): + """查询SQL执行信息 + + 查询SQL执行信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowQueryDetail + :type request: :class:`huaweicloudsdkdws.v2.ShowQueryDetailRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ShowQueryDetailResponse` + """ + http_info = self._show_query_detail_http_info(request) + return self._call_api(**http_info) + + def show_query_detail_async_invoker(self, request): + http_info = self._show_query_detail_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_query_detail_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/dms/queries/{query_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowQueryDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'query_id' in local_var_params: + path_params['query_id'] = local_var_params['query_id'] + + query_params = [] + if 'ctime' in local_var_params: + query_params.append(('ctime', local_var_params['ctime'])) + + 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_workload_plan_async(self, request): """查询某个工作负载计划详细信息 @@ -6992,6 +8377,71 @@ def _start_workload_plan_http_info(self, request): return http_info + def stop_redistribution_async(self, request): + """暂停重分布 + + 此接口用于暂停重分布。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for StopRedistribution + :type request: :class:`huaweicloudsdkdws.v2.StopRedistributionRequest` + :rtype: :class:`huaweicloudsdkdws.v2.StopRedistributionResponse` + """ + http_info = self._stop_redistribution_http_info(request) + return self._call_api(**http_info) + + def stop_redistribution_async_invoker(self, request): + http_info = self._stop_redistribution_http_info(request) + return AsyncInvoker(self, http_info) + + def _stop_redistribution_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/redistribution/suspend", + "request_type": request.__class__.__name__, + "response_type": "StopRedistributionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 stop_workload_plan_async(self, request): """停止工作负载计划 @@ -7863,6 +9313,75 @@ def _update_event_sub_http_info(self, request): return http_info + def update_logical_cluster_async(self, request): + """编辑逻辑集群 + + 此接口用于编辑修改逻辑集群。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.UpdateLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.UpdateLogicalClusterResponse` + """ + http_info = self._update_logical_cluster_http_info(request) + return self._call_api(**http_info) + + def update_logical_cluster_async_invoker(self, request): + http_info = self._update_logical_cluster_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_logical_cluster_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/{logical_cluster_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateLogicalClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'logical_cluster_id' in local_var_params: + path_params['logical_cluster_id'] = local_var_params['logical_cluster_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;charset=UTF-8']) + + 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_maintenance_window_async(self, request): """修改运维时间窗 diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py index a47bffc869..d53fa4e4ab 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py @@ -841,6 +841,73 @@ def _check_table_restore_http_info(cls, request): return http_info + def convert_to_logical_cluster(self, request): + """物理集群转换到逻辑集群 + + 逻辑集群-物理集群转换到逻辑集群 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ConvertToLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.ConvertToLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ConvertToLogicalClusterResponse` + """ + http_info = self._convert_to_logical_cluster_http_info(request) + return self._call_api(**http_info) + + def convert_to_logical_cluster_invoker(self, request): + http_info = self._convert_to_logical_cluster_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _convert_to_logical_cluster_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/convert-to-logical-cluster/{name}", + "request_type": request.__class__.__name__, + "response_type": "ConvertToLogicalClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] + + 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 copy_snapshot(self, request): """复制快照 @@ -1438,6 +1505,73 @@ def _create_event_sub_http_info(cls, request): return http_info + def create_logical_cluster(self, request): + """创建逻辑集群 + + 逻辑集群-创建逻辑集群 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.CreateLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.CreateLogicalClusterResponse` + """ + http_info = self._create_logical_cluster_http_info(request) + return self._call_api(**http_info) + + def create_logical_cluster_invoker(self, request): + http_info = self._create_logical_cluster_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_logical_cluster_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters", + "request_type": request.__class__.__name__, + "response_type": "CreateLogicalClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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_snapshot(self, request): """创建快照 @@ -1836,6 +1970,73 @@ def _delete_cluster_dns_http_info(cls, request): return http_info + def delete_cluster_nodes(self, request): + """删除节点 + + 此接口用于删除节点。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteClusterNodes + :type request: :class:`huaweicloudsdkdws.v2.DeleteClusterNodesRequest` + :rtype: :class:`huaweicloudsdkdws.v2.DeleteClusterNodesResponse` + """ + http_info = self._delete_cluster_nodes_http_info(request) + return self._call_api(**http_info) + + def delete_cluster_nodes_invoker(self, request): + http_info = self._delete_cluster_nodes_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_cluster_nodes_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/nodes/delete", + "request_type": request.__class__.__name__, + "response_type": "DeleteClusterNodesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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_data_source(self, request): """删除数据源 @@ -2033,6 +2234,73 @@ def _delete_event_sub_http_info(cls, request): return http_info + def delete_logical_cluster(self, request): + """删除逻辑集群 + + 此接口用于删除逻辑集群。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.DeleteLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.DeleteLogicalClusterResponse` + """ + http_info = self._delete_logical_cluster_http_info(request) + return self._call_api(**http_info) + + def delete_logical_cluster_invoker(self, request): + http_info = self._delete_logical_cluster_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_logical_cluster_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/{logical_cluster_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteLogicalClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'logical_cluster_id' in local_var_params: + path_params['logical_cluster_id'] = local_var_params['logical_cluster_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_snapshot(self, request): """删除快照 @@ -2366,31 +2634,31 @@ def _delete_workload_queue_http_info(cls, request): return http_info - def disassociate_eip(self, request): - """集群解绑EIP + def disable_lts_logs(self, request): + """关闭云服务日志 - 集群解绑Eip + 该接口用于关闭集群LTS云日志服务 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DisassociateEip - :type request: :class:`huaweicloudsdkdws.v2.DisassociateEipRequest` - :rtype: :class:`huaweicloudsdkdws.v2.DisassociateEipResponse` + :param request: Request instance for DisableLtsLogs + :type request: :class:`huaweicloudsdkdws.v2.DisableLtsLogsRequest` + :rtype: :class:`huaweicloudsdkdws.v2.DisableLtsLogsResponse` """ - http_info = self._disassociate_eip_http_info(request) + http_info = self._disable_lts_logs_http_info(request) return self._call_api(**http_info) - def disassociate_eip_invoker(self, request): - http_info = self._disassociate_eip_http_info(request) + def disable_lts_logs_invoker(self, request): + http_info = self._disable_lts_logs_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _disassociate_eip_http_info(cls, request): + def _disable_lts_logs_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v2/{project_id}/clusters/{cluster_id}/eips/{eip_id}", + "method": "POST", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/lts-logs/disable", "request_type": request.__class__.__name__, - "response_type": "DisassociateEipResponse" + "response_type": "DisableLtsLogsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2402,8 +2670,6 @@ def _disassociate_eip_http_info(cls, request): path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] - if 'eip_id' in local_var_params: - path_params['eip_id'] = local_var_params['eip_id'] query_params = [] @@ -2433,29 +2699,96 @@ def _disassociate_eip_http_info(cls, request): return http_info - def disassociate_elb(self, request): - """集群解绑ELB + def disassociate_eip(self, request): + """集群解绑EIP - 集群解绑Elb接口 + 集群解绑Eip Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DisassociateElb - :type request: :class:`huaweicloudsdkdws.v2.DisassociateElbRequest` - :rtype: :class:`huaweicloudsdkdws.v2.DisassociateElbResponse` + :param request: Request instance for DisassociateEip + :type request: :class:`huaweicloudsdkdws.v2.DisassociateEipRequest` + :rtype: :class:`huaweicloudsdkdws.v2.DisassociateEipResponse` """ - http_info = self._disassociate_elb_http_info(request) + http_info = self._disassociate_eip_http_info(request) return self._call_api(**http_info) - def disassociate_elb_invoker(self, request): - http_info = self._disassociate_elb_http_info(request) + def disassociate_eip_invoker(self, request): + http_info = self._disassociate_eip_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _disassociate_elb_http_info(cls, request): + def _disassociate_eip_http_info(cls, request): http_info = { "method": "DELETE", - "resource_path": "/v2/{project_id}/clusters/{cluster_id}/elbs/{elb_id}", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/eips/{eip_id}", + "request_type": request.__class__.__name__, + "response_type": "DisassociateEipResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'eip_id' in local_var_params: + path_params['eip_id'] = local_var_params['eip_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 disassociate_elb(self, request): + """集群解绑ELB + + 集群解绑Elb接口 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DisassociateElb + :type request: :class:`huaweicloudsdkdws.v2.DisassociateElbRequest` + :rtype: :class:`huaweicloudsdkdws.v2.DisassociateElbResponse` + """ + http_info = self._disassociate_elb_http_info(request) + return self._call_api(**http_info) + + def disassociate_elb_invoker(self, request): + http_info = self._disassociate_elb_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _disassociate_elb_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/elbs/{elb_id}", "request_type": request.__class__.__name__, "response_type": "DisassociateElbResponse" } @@ -2500,6 +2833,138 @@ def _disassociate_elb_http_info(cls, request): return http_info + def enable_logical_cluster(self, request): + """切换逻辑集群开关 + + 此接口用于切换逻辑集群开关。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for EnableLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.EnableLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.EnableLogicalClusterResponse` + """ + http_info = self._enable_logical_cluster_http_info(request) + return self._call_api(**http_info) + + def enable_logical_cluster_invoker(self, request): + http_info = self._enable_logical_cluster_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _enable_logical_cluster_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/enable", + "request_type": request.__class__.__name__, + "response_type": "EnableLogicalClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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 enable_lts_logs(self, request): + """开启云服务日志 + + 该接口用于开启集群LTS云日志服务 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for EnableLtsLogs + :type request: :class:`huaweicloudsdkdws.v2.EnableLtsLogsRequest` + :rtype: :class:`huaweicloudsdkdws.v2.EnableLtsLogsResponse` + """ + http_info = self._enable_lts_logs_http_info(request) + return self._call_api(**http_info) + + def enable_lts_logs_invoker(self, request): + http_info = self._enable_lts_logs_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _enable_lts_logs_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/lts-logs/enable", + "request_type": request.__class__.__name__, + "response_type": "EnableLtsLogsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 execute_cluster_upgrade_action(self, request): """下发集群升级相关操作 @@ -3509,6 +3974,88 @@ def _list_cluster_details_http_info(cls, request): return http_info + def list_cluster_nodes(self, request): + """查询节点列表 + + 查询节点列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListClusterNodes + :type request: :class:`huaweicloudsdkdws.v2.ListClusterNodesRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListClusterNodesResponse` + """ + http_info = self._list_cluster_nodes_http_info(request) + return self._call_api(**http_info) + + def list_cluster_nodes_invoker(self, request): + http_info = self._list_cluster_nodes_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_cluster_nodes_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/nodes", + "request_type": request.__class__.__name__, + "response_type": "ListClusterNodesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'deleted' in local_var_params: + query_params.append(('deleted', local_var_params['deleted'])) + if 'node_ids' in local_var_params: + query_params.append(('node_ids', local_var_params['node_ids'])) + collection_formats['node_ids'] = 'csv' + 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 'filter_by' in local_var_params: + query_params.append(('filter_by', local_var_params['filter_by'])) + if 'filter' in local_var_params: + query_params.append(('filter', local_var_params['filter'])) + if 'order_by' in local_var_params: + query_params.append(('order_by', local_var_params['order_by'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + + 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_cluster_scale_in_numbers(self, request): """查询合适的缩容数 @@ -4485,6 +5032,8 @@ def _list_host_disk_http_info(cls, request): query_params = [] if 'cluster_id' in local_var_params: query_params.append(('cluster_id', local_var_params['cluster_id'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) if 'instance_name' in local_var_params: query_params.append(('instance_name', local_var_params['instance_name'])) if 'limit' in local_var_params: @@ -4725,31 +5274,31 @@ def _list_job_details_http_info(cls, request): return http_info - def list_monitor_indicator_data(self, request): - """openApi查询历史监控数据 + def list_logical_cluster_rings(self, request): + """查询逻辑集群可用ring环节点信息 - openApi查询历史监控数据 + 查询逻辑集群可用ring环节点信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListMonitorIndicatorData - :type request: :class:`huaweicloudsdkdws.v2.ListMonitorIndicatorDataRequest` - :rtype: :class:`huaweicloudsdkdws.v2.ListMonitorIndicatorDataResponse` + :param request: Request instance for ListLogicalClusterRings + :type request: :class:`huaweicloudsdkdws.v2.ListLogicalClusterRingsRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListLogicalClusterRingsResponse` """ - http_info = self._list_monitor_indicator_data_http_info(request) + http_info = self._list_logical_cluster_rings_http_info(request) return self._call_api(**http_info) - def list_monitor_indicator_data_invoker(self, request): - http_info = self._list_monitor_indicator_data_http_info(request) + def list_logical_cluster_rings_invoker(self, request): + http_info = self._list_logical_cluster_rings_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_monitor_indicator_data_http_info(cls, request): + def _list_logical_cluster_rings_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1.0/{project_id}/dms/metric-data", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/rings", "request_type": request.__class__.__name__, - "response_type": "ListMonitorIndicatorDataResponse" + "response_type": "ListLogicalClusterRingsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4759,13 +5308,366 @@ def _list_monitor_indicator_data_http_info(cls, request): collection_formats = {} path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] - if '_from' in local_var_params: - query_params.append(('from', local_var_params['_from'])) - if 'to' in local_var_params: - query_params.append(('to', local_var_params['to'])) - if 'function' in local_var_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'])) + + 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_logical_cluster_tasks(self, request): + """查询逻辑集群任务信息 + + 逻辑集群-查询逻辑集群任务信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListLogicalClusterTasks + :type request: :class:`huaweicloudsdkdws.v2.ListLogicalClusterTasksRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListLogicalClusterTasksResponse` + """ + http_info = self._list_logical_cluster_tasks_http_info(request) + return self._call_api(**http_info) + + def list_logical_cluster_tasks_invoker(self, request): + http_info = self._list_logical_cluster_tasks_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_logical_cluster_tasks_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/tasks", + "request_type": request.__class__.__name__, + "response_type": "ListLogicalClusterTasksResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + 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 'logical_cluster_name' in local_var_params: + query_params.append(('logical_cluster_name', local_var_params['logical_cluster_name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'order_by' in local_var_params: + query_params.append(('order_by', local_var_params['order_by'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + + 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_logical_cluster_volumes(self, request): + """查询逻辑集群磁盘信息 + + 逻辑集群-查询逻辑集群磁盘信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListLogicalClusterVolumes + :type request: :class:`huaweicloudsdkdws.v2.ListLogicalClusterVolumesRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListLogicalClusterVolumesResponse` + """ + http_info = self._list_logical_cluster_volumes_http_info(request) + return self._call_api(**http_info) + + def list_logical_cluster_volumes_invoker(self, request): + http_info = self._list_logical_cluster_volumes_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_logical_cluster_volumes_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/volumes", + "request_type": request.__class__.__name__, + "response_type": "ListLogicalClusterVolumesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + 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'])) + + 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_logical_clusters(self, request): + """查询逻辑集群列表 + + 逻辑集群-查询逻辑集群列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListLogicalClusters + :type request: :class:`huaweicloudsdkdws.v2.ListLogicalClustersRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListLogicalClustersResponse` + """ + http_info = self._list_logical_clusters_http_info(request) + return self._call_api(**http_info) + + def list_logical_clusters_invoker(self, request): + http_info = self._list_logical_clusters_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_logical_clusters_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters", + "request_type": request.__class__.__name__, + "response_type": "ListLogicalClustersResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + 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'])) + + 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_lts_logs(self, request): + """获取LTS日志列表 + + 获取LTS日志列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListLtsLogs + :type request: :class:`huaweicloudsdkdws.v2.ListLtsLogsRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListLtsLogsResponse` + """ + http_info = self._list_lts_logs_http_info(request) + return self._call_api(**http_info) + + def list_lts_logs_invoker(self, request): + http_info = self._list_lts_logs_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_lts_logs_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/lts-logs", + "request_type": request.__class__.__name__, + "response_type": "ListLtsLogsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + 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_monitor_indicator_data(self, request): + """openApi查询历史监控数据 + + openApi查询历史监控数据 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListMonitorIndicatorData + :type request: :class:`huaweicloudsdkdws.v2.ListMonitorIndicatorDataRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListMonitorIndicatorDataResponse` + """ + http_info = self._list_monitor_indicator_data_http_info(request) + return self._call_api(**http_info) + + def list_monitor_indicator_data_invoker(self, request): + http_info = self._list_monitor_indicator_data_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_monitor_indicator_data_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1.0/{project_id}/dms/metric-data", + "request_type": request.__class__.__name__, + "response_type": "ListMonitorIndicatorDataResponse" + } + + 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 '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'function' in local_var_params: query_params.append(('function', local_var_params['function'])) if 'period' in local_var_params: query_params.append(('period', local_var_params['period'])) @@ -4876,20 +5778,83 @@ def list_node_types(self, request): :type request: :class:`huaweicloudsdkdws.v2.ListNodeTypesRequest` :rtype: :class:`huaweicloudsdkdws.v2.ListNodeTypesResponse` """ - http_info = self._list_node_types_http_info(request) + http_info = self._list_node_types_http_info(request) + return self._call_api(**http_info) + + def list_node_types_invoker(self, request): + http_info = self._list_node_types_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_node_types_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/node-types", + "request_type": request.__class__.__name__, + "response_type": "ListNodeTypesResponse" + } + + 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 = {} + + 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_queries(self, request): + """查询SQL列表 + + 该接口用于查询实时SQL列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListQueries + :type request: :class:`huaweicloudsdkdws.v2.ListQueriesRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListQueriesResponse` + """ + http_info = self._list_queries_http_info(request) return self._call_api(**http_info) - def list_node_types_invoker(self, request): - http_info = self._list_node_types_http_info(request) + def list_queries_invoker(self, request): + http_info = self._list_queries_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_node_types_http_info(cls, request): + def _list_queries_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v2/{project_id}/node-types", + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/dms/queries", "request_type": request.__class__.__name__, - "response_type": "ListNodeTypesResponse" + "response_type": "ListQueriesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4899,6 +5864,8 @@ def _list_node_types_http_info(cls, request): collection_formats = {} path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] query_params = [] @@ -4907,13 +5874,15 @@ def _list_node_types_http_info(cls, request): 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']) + ['application/json;charset=UTF-8']) auth_settings = [] @@ -5448,6 +6417,85 @@ def _list_statistics_http_info(cls, request): return http_info + def list_tables_statistic(self, request): + """查询表倾斜或脏页率信息 + + 该接口用于查询表倾斜或脏页率信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListTablesStatistic + :type request: :class:`huaweicloudsdkdws.v2.ListTablesStatisticRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListTablesStatisticResponse` + """ + http_info = self._list_tables_statistic_http_info(request) + return self._call_api(**http_info) + + def list_tables_statistic_invoker(self, request): + http_info = self._list_tables_statistic_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_tables_statistic_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/dms/tables/statistic", + "request_type": request.__class__.__name__, + "response_type": "ListTablesStatisticResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'rate_type' in local_var_params: + query_params.append(('rate_type', local_var_params['rate_type'])) + 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 'order_by' in local_var_params: + query_params.append(('order_by', local_var_params['order_by'])) + if 'sort_by' in local_var_params: + query_params.append(('sort_by', local_var_params['sort_by'])) + if 'filter' in local_var_params: + query_params.append(('filter', local_var_params['filter'])) + if 'value' in local_var_params: + query_params.append(('value', local_var_params['value'])) + + 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_tags(self, request): """查询项目标签 @@ -5511,6 +6559,75 @@ def _list_tags_http_info(cls, request): return http_info + def list_topo_rings(self, request): + """查询集群拓扑ring环节点信息 + + 查询集群拓扑ring环节点信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListTopoRings + :type request: :class:`huaweicloudsdkdws.v2.ListTopoRingsRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListTopoRingsResponse` + """ + http_info = self._list_topo_rings_http_info(request) + return self._call_api(**http_info) + + def list_topo_rings_invoker(self, request): + http_info = self._list_topo_rings_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_topo_rings_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/topo/rings", + "request_type": request.__class__.__name__, + "response_type": "ListTopoRingsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + 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'])) + + 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_updatable_version(self, request): """获取集群可升级的目标版本 @@ -5801,9 +6918,143 @@ def reset_password_invoker(self, request): def _reset_password_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/reset-password", + "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/reset-password", + "request_type": request.__class__.__name__, + "response_type": "ResetPasswordResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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 resize_cluster(self, request): + """扩容集群调整集群大小 + + 此接口用于扩容集群。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ResizeCluster + :type request: :class:`huaweicloudsdkdws.v2.ResizeClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ResizeClusterResponse` + """ + http_info = self._resize_cluster_http_info(request) + return self._call_api(**http_info) + + def resize_cluster_invoker(self, request): + http_info = self._resize_cluster_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _resize_cluster_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/resize", + "request_type": request.__class__.__name__, + "response_type": "ResizeClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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 resize_cluster_with_existed_nodes(self, request): + """从空闲节点扩容 + + 此接口用于从空闲节点扩容。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ResizeClusterWithExistedNodes + :type request: :class:`huaweicloudsdkdws.v2.ResizeClusterWithExistedNodesRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ResizeClusterWithExistedNodesResponse` + """ + http_info = self._resize_cluster_with_existed_nodes_http_info(request) + return self._call_api(**http_info) + + def resize_cluster_with_existed_nodes_invoker(self, request): + http_info = self._resize_cluster_with_existed_nodes_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _resize_cluster_with_existed_nodes_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/resize-with-existed-nodes", "request_type": request.__class__.__name__, - "response_type": "ResetPasswordResponse" + "response_type": "ResizeClusterWithExistedNodesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5846,31 +7097,31 @@ def _reset_password_http_info(cls, request): return http_info - def resize_cluster(self, request): - """扩容集群调整集群大小 + def restart_cluster(self, request): + """重启集群 - 此接口用于扩容集群。 + 此接口用于重启集群。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ResizeCluster - :type request: :class:`huaweicloudsdkdws.v2.ResizeClusterRequest` - :rtype: :class:`huaweicloudsdkdws.v2.ResizeClusterResponse` + :param request: Request instance for RestartCluster + :type request: :class:`huaweicloudsdkdws.v2.RestartClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.RestartClusterResponse` """ - http_info = self._resize_cluster_http_info(request) + http_info = self._restart_cluster_http_info(request) return self._call_api(**http_info) - def resize_cluster_invoker(self, request): - http_info = self._resize_cluster_http_info(request) + def restart_cluster_invoker(self, request): + http_info = self._restart_cluster_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _resize_cluster_http_info(cls, request): + def _restart_cluster_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/resize", + "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/restart", "request_type": request.__class__.__name__, - "response_type": "ResizeClusterResponse" + "response_type": "RestartClusterResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5913,31 +7164,31 @@ def _resize_cluster_http_info(cls, request): return http_info - def restart_cluster(self, request): - """重启集群 + def restart_logical_cluster(self, request): + """重启逻辑集群 - 此接口用于重启集群。 + 此接口用于重启逻辑集群。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RestartCluster - :type request: :class:`huaweicloudsdkdws.v2.RestartClusterRequest` - :rtype: :class:`huaweicloudsdkdws.v2.RestartClusterResponse` + :param request: Request instance for RestartLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.RestartLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.RestartLogicalClusterResponse` """ - http_info = self._restart_cluster_http_info(request) + http_info = self._restart_logical_cluster_http_info(request) return self._call_api(**http_info) - def restart_cluster_invoker(self, request): - http_info = self._restart_cluster_http_info(request) + def restart_logical_cluster_invoker(self, request): + http_info = self._restart_logical_cluster_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _restart_cluster_http_info(cls, request): + def _restart_logical_cluster_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1.0/{project_id}/clusters/{cluster_id}/restart", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/{logical_cluster_id}/restart", "request_type": request.__class__.__name__, - "response_type": "RestartClusterResponse" + "response_type": "RestartLogicalClusterResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5949,6 +7200,8 @@ def _restart_cluster_http_info(cls, request): path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] + if 'logical_cluster_id' in local_var_params: + path_params['logical_cluster_id'] = local_var_params['logical_cluster_id'] query_params = [] @@ -5957,15 +7210,13 @@ def _restart_cluster_http_info(cls, request): 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;charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -6112,6 +7363,71 @@ def _restore_disaster_http_info(cls, request): return http_info + def restore_redistribution(self, request): + """恢复重分布 + + 此接口用于恢复重分布。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RestoreRedistribution + :type request: :class:`huaweicloudsdkdws.v2.RestoreRedistributionRequest` + :rtype: :class:`huaweicloudsdkdws.v2.RestoreRedistributionResponse` + """ + http_info = self._restore_redistribution_http_info(request) + return self._call_api(**http_info) + + def restore_redistribution_invoker(self, request): + http_info = self._restore_redistribution_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _restore_redistribution_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/redistribution/recovery", + "request_type": request.__class__.__name__, + "response_type": "RestoreRedistributionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 restore_table(self, request): """恢复表 @@ -6726,6 +8042,75 @@ def _show_instance_http_info(cls, request): return http_info + def show_query_detail(self, request): + """查询SQL执行信息 + + 查询SQL执行信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowQueryDetail + :type request: :class:`huaweicloudsdkdws.v2.ShowQueryDetailRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ShowQueryDetailResponse` + """ + http_info = self._show_query_detail_http_info(request) + return self._call_api(**http_info) + + def show_query_detail_invoker(self, request): + http_info = self._show_query_detail_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_query_detail_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/dms/queries/{query_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowQueryDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'query_id' in local_var_params: + path_params['query_id'] = local_var_params['query_id'] + + query_params = [] + if 'ctime' in local_var_params: + query_params.append(('ctime', local_var_params['ctime'])) + + 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_workload_plan(self, request): """查询某个工作负载计划详细信息 @@ -6992,6 +8377,71 @@ def _start_workload_plan_http_info(cls, request): return http_info + def stop_redistribution(self, request): + """暂停重分布 + + 此接口用于暂停重分布。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for StopRedistribution + :type request: :class:`huaweicloudsdkdws.v2.StopRedistributionRequest` + :rtype: :class:`huaweicloudsdkdws.v2.StopRedistributionResponse` + """ + http_info = self._stop_redistribution_http_info(request) + return self._call_api(**http_info) + + def stop_redistribution_invoker(self, request): + http_info = self._stop_redistribution_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _stop_redistribution_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/redistribution/suspend", + "request_type": request.__class__.__name__, + "response_type": "StopRedistributionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 stop_workload_plan(self, request): """停止工作负载计划 @@ -7863,6 +9313,75 @@ def _update_event_sub_http_info(cls, request): return http_info + def update_logical_cluster(self, request): + """编辑逻辑集群 + + 此接口用于编辑修改逻辑集群。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateLogicalCluster + :type request: :class:`huaweicloudsdkdws.v2.UpdateLogicalClusterRequest` + :rtype: :class:`huaweicloudsdkdws.v2.UpdateLogicalClusterResponse` + """ + http_info = self._update_logical_cluster_http_info(request) + return self._call_api(**http_info) + + def update_logical_cluster_invoker(self, request): + http_info = self._update_logical_cluster_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_logical_cluster_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/logical-clusters/{logical_cluster_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateLogicalClusterResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'logical_cluster_id' in local_var_params: + path_params['logical_cluster_id'] = local_var_params['logical_cluster_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;charset=UTF-8']) + + 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_maintenance_window(self, request): """修改运维时间窗 diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py index 079bb71c92..a3a304d062 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py @@ -3,6 +3,7 @@ from __future__ import absolute_import # import models into model package +from huaweicloudsdkdws.v2.model.action_info import ActionInfo from huaweicloudsdkdws.v2.model.add_snapshot_cross_region_policy_request import AddSnapshotCrossRegionPolicyRequest from huaweicloudsdkdws.v2.model.add_snapshot_cross_region_policy_request_body import AddSnapshotCrossRegionPolicyRequestBody from huaweicloudsdkdws.v2.model.add_snapshot_cross_region_policy_response import AddSnapshotCrossRegionPolicyResponse @@ -36,6 +37,7 @@ from huaweicloudsdkdws.v2.model.batch_delete_resource_tag_request import BatchDeleteResourceTagRequest from huaweicloudsdkdws.v2.model.batch_delete_resource_tag_response import BatchDeleteResourceTagResponse from huaweicloudsdkdws.v2.model.batch_delete_resource_tags import BatchDeleteResourceTags +from huaweicloudsdkdws.v2.model.build_task_info import BuildTaskInfo from huaweicloudsdkdws.v2.model.cancel_readonly_cluster_request import CancelReadonlyClusterRequest from huaweicloudsdkdws.v2.model.cancel_readonly_cluster_response import CancelReadonlyClusterResponse from huaweicloudsdkdws.v2.model.check_cluster_request import CheckClusterRequest @@ -56,7 +58,9 @@ from huaweicloudsdkdws.v2.model.cluster_elb_info import ClusterElbInfo from huaweicloudsdkdws.v2.model.cluster_flavor_resp import ClusterFlavorResp from huaweicloudsdkdws.v2.model.cluster_info import ClusterInfo +from huaweicloudsdkdws.v2.model.cluster_node_info import ClusterNodeInfo from huaweicloudsdkdws.v2.model.cluster_recovery_progress import ClusterRecoveryProgress +from huaweicloudsdkdws.v2.model.cluster_ring import ClusterRing from huaweicloudsdkdws.v2.model.cluster_shrink_req import ClusterShrinkReq from huaweicloudsdkdws.v2.model.cluster_snapshots import ClusterSnapshots from huaweicloudsdkdws.v2.model.cluster_update_record_resp import ClusterUpdateRecordResp @@ -70,6 +74,8 @@ from huaweicloudsdkdws.v2.model.configuration_parameter_value import ConfigurationParameterValue from huaweicloudsdkdws.v2.model.configuration_parameter_values import ConfigurationParameterValues from huaweicloudsdkdws.v2.model.configuration_record_resp import ConfigurationRecordResp +from huaweicloudsdkdws.v2.model.convert_to_logical_cluster_request import ConvertToLogicalClusterRequest +from huaweicloudsdkdws.v2.model.convert_to_logical_cluster_response import ConvertToLogicalClusterResponse from huaweicloudsdkdws.v2.model.coordinator_node import CoordinatorNode from huaweicloudsdkdws.v2.model.copy_snapshot_request import CopySnapshotRequest from huaweicloudsdkdws.v2.model.copy_snapshot_response import CopySnapshotResponse @@ -94,6 +100,10 @@ from huaweicloudsdkdws.v2.model.create_disaster_recovery_response import CreateDisasterRecoveryResponse from huaweicloudsdkdws.v2.model.create_event_sub_request import CreateEventSubRequest from huaweicloudsdkdws.v2.model.create_event_sub_response import CreateEventSubResponse +from huaweicloudsdkdws.v2.model.create_logical_cluster_info import CreateLogicalClusterInfo +from huaweicloudsdkdws.v2.model.create_logical_cluster_request import CreateLogicalClusterRequest +from huaweicloudsdkdws.v2.model.create_logical_cluster_request_body import CreateLogicalClusterRequestBody +from huaweicloudsdkdws.v2.model.create_logical_cluster_response import CreateLogicalClusterResponse from huaweicloudsdkdws.v2.model.create_snapshot_policy_request import CreateSnapshotPolicyRequest from huaweicloudsdkdws.v2.model.create_snapshot_policy_response import CreateSnapshotPolicyResponse from huaweicloudsdkdws.v2.model.create_snapshot_request import CreateSnapshotRequest @@ -112,6 +122,9 @@ from huaweicloudsdkdws.v2.model.delete_alarm_sub_response import DeleteAlarmSubResponse from huaweicloudsdkdws.v2.model.delete_cluster_dns_request import DeleteClusterDnsRequest from huaweicloudsdkdws.v2.model.delete_cluster_dns_response import DeleteClusterDnsResponse +from huaweicloudsdkdws.v2.model.delete_cluster_nodes_request import DeleteClusterNodesRequest +from huaweicloudsdkdws.v2.model.delete_cluster_nodes_request_body import DeleteClusterNodesRequestBody +from huaweicloudsdkdws.v2.model.delete_cluster_nodes_response import DeleteClusterNodesResponse from huaweicloudsdkdws.v2.model.delete_cluster_request import DeleteClusterRequest from huaweicloudsdkdws.v2.model.delete_cluster_request_body import DeleteClusterRequestBody from huaweicloudsdkdws.v2.model.delete_cluster_response import DeleteClusterResponse @@ -121,6 +134,8 @@ from huaweicloudsdkdws.v2.model.delete_disaster_recovery_response import DeleteDisasterRecoveryResponse from huaweicloudsdkdws.v2.model.delete_event_sub_request import DeleteEventSubRequest from huaweicloudsdkdws.v2.model.delete_event_sub_response import DeleteEventSubResponse +from huaweicloudsdkdws.v2.model.delete_logical_cluster_request import DeleteLogicalClusterRequest +from huaweicloudsdkdws.v2.model.delete_logical_cluster_response import DeleteLogicalClusterResponse from huaweicloudsdkdws.v2.model.delete_snapshot_cross_region_policy_request import DeleteSnapshotCrossRegionPolicyRequest from huaweicloudsdkdws.v2.model.delete_snapshot_cross_region_policy_response import DeleteSnapshotCrossRegionPolicyResponse from huaweicloudsdkdws.v2.model.delete_snapshot_policy_request import DeleteSnapshotPolicyRequest @@ -132,6 +147,8 @@ from huaweicloudsdkdws.v2.model.delete_workload_queue_request import DeleteWorkloadQueueRequest from huaweicloudsdkdws.v2.model.delete_workload_queue_response import DeleteWorkloadQueueResponse from huaweicloudsdkdws.v2.model.detail import Detail +from huaweicloudsdkdws.v2.model.disable_lts_logs_request import DisableLtsLogsRequest +from huaweicloudsdkdws.v2.model.disable_lts_logs_response import DisableLtsLogsResponse from huaweicloudsdkdws.v2.model.disassociate_eip_request import DisassociateEipRequest from huaweicloudsdkdws.v2.model.disassociate_eip_response import DisassociateEipResponse from huaweicloudsdkdws.v2.model.disassociate_elb_request import DisassociateElbRequest @@ -144,6 +161,11 @@ from huaweicloudsdkdws.v2.model.disk_resp import DiskResp from huaweicloudsdkdws.v2.model.dss_pool import DssPool from huaweicloudsdkdws.v2.model.elb_resp import ElbResp +from huaweicloudsdkdws.v2.model.enable_logical_cluster_request import EnableLogicalClusterRequest +from huaweicloudsdkdws.v2.model.enable_logical_cluster_request_body import EnableLogicalClusterRequestBody +from huaweicloudsdkdws.v2.model.enable_logical_cluster_response import EnableLogicalClusterResponse +from huaweicloudsdkdws.v2.model.enable_lts_logs_request import EnableLtsLogsRequest +from huaweicloudsdkdws.v2.model.enable_lts_logs_response import EnableLtsLogsResponse from huaweicloudsdkdws.v2.model.endpoints import Endpoints from huaweicloudsdkdws.v2.model.event_response import EventResponse from huaweicloudsdkdws.v2.model.event_spec_response import EventSpecResponse @@ -191,6 +213,8 @@ from huaweicloudsdkdws.v2.model.list_cluster_configurations_response import ListClusterConfigurationsResponse from huaweicloudsdkdws.v2.model.list_cluster_details_request import ListClusterDetailsRequest from huaweicloudsdkdws.v2.model.list_cluster_details_response import ListClusterDetailsResponse +from huaweicloudsdkdws.v2.model.list_cluster_nodes_request import ListClusterNodesRequest +from huaweicloudsdkdws.v2.model.list_cluster_nodes_response import ListClusterNodesResponse from huaweicloudsdkdws.v2.model.list_cluster_scale_in_numbers_request import ListClusterScaleInNumbersRequest from huaweicloudsdkdws.v2.model.list_cluster_scale_in_numbers_response import ListClusterScaleInNumbersResponse from huaweicloudsdkdws.v2.model.list_cluster_snapshots_request import ListClusterSnapshotsRequest @@ -227,12 +251,29 @@ from huaweicloudsdkdws.v2.model.list_host_overview_response import ListHostOverviewResponse from huaweicloudsdkdws.v2.model.list_job_details_request import ListJobDetailsRequest from huaweicloudsdkdws.v2.model.list_job_details_response import ListJobDetailsResponse +from huaweicloudsdkdws.v2.model.list_logical_cluster_rings_request import ListLogicalClusterRingsRequest +from huaweicloudsdkdws.v2.model.list_logical_cluster_rings_response import ListLogicalClusterRingsResponse +from huaweicloudsdkdws.v2.model.list_logical_cluster_tasks_request import ListLogicalClusterTasksRequest +from huaweicloudsdkdws.v2.model.list_logical_cluster_tasks_response import ListLogicalClusterTasksResponse +from huaweicloudsdkdws.v2.model.list_logical_cluster_volumes_request import ListLogicalClusterVolumesRequest +from huaweicloudsdkdws.v2.model.list_logical_cluster_volumes_response import ListLogicalClusterVolumesResponse +from huaweicloudsdkdws.v2.model.list_logical_clusters_request import ListLogicalClustersRequest +from huaweicloudsdkdws.v2.model.list_logical_clusters_response import ListLogicalClustersResponse +from huaweicloudsdkdws.v2.model.list_lts_logs_request import ListLtsLogsRequest +from huaweicloudsdkdws.v2.model.list_lts_logs_response import ListLtsLogsResponse from huaweicloudsdkdws.v2.model.list_monitor_indicator_data_request import ListMonitorIndicatorDataRequest from huaweicloudsdkdws.v2.model.list_monitor_indicator_data_response import ListMonitorIndicatorDataResponse from huaweicloudsdkdws.v2.model.list_monitor_indicators_request import ListMonitorIndicatorsRequest from huaweicloudsdkdws.v2.model.list_monitor_indicators_response import ListMonitorIndicatorsResponse from huaweicloudsdkdws.v2.model.list_node_types_request import ListNodeTypesRequest from huaweicloudsdkdws.v2.model.list_node_types_response import ListNodeTypesResponse +from huaweicloudsdkdws.v2.model.list_queries_condition import ListQueriesCondition +from huaweicloudsdkdws.v2.model.list_queries_data import ListQueriesData +from huaweicloudsdkdws.v2.model.list_queries_dto import ListQueriesDto +from huaweicloudsdkdws.v2.model.list_queries_request import ListQueriesRequest +from huaweicloudsdkdws.v2.model.list_queries_request_body import ListQueriesRequestBody +from huaweicloudsdkdws.v2.model.list_queries_response import ListQueriesResponse +from huaweicloudsdkdws.v2.model.list_queries_status import ListQueriesStatus from huaweicloudsdkdws.v2.model.list_quotas_request import ListQuotasRequest from huaweicloudsdkdws.v2.model.list_quotas_response import ListQuotasResponse from huaweicloudsdkdws.v2.model.list_snapshot_cross_region_policy_request import ListSnapshotCrossRegionPolicyRequest @@ -249,14 +290,24 @@ from huaweicloudsdkdws.v2.model.list_snapshots_response import ListSnapshotsResponse from huaweicloudsdkdws.v2.model.list_statistics_request import ListStatisticsRequest from huaweicloudsdkdws.v2.model.list_statistics_response import ListStatisticsResponse +from huaweicloudsdkdws.v2.model.list_tables_statistic_dto import ListTablesStatisticDto +from huaweicloudsdkdws.v2.model.list_tables_statistic_request import ListTablesStatisticRequest +from huaweicloudsdkdws.v2.model.list_tables_statistic_response import ListTablesStatisticResponse from huaweicloudsdkdws.v2.model.list_tags_request import ListTagsRequest from huaweicloudsdkdws.v2.model.list_tags_response import ListTagsResponse +from huaweicloudsdkdws.v2.model.list_topo_rings_request import ListTopoRingsRequest +from huaweicloudsdkdws.v2.model.list_topo_rings_response import ListTopoRingsResponse from huaweicloudsdkdws.v2.model.list_updatable_version_request import ListUpdatableVersionRequest from huaweicloudsdkdws.v2.model.list_updatable_version_response import ListUpdatableVersionResponse from huaweicloudsdkdws.v2.model.list_update_record_request import ListUpdateRecordRequest from huaweicloudsdkdws.v2.model.list_update_record_response import ListUpdateRecordResponse from huaweicloudsdkdws.v2.model.list_workload_queue_request import ListWorkloadQueueRequest from huaweicloudsdkdws.v2.model.list_workload_queue_response import ListWorkloadQueueResponse +from huaweicloudsdkdws.v2.model.logical_cluster_info import LogicalClusterInfo +from huaweicloudsdkdws.v2.model.logical_cluster_ring_info import LogicalClusterRingInfo +from huaweicloudsdkdws.v2.model.logical_cluster_task_info import LogicalClusterTaskInfo +from huaweicloudsdkdws.v2.model.logical_cluster_volume import LogicalClusterVolume +from huaweicloudsdkdws.v2.model.ltslog_info import LtslogInfo from huaweicloudsdkdws.v2.model.maintain_window import MaintainWindow from huaweicloudsdkdws.v2.model.maintenance_window import MaintenanceWindow from huaweicloudsdkdws.v2.model.modify_cluster_dns import ModifyClusterDns @@ -290,14 +341,20 @@ from huaweicloudsdkdws.v2.model.reset_password_request import ResetPasswordRequest from huaweicloudsdkdws.v2.model.reset_password_request_body import ResetPasswordRequestBody from huaweicloudsdkdws.v2.model.reset_password_response import ResetPasswordResponse +from huaweicloudsdkdws.v2.model.resize import Resize from huaweicloudsdkdws.v2.model.resize_cluster_request import ResizeClusterRequest from huaweicloudsdkdws.v2.model.resize_cluster_request_body import ResizeClusterRequestBody from huaweicloudsdkdws.v2.model.resize_cluster_response import ResizeClusterResponse +from huaweicloudsdkdws.v2.model.resize_cluster_with_existed_nodes_request import ResizeClusterWithExistedNodesRequest +from huaweicloudsdkdws.v2.model.resize_cluster_with_existed_nodes_request_body import ResizeClusterWithExistedNodesRequestBody +from huaweicloudsdkdws.v2.model.resize_cluster_with_existed_nodes_response import ResizeClusterWithExistedNodesResponse from huaweicloudsdkdws.v2.model.resize_info import ResizeInfo from huaweicloudsdkdws.v2.model.resource_tag import ResourceTag from huaweicloudsdkdws.v2.model.restart_cluster_request import RestartClusterRequest from huaweicloudsdkdws.v2.model.restart_cluster_request_body import RestartClusterRequestBody from huaweicloudsdkdws.v2.model.restart_cluster_response import RestartClusterResponse +from huaweicloudsdkdws.v2.model.restart_logical_cluster_request import RestartLogicalClusterRequest +from huaweicloudsdkdws.v2.model.restart_logical_cluster_response import RestartLogicalClusterResponse from huaweicloudsdkdws.v2.model.restore import Restore from huaweicloudsdkdws.v2.model.restore_cluster_request import RestoreClusterRequest from huaweicloudsdkdws.v2.model.restore_cluster_request_body import RestoreClusterRequestBody @@ -305,10 +362,13 @@ from huaweicloudsdkdws.v2.model.restore_disaster_request import RestoreDisasterRequest from huaweicloudsdkdws.v2.model.restore_disaster_response import RestoreDisasterResponse from huaweicloudsdkdws.v2.model.restore_point import RestorePoint +from huaweicloudsdkdws.v2.model.restore_redistribution_request import RestoreRedistributionRequest +from huaweicloudsdkdws.v2.model.restore_redistribution_response import RestoreRedistributionResponse from huaweicloudsdkdws.v2.model.restore_table_request import RestoreTableRequest from huaweicloudsdkdws.v2.model.restore_table_request_body import RestoreTableRequestBody from huaweicloudsdkdws.v2.model.restore_table_response import RestoreTableResponse from huaweicloudsdkdws.v2.model.revoke import Revoke +from huaweicloudsdkdws.v2.model.ring_host import RingHost from huaweicloudsdkdws.v2.model.role_authority import RoleAuthority from huaweicloudsdkdws.v2.model.save_cluster_description_info_request import SaveClusterDescriptionInfoRequest from huaweicloudsdkdws.v2.model.save_cluster_description_info_response import SaveClusterDescriptionInfoResponse @@ -328,6 +388,8 @@ from huaweicloudsdkdws.v2.model.show_disaster_progress_response import ShowDisasterProgressResponse from huaweicloudsdkdws.v2.model.show_instance_request import ShowInstanceRequest from huaweicloudsdkdws.v2.model.show_instance_response import ShowInstanceResponse +from huaweicloudsdkdws.v2.model.show_query_detail_request import ShowQueryDetailRequest +from huaweicloudsdkdws.v2.model.show_query_detail_response import ShowQueryDetailResponse from huaweicloudsdkdws.v2.model.show_workload_plan_request import ShowWorkloadPlanRequest from huaweicloudsdkdws.v2.model.show_workload_plan_response import ShowWorkloadPlanResponse from huaweicloudsdkdws.v2.model.shrink_cluster_request import ShrinkClusterRequest @@ -343,6 +405,8 @@ from huaweicloudsdkdws.v2.model.start_workload_plan_request import StartWorkloadPlanRequest from huaweicloudsdkdws.v2.model.start_workload_plan_response import StartWorkloadPlanResponse from huaweicloudsdkdws.v2.model.statistic import Statistic +from huaweicloudsdkdws.v2.model.stop_redistribution_request import StopRedistributionRequest +from huaweicloudsdkdws.v2.model.stop_redistribution_response import StopRedistributionResponse from huaweicloudsdkdws.v2.model.stop_workload_plan_request import StopWorkloadPlanRequest from huaweicloudsdkdws.v2.model.stop_workload_plan_response import StopWorkloadPlanResponse from huaweicloudsdkdws.v2.model.switch_failover_disaster_request import SwitchFailoverDisasterRequest @@ -356,6 +420,8 @@ from huaweicloudsdkdws.v2.model.table_detail import TableDetail from huaweicloudsdkdws.v2.model.tag import Tag from huaweicloudsdkdws.v2.model.tags import Tags +from huaweicloudsdkdws.v2.model.topo_instance_info import TopoInstanceInfo +from huaweicloudsdkdws.v2.model.topo_ring_info import TopoRingInfo from huaweicloudsdkdws.v2.model.trend_query_data import TrendQueryData from huaweicloudsdkdws.v2.model.trend_query_data_resp import TrendQueryDataResp from huaweicloudsdkdws.v2.model.update_alarm_sub_request import UpdateAlarmSubRequest @@ -377,6 +443,9 @@ from huaweicloudsdkdws.v2.model.update_event_sub_request import UpdateEventSubRequest from huaweicloudsdkdws.v2.model.update_event_sub_response import UpdateEventSubResponse from huaweicloudsdkdws.v2.model.update_item_resp import UpdateItemResp +from huaweicloudsdkdws.v2.model.update_logical_cluster_request import UpdateLogicalClusterRequest +from huaweicloudsdkdws.v2.model.update_logical_cluster_request_body import UpdateLogicalClusterRequestBody +from huaweicloudsdkdws.v2.model.update_logical_cluster_response import UpdateLogicalClusterResponse from huaweicloudsdkdws.v2.model.update_maintenance_window_request import UpdateMaintenanceWindowRequest from huaweicloudsdkdws.v2.model.update_maintenance_window_response import UpdateMaintenanceWindowResponse from huaweicloudsdkdws.v2.model.v2_create_cluster import V2CreateCluster diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/action_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/action_info.py new file mode 100644 index 0000000000..3baf61a650 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/action_info.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ActionInfo: + + """ + 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 = { + 'action_name': 'str', + 'progress': 'int', + 'completed': 'bool', + 'start_time': 'str', + 'end_time': 'str', + 'result': 'str', + 'logs': 'str' + } + + attribute_map = { + 'action_name': 'action_name', + 'progress': 'progress', + 'completed': 'completed', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'result': 'result', + 'logs': 'logs' + } + + def __init__(self, action_name=None, progress=None, completed=None, start_time=None, end_time=None, result=None, logs=None): + """ActionInfo + + The model defined in huaweicloud sdk + + :param action_name: 操作名称。当前只允许Create,Expand,Restart,Delete,Shrink + :type action_name: str + :param progress: 操作进度,默认10 + :type progress: int + :param completed: 是否完成操作 + :type completed: bool + :param start_time: 操作开始时间 + :type start_time: str + :param end_time: 操作结束时间 + :type end_time: str + :param result: 操作结果。success或者failed,默认空字符串 + :type result: str + :param logs: 操作日志 + :type logs: str + """ + + + + self._action_name = None + self._progress = None + self._completed = None + self._start_time = None + self._end_time = None + self._result = None + self._logs = None + self.discriminator = None + + if action_name is not None: + self.action_name = action_name + if progress is not None: + self.progress = progress + if completed is not None: + self.completed = completed + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if result is not None: + self.result = result + if logs is not None: + self.logs = logs + + @property + def action_name(self): + """Gets the action_name of this ActionInfo. + + 操作名称。当前只允许Create,Expand,Restart,Delete,Shrink + + :return: The action_name of this ActionInfo. + :rtype: str + """ + return self._action_name + + @action_name.setter + def action_name(self, action_name): + """Sets the action_name of this ActionInfo. + + 操作名称。当前只允许Create,Expand,Restart,Delete,Shrink + + :param action_name: The action_name of this ActionInfo. + :type action_name: str + """ + self._action_name = action_name + + @property + def progress(self): + """Gets the progress of this ActionInfo. + + 操作进度,默认10 + + :return: The progress of this ActionInfo. + :rtype: int + """ + return self._progress + + @progress.setter + def progress(self, progress): + """Sets the progress of this ActionInfo. + + 操作进度,默认10 + + :param progress: The progress of this ActionInfo. + :type progress: int + """ + self._progress = progress + + @property + def completed(self): + """Gets the completed of this ActionInfo. + + 是否完成操作 + + :return: The completed of this ActionInfo. + :rtype: bool + """ + return self._completed + + @completed.setter + def completed(self, completed): + """Sets the completed of this ActionInfo. + + 是否完成操作 + + :param completed: The completed of this ActionInfo. + :type completed: bool + """ + self._completed = completed + + @property + def start_time(self): + """Gets the start_time of this ActionInfo. + + 操作开始时间 + + :return: The start_time of this ActionInfo. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ActionInfo. + + 操作开始时间 + + :param start_time: The start_time of this ActionInfo. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ActionInfo. + + 操作结束时间 + + :return: The end_time of this ActionInfo. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ActionInfo. + + 操作结束时间 + + :param end_time: The end_time of this ActionInfo. + :type end_time: str + """ + self._end_time = end_time + + @property + def result(self): + """Gets the result of this ActionInfo. + + 操作结果。success或者failed,默认空字符串 + + :return: The result of this ActionInfo. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ActionInfo. + + 操作结果。success或者failed,默认空字符串 + + :param result: The result of this ActionInfo. + :type result: str + """ + self._result = result + + @property + def logs(self): + """Gets the logs of this ActionInfo. + + 操作日志 + + :return: The logs of this ActionInfo. + :rtype: str + """ + return self._logs + + @logs.setter + def logs(self, logs): + """Sets the logs of this ActionInfo. + + 操作日志 + + :param logs: The logs of this ActionInfo. + :type logs: str + """ + self._logs = logs + + 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, ActionInfo): + 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-dws/huaweicloudsdkdws/v2/model/build_task_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/build_task_info.py new file mode 100644 index 0000000000..333fd07c84 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/build_task_info.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BuildTaskInfo: + + """ + 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 = { + 'build_mode': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'category_id': 'str' + } + + attribute_map = { + 'build_mode': 'build_mode', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'category_id': 'category_id' + } + + def __init__(self, build_mode=None, start_time=None, end_time=None, category_id=None): + """BuildTaskInfo + + The model defined in huaweicloud sdk + + :param build_mode: 任务模式 + :type build_mode: str + :param start_time: 任务开始时间 + :type start_time: str + :param end_time: 任务结束时间 + :type end_time: str + :param category_id: 策略ID + :type category_id: str + """ + + + + self._build_mode = None + self._start_time = None + self._end_time = None + self._category_id = None + self.discriminator = None + + self.build_mode = build_mode + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if category_id is not None: + self.category_id = category_id + + @property + def build_mode(self): + """Gets the build_mode of this BuildTaskInfo. + + 任务模式 + + :return: The build_mode of this BuildTaskInfo. + :rtype: str + """ + return self._build_mode + + @build_mode.setter + def build_mode(self, build_mode): + """Sets the build_mode of this BuildTaskInfo. + + 任务模式 + + :param build_mode: The build_mode of this BuildTaskInfo. + :type build_mode: str + """ + self._build_mode = build_mode + + @property + def start_time(self): + """Gets the start_time of this BuildTaskInfo. + + 任务开始时间 + + :return: The start_time of this BuildTaskInfo. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this BuildTaskInfo. + + 任务开始时间 + + :param start_time: The start_time of this BuildTaskInfo. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this BuildTaskInfo. + + 任务结束时间 + + :return: The end_time of this BuildTaskInfo. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this BuildTaskInfo. + + 任务结束时间 + + :param end_time: The end_time of this BuildTaskInfo. + :type end_time: str + """ + self._end_time = end_time + + @property + def category_id(self): + """Gets the category_id of this BuildTaskInfo. + + 策略ID + + :return: The category_id of this BuildTaskInfo. + :rtype: str + """ + return self._category_id + + @category_id.setter + def category_id(self, category_id): + """Sets the category_id of this BuildTaskInfo. + + 策略ID + + :param category_id: The category_id of this BuildTaskInfo. + :type category_id: str + """ + self._category_id = category_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, BuildTaskInfo): + 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-dws/huaweicloudsdkdws/v2/model/cluster_node_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/cluster_node_info.py new file mode 100644 index 0000000000..a1431fa18b --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/cluster_node_info.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusterNodeInfo: + + """ + 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', + 'name': 'str', + 'status': 'str', + 'sub_status': 'str', + 'spec': 'str', + 'inst_create_type': 'str', + 'alias_name': 'str', + 'az_code': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'status': 'status', + 'sub_status': 'sub_status', + 'spec': 'spec', + 'inst_create_type': 'inst_create_type', + 'alias_name': 'alias_name', + 'az_code': 'az_code' + } + + def __init__(self, id=None, name=None, status=None, sub_status=None, spec=None, inst_create_type=None, alias_name=None, az_code=None): + """ClusterNodeInfo + + The model defined in huaweicloud sdk + + :param id: 节点ID + :type id: str + :param name: 节点名称 + :type name: str + :param status: 节点状态 + :type status: str + :param sub_status: 节点子状态 + :type sub_status: str + :param spec: 节点规格 + :type spec: str + :param inst_create_type: 实例创建类型 + :type inst_create_type: str + :param alias_name: 节点别名 + :type alias_name: str + :param az_code: 可用区编码 + :type az_code: str + """ + + + + self._id = None + self._name = None + self._status = None + self._sub_status = None + self._spec = None + self._inst_create_type = None + self._alias_name = None + self._az_code = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if status is not None: + self.status = status + if sub_status is not None: + self.sub_status = sub_status + if spec is not None: + self.spec = spec + if inst_create_type is not None: + self.inst_create_type = inst_create_type + if alias_name is not None: + self.alias_name = alias_name + if az_code is not None: + self.az_code = az_code + + @property + def id(self): + """Gets the id of this ClusterNodeInfo. + + 节点ID + + :return: The id of this ClusterNodeInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ClusterNodeInfo. + + 节点ID + + :param id: The id of this ClusterNodeInfo. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ClusterNodeInfo. + + 节点名称 + + :return: The name of this ClusterNodeInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ClusterNodeInfo. + + 节点名称 + + :param name: The name of this ClusterNodeInfo. + :type name: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this ClusterNodeInfo. + + 节点状态 + + :return: The status of this ClusterNodeInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ClusterNodeInfo. + + 节点状态 + + :param status: The status of this ClusterNodeInfo. + :type status: str + """ + self._status = status + + @property + def sub_status(self): + """Gets the sub_status of this ClusterNodeInfo. + + 节点子状态 + + :return: The sub_status of this ClusterNodeInfo. + :rtype: str + """ + return self._sub_status + + @sub_status.setter + def sub_status(self, sub_status): + """Sets the sub_status of this ClusterNodeInfo. + + 节点子状态 + + :param sub_status: The sub_status of this ClusterNodeInfo. + :type sub_status: str + """ + self._sub_status = sub_status + + @property + def spec(self): + """Gets the spec of this ClusterNodeInfo. + + 节点规格 + + :return: The spec of this ClusterNodeInfo. + :rtype: str + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this ClusterNodeInfo. + + 节点规格 + + :param spec: The spec of this ClusterNodeInfo. + :type spec: str + """ + self._spec = spec + + @property + def inst_create_type(self): + """Gets the inst_create_type of this ClusterNodeInfo. + + 实例创建类型 + + :return: The inst_create_type of this ClusterNodeInfo. + :rtype: str + """ + return self._inst_create_type + + @inst_create_type.setter + def inst_create_type(self, inst_create_type): + """Sets the inst_create_type of this ClusterNodeInfo. + + 实例创建类型 + + :param inst_create_type: The inst_create_type of this ClusterNodeInfo. + :type inst_create_type: str + """ + self._inst_create_type = inst_create_type + + @property + def alias_name(self): + """Gets the alias_name of this ClusterNodeInfo. + + 节点别名 + + :return: The alias_name of this ClusterNodeInfo. + :rtype: str + """ + return self._alias_name + + @alias_name.setter + def alias_name(self, alias_name): + """Sets the alias_name of this ClusterNodeInfo. + + 节点别名 + + :param alias_name: The alias_name of this ClusterNodeInfo. + :type alias_name: str + """ + self._alias_name = alias_name + + @property + def az_code(self): + """Gets the az_code of this ClusterNodeInfo. + + 可用区编码 + + :return: The az_code of this ClusterNodeInfo. + :rtype: str + """ + return self._az_code + + @az_code.setter + def az_code(self, az_code): + """Sets the az_code of this ClusterNodeInfo. + + 可用区编码 + + :param az_code: The az_code of this ClusterNodeInfo. + :type az_code: str + """ + self._az_code = az_code + + 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, ClusterNodeInfo): + 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-dws/huaweicloudsdkdws/v2/model/cluster_ring.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/cluster_ring.py new file mode 100644 index 0000000000..c99a404041 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/cluster_ring.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusterRing: + + """ + 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 = { + 'ring_hosts': 'list[RingHost]' + } + + attribute_map = { + 'ring_hosts': 'ring_hosts' + } + + def __init__(self, ring_hosts=None): + """ClusterRing + + The model defined in huaweicloud sdk + + :param ring_hosts: 集群主机信息 + :type ring_hosts: list[:class:`huaweicloudsdkdws.v2.RingHost`] + """ + + + + self._ring_hosts = None + self.discriminator = None + + self.ring_hosts = ring_hosts + + @property + def ring_hosts(self): + """Gets the ring_hosts of this ClusterRing. + + 集群主机信息 + + :return: The ring_hosts of this ClusterRing. + :rtype: list[:class:`huaweicloudsdkdws.v2.RingHost`] + """ + return self._ring_hosts + + @ring_hosts.setter + def ring_hosts(self, ring_hosts): + """Sets the ring_hosts of this ClusterRing. + + 集群主机信息 + + :param ring_hosts: The ring_hosts of this ClusterRing. + :type ring_hosts: list[:class:`huaweicloudsdkdws.v2.RingHost`] + """ + self._ring_hosts = ring_hosts + + 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, ClusterRing): + 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-dws/huaweicloudsdkdws/v2/model/convert_to_logical_cluster_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/convert_to_logical_cluster_request.py new file mode 100644 index 0000000000..1f34338715 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/convert_to_logical_cluster_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConvertToLogicalClusterRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'name': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'name': 'name' + } + + def __init__(self, cluster_id=None, name=None): + """ConvertToLogicalClusterRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param name: 逻辑集群名称 + :type name: str + """ + + + + self._cluster_id = None + self._name = None + self.discriminator = None + + self.cluster_id = cluster_id + self.name = name + + @property + def cluster_id(self): + """Gets the cluster_id of this ConvertToLogicalClusterRequest. + + 集群ID + + :return: The cluster_id of this ConvertToLogicalClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ConvertToLogicalClusterRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ConvertToLogicalClusterRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def name(self): + """Gets the name of this ConvertToLogicalClusterRequest. + + 逻辑集群名称 + + :return: The name of this ConvertToLogicalClusterRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ConvertToLogicalClusterRequest. + + 逻辑集群名称 + + :param name: The name of this ConvertToLogicalClusterRequest. + :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, ConvertToLogicalClusterRequest): + 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-dws/huaweicloudsdkdws/v2/model/convert_to_logical_cluster_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/convert_to_logical_cluster_response.py new file mode 100644 index 0000000000..2bd7f5b990 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/convert_to_logical_cluster_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 ConvertToLogicalClusterResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, error_code=None, error_msg=None): + """ConvertToLogicalClusterResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误信息 + :type error_msg: str + """ + + super(ConvertToLogicalClusterResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this ConvertToLogicalClusterResponse. + + 错误码 + + :return: The error_code of this ConvertToLogicalClusterResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ConvertToLogicalClusterResponse. + + 错误码 + + :param error_code: The error_code of this ConvertToLogicalClusterResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ConvertToLogicalClusterResponse. + + 错误信息 + + :return: The error_msg of this ConvertToLogicalClusterResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ConvertToLogicalClusterResponse. + + 错误信息 + + :param error_msg: The error_msg of this ConvertToLogicalClusterResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + 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, ConvertToLogicalClusterResponse): + 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-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_info.py new file mode 100644 index 0000000000..9cb36040c0 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_info.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLogicalClusterInfo: + + """ + 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 = { + 'logical_cluster_name': 'str', + 'cluster_rings': 'list[ClusterRing]' + } + + attribute_map = { + 'logical_cluster_name': 'logical_cluster_name', + 'cluster_rings': 'cluster_rings' + } + + def __init__(self, logical_cluster_name=None, cluster_rings=None): + """CreateLogicalClusterInfo + + The model defined in huaweicloud sdk + + :param logical_cluster_name: 逻辑集群名称 + :type logical_cluster_name: str + :param cluster_rings: 逻辑集群环信息 + :type cluster_rings: list[:class:`huaweicloudsdkdws.v2.ClusterRing`] + """ + + + + self._logical_cluster_name = None + self._cluster_rings = None + self.discriminator = None + + self.logical_cluster_name = logical_cluster_name + self.cluster_rings = cluster_rings + + @property + def logical_cluster_name(self): + """Gets the logical_cluster_name of this CreateLogicalClusterInfo. + + 逻辑集群名称 + + :return: The logical_cluster_name of this CreateLogicalClusterInfo. + :rtype: str + """ + return self._logical_cluster_name + + @logical_cluster_name.setter + def logical_cluster_name(self, logical_cluster_name): + """Sets the logical_cluster_name of this CreateLogicalClusterInfo. + + 逻辑集群名称 + + :param logical_cluster_name: The logical_cluster_name of this CreateLogicalClusterInfo. + :type logical_cluster_name: str + """ + self._logical_cluster_name = logical_cluster_name + + @property + def cluster_rings(self): + """Gets the cluster_rings of this CreateLogicalClusterInfo. + + 逻辑集群环信息 + + :return: The cluster_rings of this CreateLogicalClusterInfo. + :rtype: list[:class:`huaweicloudsdkdws.v2.ClusterRing`] + """ + return self._cluster_rings + + @cluster_rings.setter + def cluster_rings(self, cluster_rings): + """Sets the cluster_rings of this CreateLogicalClusterInfo. + + 逻辑集群环信息 + + :param cluster_rings: The cluster_rings of this CreateLogicalClusterInfo. + :type cluster_rings: list[:class:`huaweicloudsdkdws.v2.ClusterRing`] + """ + self._cluster_rings = cluster_rings + + 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, CreateLogicalClusterInfo): + 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-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_request.py new file mode 100644 index 0000000000..8aeb28eedf --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLogicalClusterRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'body': 'CreateLogicalClusterRequestBody' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """CreateLogicalClusterRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param body: Body of the CreateLogicalClusterRequest + :type body: :class:`huaweicloudsdkdws.v2.CreateLogicalClusterRequestBody` + """ + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this CreateLogicalClusterRequest. + + 集群ID + + :return: The cluster_id of this CreateLogicalClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this CreateLogicalClusterRequest. + + 集群ID + + :param cluster_id: The cluster_id of this CreateLogicalClusterRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this CreateLogicalClusterRequest. + + :return: The body of this CreateLogicalClusterRequest. + :rtype: :class:`huaweicloudsdkdws.v2.CreateLogicalClusterRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateLogicalClusterRequest. + + :param body: The body of this CreateLogicalClusterRequest. + :type body: :class:`huaweicloudsdkdws.v2.CreateLogicalClusterRequestBody` + """ + 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, CreateLogicalClusterRequest): + 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-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_request_body.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_request_body.py new file mode 100644 index 0000000000..46f0688800 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_request_body.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLogicalClusterRequestBody: + + """ + 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 = { + 'logical_cluster': 'CreateLogicalClusterInfo' + } + + attribute_map = { + 'logical_cluster': 'logical_cluster' + } + + def __init__(self, logical_cluster=None): + """CreateLogicalClusterRequestBody + + The model defined in huaweicloud sdk + + :param logical_cluster: + :type logical_cluster: :class:`huaweicloudsdkdws.v2.CreateLogicalClusterInfo` + """ + + + + self._logical_cluster = None + self.discriminator = None + + self.logical_cluster = logical_cluster + + @property + def logical_cluster(self): + """Gets the logical_cluster of this CreateLogicalClusterRequestBody. + + :return: The logical_cluster of this CreateLogicalClusterRequestBody. + :rtype: :class:`huaweicloudsdkdws.v2.CreateLogicalClusterInfo` + """ + return self._logical_cluster + + @logical_cluster.setter + def logical_cluster(self, logical_cluster): + """Sets the logical_cluster of this CreateLogicalClusterRequestBody. + + :param logical_cluster: The logical_cluster of this CreateLogicalClusterRequestBody. + :type logical_cluster: :class:`huaweicloudsdkdws.v2.CreateLogicalClusterInfo` + """ + self._logical_cluster = logical_cluster + + 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, CreateLogicalClusterRequestBody): + 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-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_response.py new file mode 100644 index 0000000000..d200e35828 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/create_logical_cluster_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 CreateLogicalClusterResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, error_code=None, error_msg=None): + """CreateLogicalClusterResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误信息 + :type error_msg: str + """ + + super(CreateLogicalClusterResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this CreateLogicalClusterResponse. + + 错误码 + + :return: The error_code of this CreateLogicalClusterResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateLogicalClusterResponse. + + 错误码 + + :param error_code: The error_code of this CreateLogicalClusterResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateLogicalClusterResponse. + + 错误信息 + + :return: The error_msg of this CreateLogicalClusterResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateLogicalClusterResponse. + + 错误信息 + + :param error_msg: The error_msg of this CreateLogicalClusterResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + 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, CreateLogicalClusterResponse): + 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-dws/huaweicloudsdkdws/v2/model/delete_cluster_nodes_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/delete_cluster_nodes_request.py new file mode 100644 index 0000000000..5f479e12c0 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/delete_cluster_nodes_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteClusterNodesRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'body': 'DeleteClusterNodesRequestBody' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """DeleteClusterNodesRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 指定待删除节点集群的ID + :type cluster_id: str + :param body: Body of the DeleteClusterNodesRequest + :type body: :class:`huaweicloudsdkdws.v2.DeleteClusterNodesRequestBody` + """ + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this DeleteClusterNodesRequest. + + 指定待删除节点集群的ID + + :return: The cluster_id of this DeleteClusterNodesRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this DeleteClusterNodesRequest. + + 指定待删除节点集群的ID + + :param cluster_id: The cluster_id of this DeleteClusterNodesRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this DeleteClusterNodesRequest. + + :return: The body of this DeleteClusterNodesRequest. + :rtype: :class:`huaweicloudsdkdws.v2.DeleteClusterNodesRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteClusterNodesRequest. + + :param body: The body of this DeleteClusterNodesRequest. + :type body: :class:`huaweicloudsdkdws.v2.DeleteClusterNodesRequestBody` + """ + 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, DeleteClusterNodesRequest): + 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-dws/huaweicloudsdkdws/v2/model/delete_cluster_nodes_request_body.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/delete_cluster_nodes_request_body.py new file mode 100644 index 0000000000..0cbc9e42dd --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/delete_cluster_nodes_request_body.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteClusterNodesRequestBody: + + """ + 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 = { + 'node_list': 'list[str]', + 'operate_type': 'str' + } + + attribute_map = { + 'node_list': 'node_list', + 'operate_type': 'operate_type' + } + + def __init__(self, node_list=None, operate_type=None): + """DeleteClusterNodesRequestBody + + The model defined in huaweicloud sdk + + :param node_list: 逻辑集群节点ID列表 + :type node_list: list[str] + :param operate_type: 操作类型,clear|delete + :type operate_type: str + """ + + + + self._node_list = None + self._operate_type = None + self.discriminator = None + + self.node_list = node_list + self.operate_type = operate_type + + @property + def node_list(self): + """Gets the node_list of this DeleteClusterNodesRequestBody. + + 逻辑集群节点ID列表 + + :return: The node_list of this DeleteClusterNodesRequestBody. + :rtype: list[str] + """ + return self._node_list + + @node_list.setter + def node_list(self, node_list): + """Sets the node_list of this DeleteClusterNodesRequestBody. + + 逻辑集群节点ID列表 + + :param node_list: The node_list of this DeleteClusterNodesRequestBody. + :type node_list: list[str] + """ + self._node_list = node_list + + @property + def operate_type(self): + """Gets the operate_type of this DeleteClusterNodesRequestBody. + + 操作类型,clear|delete + + :return: The operate_type of this DeleteClusterNodesRequestBody. + :rtype: str + """ + return self._operate_type + + @operate_type.setter + def operate_type(self, operate_type): + """Sets the operate_type of this DeleteClusterNodesRequestBody. + + 操作类型,clear|delete + + :param operate_type: The operate_type of this DeleteClusterNodesRequestBody. + :type operate_type: str + """ + self._operate_type = operate_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, DeleteClusterNodesRequestBody): + 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-dws/huaweicloudsdkdws/v2/model/delete_cluster_nodes_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/delete_cluster_nodes_response.py new file mode 100644 index 0000000000..862648d42c --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/delete_cluster_nodes_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 DeleteClusterNodesResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, error_code=None, error_msg=None): + """DeleteClusterNodesResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误信息 + :type error_msg: str + """ + + super(DeleteClusterNodesResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this DeleteClusterNodesResponse. + + 错误码 + + :return: The error_code of this DeleteClusterNodesResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this DeleteClusterNodesResponse. + + 错误码 + + :param error_code: The error_code of this DeleteClusterNodesResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this DeleteClusterNodesResponse. + + 错误信息 + + :return: The error_msg of this DeleteClusterNodesResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this DeleteClusterNodesResponse. + + 错误信息 + + :param error_msg: The error_msg of this DeleteClusterNodesResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + 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, DeleteClusterNodesResponse): + 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-dws/huaweicloudsdkdws/v2/model/delete_logical_cluster_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/delete_logical_cluster_request.py new file mode 100644 index 0000000000..59f6d6249a --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/delete_logical_cluster_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteLogicalClusterRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'logical_cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'logical_cluster_id': 'logical_cluster_id' + } + + def __init__(self, cluster_id=None, logical_cluster_id=None): + """DeleteLogicalClusterRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 指定待删除集群的ID + :type cluster_id: str + :param logical_cluster_id: 指定待删除逻辑集群的ID + :type logical_cluster_id: str + """ + + + + self._cluster_id = None + self._logical_cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + self.logical_cluster_id = logical_cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this DeleteLogicalClusterRequest. + + 指定待删除集群的ID + + :return: The cluster_id of this DeleteLogicalClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this DeleteLogicalClusterRequest. + + 指定待删除集群的ID + + :param cluster_id: The cluster_id of this DeleteLogicalClusterRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def logical_cluster_id(self): + """Gets the logical_cluster_id of this DeleteLogicalClusterRequest. + + 指定待删除逻辑集群的ID + + :return: The logical_cluster_id of this DeleteLogicalClusterRequest. + :rtype: str + """ + return self._logical_cluster_id + + @logical_cluster_id.setter + def logical_cluster_id(self, logical_cluster_id): + """Sets the logical_cluster_id of this DeleteLogicalClusterRequest. + + 指定待删除逻辑集群的ID + + :param logical_cluster_id: The logical_cluster_id of this DeleteLogicalClusterRequest. + :type logical_cluster_id: str + """ + self._logical_cluster_id = logical_cluster_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, DeleteLogicalClusterRequest): + 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-dws/huaweicloudsdkdws/v2/model/delete_logical_cluster_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/delete_logical_cluster_response.py new file mode 100644 index 0000000000..88abf4db4e --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/delete_logical_cluster_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 DeleteLogicalClusterResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, error_code=None, error_msg=None): + """DeleteLogicalClusterResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误信息 + :type error_msg: str + """ + + super(DeleteLogicalClusterResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this DeleteLogicalClusterResponse. + + 错误码 + + :return: The error_code of this DeleteLogicalClusterResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this DeleteLogicalClusterResponse. + + 错误码 + + :param error_code: The error_code of this DeleteLogicalClusterResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this DeleteLogicalClusterResponse. + + 错误信息 + + :return: The error_msg of this DeleteLogicalClusterResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this DeleteLogicalClusterResponse. + + 错误信息 + + :param error_msg: The error_msg of this DeleteLogicalClusterResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + 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, DeleteLogicalClusterResponse): + 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-dws/huaweicloudsdkdws/v2/model/disable_lts_logs_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/disable_lts_logs_request.py new file mode 100644 index 0000000000..d0be5dc18e --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/disable_lts_logs_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DisableLtsLogsRequest: + + """ + 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 = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """DisableLtsLogsRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群的ID + :type cluster_id: str + """ + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this DisableLtsLogsRequest. + + 集群的ID + + :return: The cluster_id of this DisableLtsLogsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this DisableLtsLogsRequest. + + 集群的ID + + :param cluster_id: The cluster_id of this DisableLtsLogsRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_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, DisableLtsLogsRequest): + 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-dws/huaweicloudsdkdws/v2/model/disable_lts_logs_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/disable_lts_logs_response.py new file mode 100644 index 0000000000..b588f30165 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/disable_lts_logs_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 DisableLtsLogsResponse(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): + """DisableLtsLogsResponse + + The model defined in huaweicloud sdk + + """ + + super(DisableLtsLogsResponse, 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, DisableLtsLogsResponse): + 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-dws/huaweicloudsdkdws/v2/model/disk_resp.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/disk_resp.py index c5027a457b..4952e3cbeb 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/disk_resp.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/disk_resp.py @@ -18,6 +18,7 @@ class DiskResp: openapi_types = { 'instance_name': 'str', + 'instance_id': 'str', 'host_name': 'str', 'disk_name': 'str', 'disk_type': 'str', @@ -34,6 +35,7 @@ class DiskResp: attribute_map = { 'instance_name': 'instance_name', + 'instance_id': 'instance_id', 'host_name': 'host_name', 'disk_name': 'disk_name', 'disk_type': 'disk_type', @@ -48,13 +50,15 @@ class DiskResp: 'write_rate': 'write_rate' } - def __init__(self, instance_name=None, host_name=None, disk_name=None, disk_type=None, total=None, used=None, available=None, used_percentage=None, _await=None, svctm=None, util=None, read_rate=None, write_rate=None): + def __init__(self, instance_name=None, instance_id=None, host_name=None, disk_name=None, disk_type=None, total=None, used=None, available=None, used_percentage=None, _await=None, svctm=None, util=None, read_rate=None, write_rate=None): """DiskResp The model defined in huaweicloud sdk :param instance_name: 实例名称 :type instance_name: str + :param instance_id: 实例ID + :type instance_id: str :param host_name: 主机名称 :type host_name: str :param disk_name: 磁盘名称 @@ -84,6 +88,7 @@ def __init__(self, instance_name=None, host_name=None, disk_name=None, disk_type self._instance_name = None + self._instance_id = None self._host_name = None self._disk_name = None self._disk_type = None @@ -100,6 +105,8 @@ def __init__(self, instance_name=None, host_name=None, disk_name=None, disk_type if instance_name is not None: self.instance_name = instance_name + if instance_id is not None: + self.instance_id = instance_id if host_name is not None: self.host_name = host_name if disk_name is not None: @@ -147,6 +154,28 @@ def instance_name(self, instance_name): """ self._instance_name = instance_name + @property + def instance_id(self): + """Gets the instance_id of this DiskResp. + + 实例ID + + :return: The instance_id of this DiskResp. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DiskResp. + + 实例ID + + :param instance_id: The instance_id of this DiskResp. + :type instance_id: str + """ + self._instance_id = instance_id + @property def host_name(self): """Gets the host_name of this DiskResp. diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/enable_logical_cluster_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/enable_logical_cluster_request.py new file mode 100644 index 0000000000..59c0723dd4 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/enable_logical_cluster_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EnableLogicalClusterRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'body': 'EnableLogicalClusterRequestBody' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """EnableLogicalClusterRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 指定集群的ID + :type cluster_id: str + :param body: Body of the EnableLogicalClusterRequest + :type body: :class:`huaweicloudsdkdws.v2.EnableLogicalClusterRequestBody` + """ + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this EnableLogicalClusterRequest. + + 指定集群的ID + + :return: The cluster_id of this EnableLogicalClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this EnableLogicalClusterRequest. + + 指定集群的ID + + :param cluster_id: The cluster_id of this EnableLogicalClusterRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this EnableLogicalClusterRequest. + + :return: The body of this EnableLogicalClusterRequest. + :rtype: :class:`huaweicloudsdkdws.v2.EnableLogicalClusterRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this EnableLogicalClusterRequest. + + :param body: The body of this EnableLogicalClusterRequest. + :type body: :class:`huaweicloudsdkdws.v2.EnableLogicalClusterRequestBody` + """ + 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, EnableLogicalClusterRequest): + 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-dws/huaweicloudsdkdws/v2/model/enable_logical_cluster_request_body.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/enable_logical_cluster_request_body.py new file mode 100644 index 0000000000..9602c93fd2 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/enable_logical_cluster_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EnableLogicalClusterRequestBody: + + """ + 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': 'bool' + } + + attribute_map = { + 'enable': 'enable' + } + + def __init__(self, enable=None): + """EnableLogicalClusterRequestBody + + The model defined in huaweicloud sdk + + :param enable: true-切换开关 + :type enable: bool + """ + + + + self._enable = None + self.discriminator = None + + self.enable = enable + + @property + def enable(self): + """Gets the enable of this EnableLogicalClusterRequestBody. + + true-切换开关 + + :return: The enable of this EnableLogicalClusterRequestBody. + :rtype: bool + """ + return self._enable + + @enable.setter + def enable(self, enable): + """Sets the enable of this EnableLogicalClusterRequestBody. + + true-切换开关 + + :param enable: The enable of this EnableLogicalClusterRequestBody. + :type enable: bool + """ + self._enable = enable + + 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, EnableLogicalClusterRequestBody): + 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-dws/huaweicloudsdkdws/v2/model/enable_logical_cluster_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/enable_logical_cluster_response.py new file mode 100644 index 0000000000..840d7aa14b --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/enable_logical_cluster_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 EnableLogicalClusterResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, error_code=None, error_msg=None): + """EnableLogicalClusterResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误信息 + :type error_msg: str + """ + + super(EnableLogicalClusterResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this EnableLogicalClusterResponse. + + 错误码 + + :return: The error_code of this EnableLogicalClusterResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this EnableLogicalClusterResponse. + + 错误码 + + :param error_code: The error_code of this EnableLogicalClusterResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this EnableLogicalClusterResponse. + + 错误信息 + + :return: The error_msg of this EnableLogicalClusterResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this EnableLogicalClusterResponse. + + 错误信息 + + :param error_msg: The error_msg of this EnableLogicalClusterResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + 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, EnableLogicalClusterResponse): + 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-dws/huaweicloudsdkdws/v2/model/enable_lts_logs_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/enable_lts_logs_request.py new file mode 100644 index 0000000000..798d6196d1 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/enable_lts_logs_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EnableLtsLogsRequest: + + """ + 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 = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """EnableLtsLogsRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群的ID + :type cluster_id: str + """ + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this EnableLtsLogsRequest. + + 集群的ID + + :return: The cluster_id of this EnableLtsLogsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this EnableLtsLogsRequest. + + 集群的ID + + :param cluster_id: The cluster_id of this EnableLtsLogsRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_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, EnableLtsLogsRequest): + 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-dws/huaweicloudsdkdws/v2/model/enable_lts_logs_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/enable_lts_logs_response.py new file mode 100644 index 0000000000..ac85be851d --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/enable_lts_logs_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 EnableLtsLogsResponse(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): + """EnableLtsLogsResponse + + The model defined in huaweicloud sdk + + """ + + super(EnableLtsLogsResponse, 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, EnableLtsLogsResponse): + 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-dws/huaweicloudsdkdws/v2/model/list_cluster_nodes_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_cluster_nodes_request.py new file mode 100644 index 0000000000..30f19c790d --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_cluster_nodes_request.py @@ -0,0 +1,346 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListClusterNodesRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'deleted': 'str', + 'node_ids': 'list[str]', + 'offset': 'int', + 'limit': 'int', + 'filter_by': 'str', + 'filter': 'str', + 'order_by': 'str', + 'order': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'deleted': 'deleted', + 'node_ids': 'node_ids', + 'offset': 'offset', + 'limit': 'limit', + 'filter_by': 'filter_by', + 'filter': 'filter', + 'order_by': 'order_by', + 'order': 'order' + } + + def __init__(self, cluster_id=None, deleted=None, node_ids=None, offset=None, limit=None, filter_by=None, filter=None, order_by=None, order=None): + """ListClusterNodesRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param deleted: 是否被删除,true/false + :type deleted: str + :param node_ids: 节点ID列表 + :type node_ids: list[str] + :param offset: 分页查询,偏移 + :type offset: int + :param limit: 分页查询,每页显示的条目数量 + :type limit: int + :param filter_by: 过滤字段 + :type filter_by: str + :param filter: 过滤字段内容 + :type filter: str + :param order_by: 排序字段 + :type order_by: str + :param order: 排序:升序/降序 + :type order: str + """ + + + + self._cluster_id = None + self._deleted = None + self._node_ids = None + self._offset = None + self._limit = None + self._filter_by = None + self._filter = None + self._order_by = None + self._order = None + self.discriminator = None + + self.cluster_id = cluster_id + if deleted is not None: + self.deleted = deleted + if node_ids is not None: + self.node_ids = node_ids + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if filter_by is not None: + self.filter_by = filter_by + if filter is not None: + self.filter = filter + if order_by is not None: + self.order_by = order_by + if order is not None: + self.order = order + + @property + def cluster_id(self): + """Gets the cluster_id of this ListClusterNodesRequest. + + 集群ID + + :return: The cluster_id of this ListClusterNodesRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListClusterNodesRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ListClusterNodesRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def deleted(self): + """Gets the deleted of this ListClusterNodesRequest. + + 是否被删除,true/false + + :return: The deleted of this ListClusterNodesRequest. + :rtype: str + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this ListClusterNodesRequest. + + 是否被删除,true/false + + :param deleted: The deleted of this ListClusterNodesRequest. + :type deleted: str + """ + self._deleted = deleted + + @property + def node_ids(self): + """Gets the node_ids of this ListClusterNodesRequest. + + 节点ID列表 + + :return: The node_ids of this ListClusterNodesRequest. + :rtype: list[str] + """ + return self._node_ids + + @node_ids.setter + def node_ids(self, node_ids): + """Sets the node_ids of this ListClusterNodesRequest. + + 节点ID列表 + + :param node_ids: The node_ids of this ListClusterNodesRequest. + :type node_ids: list[str] + """ + self._node_ids = node_ids + + @property + def offset(self): + """Gets the offset of this ListClusterNodesRequest. + + 分页查询,偏移 + + :return: The offset of this ListClusterNodesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListClusterNodesRequest. + + 分页查询,偏移 + + :param offset: The offset of this ListClusterNodesRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListClusterNodesRequest. + + 分页查询,每页显示的条目数量 + + :return: The limit of this ListClusterNodesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListClusterNodesRequest. + + 分页查询,每页显示的条目数量 + + :param limit: The limit of this ListClusterNodesRequest. + :type limit: int + """ + self._limit = limit + + @property + def filter_by(self): + """Gets the filter_by of this ListClusterNodesRequest. + + 过滤字段 + + :return: The filter_by of this ListClusterNodesRequest. + :rtype: str + """ + return self._filter_by + + @filter_by.setter + def filter_by(self, filter_by): + """Sets the filter_by of this ListClusterNodesRequest. + + 过滤字段 + + :param filter_by: The filter_by of this ListClusterNodesRequest. + :type filter_by: str + """ + self._filter_by = filter_by + + @property + def filter(self): + """Gets the filter of this ListClusterNodesRequest. + + 过滤字段内容 + + :return: The filter of this ListClusterNodesRequest. + :rtype: str + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this ListClusterNodesRequest. + + 过滤字段内容 + + :param filter: The filter of this ListClusterNodesRequest. + :type filter: str + """ + self._filter = filter + + @property + def order_by(self): + """Gets the order_by of this ListClusterNodesRequest. + + 排序字段 + + :return: The order_by of this ListClusterNodesRequest. + :rtype: str + """ + return self._order_by + + @order_by.setter + def order_by(self, order_by): + """Sets the order_by of this ListClusterNodesRequest. + + 排序字段 + + :param order_by: The order_by of this ListClusterNodesRequest. + :type order_by: str + """ + self._order_by = order_by + + @property + def order(self): + """Gets the order of this ListClusterNodesRequest. + + 排序:升序/降序 + + :return: The order of this ListClusterNodesRequest. + :rtype: str + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this ListClusterNodesRequest. + + 排序:升序/降序 + + :param order: The order of this ListClusterNodesRequest. + :type order: str + """ + self._order = order + + 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, ListClusterNodesRequest): + 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-dws/huaweicloudsdkdws/v2/model/list_cluster_nodes_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_cluster_nodes_response.py new file mode 100644 index 0000000000..7a9f30b4a5 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_cluster_nodes_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 ListClusterNodesResponse(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 = { + 'node_list': 'list[ClusterNodeInfo]', + 'count': 'int', + 'failed_count': 'int' + } + + attribute_map = { + 'node_list': 'node_list', + 'count': 'count', + 'failed_count': 'failed_count' + } + + def __init__(self, node_list=None, count=None, failed_count=None): + """ListClusterNodesResponse + + The model defined in huaweicloud sdk + + :param node_list: 逻辑集群节点列表 + :type node_list: list[:class:`huaweicloudsdkdws.v2.ClusterNodeInfo`] + :param count: 逻辑集群节点总数 + :type count: int + :param failed_count: 逻辑集群节点失败总数 + :type failed_count: int + """ + + super(ListClusterNodesResponse, self).__init__() + + self._node_list = None + self._count = None + self._failed_count = None + self.discriminator = None + + if node_list is not None: + self.node_list = node_list + if count is not None: + self.count = count + if failed_count is not None: + self.failed_count = failed_count + + @property + def node_list(self): + """Gets the node_list of this ListClusterNodesResponse. + + 逻辑集群节点列表 + + :return: The node_list of this ListClusterNodesResponse. + :rtype: list[:class:`huaweicloudsdkdws.v2.ClusterNodeInfo`] + """ + return self._node_list + + @node_list.setter + def node_list(self, node_list): + """Sets the node_list of this ListClusterNodesResponse. + + 逻辑集群节点列表 + + :param node_list: The node_list of this ListClusterNodesResponse. + :type node_list: list[:class:`huaweicloudsdkdws.v2.ClusterNodeInfo`] + """ + self._node_list = node_list + + @property + def count(self): + """Gets the count of this ListClusterNodesResponse. + + 逻辑集群节点总数 + + :return: The count of this ListClusterNodesResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListClusterNodesResponse. + + 逻辑集群节点总数 + + :param count: The count of this ListClusterNodesResponse. + :type count: int + """ + self._count = count + + @property + def failed_count(self): + """Gets the failed_count of this ListClusterNodesResponse. + + 逻辑集群节点失败总数 + + :return: The failed_count of this ListClusterNodesResponse. + :rtype: int + """ + return self._failed_count + + @failed_count.setter + def failed_count(self, failed_count): + """Sets the failed_count of this ListClusterNodesResponse. + + 逻辑集群节点失败总数 + + :param failed_count: The failed_count of this ListClusterNodesResponse. + :type failed_count: int + """ + self._failed_count = failed_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, ListClusterNodesResponse): + 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-dws/huaweicloudsdkdws/v2/model/list_host_disk_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_host_disk_request.py index 321b3f1395..d8a89a1cb4 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_host_disk_request.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_host_disk_request.py @@ -18,6 +18,7 @@ class ListHostDiskRequest: openapi_types = { 'cluster_id': 'str', + 'instance_id': 'str', 'instance_name': 'str', 'limit': 'int', 'offset': 'int' @@ -25,18 +26,21 @@ class ListHostDiskRequest: attribute_map = { 'cluster_id': 'cluster_id', + 'instance_id': 'instance_id', 'instance_name': 'instance_name', 'limit': 'limit', 'offset': 'offset' } - def __init__(self, cluster_id=None, instance_name=None, limit=None, offset=None): + def __init__(self, cluster_id=None, instance_id=None, instance_name=None, limit=None, offset=None): """ListHostDiskRequest The model defined in huaweicloud sdk :param cluster_id: 集群ID。获取方法,请参见9.6-获取集群ID。 :type cluster_id: str + :param instance_id: 实例ID。 + :type instance_id: str :param instance_name: 实例名称。 :type instance_name: str :param limit: 数据条目数。 @@ -48,6 +52,7 @@ def __init__(self, cluster_id=None, instance_name=None, limit=None, offset=None) self._cluster_id = None + self._instance_id = None self._instance_name = None self._limit = None self._offset = None @@ -55,6 +60,8 @@ def __init__(self, cluster_id=None, instance_name=None, limit=None, offset=None) if cluster_id is not None: self.cluster_id = cluster_id + if instance_id is not None: + self.instance_id = instance_id if instance_name is not None: self.instance_name = instance_name self.limit = limit @@ -82,6 +89,28 @@ def cluster_id(self, cluster_id): """ self._cluster_id = cluster_id + @property + def instance_id(self): + """Gets the instance_id of this ListHostDiskRequest. + + 实例ID。 + + :return: The instance_id of this ListHostDiskRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListHostDiskRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ListHostDiskRequest. + :type instance_id: str + """ + self._instance_id = instance_id + @property def instance_name(self): """Gets the instance_name of this ListHostDiskRequest. diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_rings_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_rings_request.py new file mode 100644 index 0000000000..5dc3e95771 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_rings_request.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListLogicalClusterRingsRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, cluster_id=None, offset=None, limit=None): + """ListLogicalClusterRingsRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param offset: 分页查询,偏移 + :type offset: int + :param limit: 分页查询,每页显示的条目数量 + :type limit: int + """ + + + + self._cluster_id = None + self._offset = None + self._limit = None + self.discriminator = None + + self.cluster_id = cluster_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def cluster_id(self): + """Gets the cluster_id of this ListLogicalClusterRingsRequest. + + 集群ID + + :return: The cluster_id of this ListLogicalClusterRingsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListLogicalClusterRingsRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ListLogicalClusterRingsRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def offset(self): + """Gets the offset of this ListLogicalClusterRingsRequest. + + 分页查询,偏移 + + :return: The offset of this ListLogicalClusterRingsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListLogicalClusterRingsRequest. + + 分页查询,偏移 + + :param offset: The offset of this ListLogicalClusterRingsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListLogicalClusterRingsRequest. + + 分页查询,每页显示的条目数量 + + :return: The limit of this ListLogicalClusterRingsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListLogicalClusterRingsRequest. + + 分页查询,每页显示的条目数量 + + :param limit: The limit of this ListLogicalClusterRingsRequest. + :type limit: int + """ + self._limit = limit + + 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, ListLogicalClusterRingsRequest): + 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-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_rings_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_rings_response.py new file mode 100644 index 0000000000..4cb6745b84 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_rings_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 ListLogicalClusterRingsResponse(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 = { + 'cluster_rings': 'list[LogicalClusterRingInfo]', + 'count': 'int' + } + + attribute_map = { + 'cluster_rings': 'cluster_rings', + 'count': 'count' + } + + def __init__(self, cluster_rings=None, count=None): + """ListLogicalClusterRingsResponse + + The model defined in huaweicloud sdk + + :param cluster_rings: 集群环列表信息 + :type cluster_rings: list[:class:`huaweicloudsdkdws.v2.LogicalClusterRingInfo`] + :param count: 集群环数量 + :type count: int + """ + + super(ListLogicalClusterRingsResponse, self).__init__() + + self._cluster_rings = None + self._count = None + self.discriminator = None + + if cluster_rings is not None: + self.cluster_rings = cluster_rings + if count is not None: + self.count = count + + @property + def cluster_rings(self): + """Gets the cluster_rings of this ListLogicalClusterRingsResponse. + + 集群环列表信息 + + :return: The cluster_rings of this ListLogicalClusterRingsResponse. + :rtype: list[:class:`huaweicloudsdkdws.v2.LogicalClusterRingInfo`] + """ + return self._cluster_rings + + @cluster_rings.setter + def cluster_rings(self, cluster_rings): + """Sets the cluster_rings of this ListLogicalClusterRingsResponse. + + 集群环列表信息 + + :param cluster_rings: The cluster_rings of this ListLogicalClusterRingsResponse. + :type cluster_rings: list[:class:`huaweicloudsdkdws.v2.LogicalClusterRingInfo`] + """ + self._cluster_rings = cluster_rings + + @property + def count(self): + """Gets the count of this ListLogicalClusterRingsResponse. + + 集群环数量 + + :return: The count of this ListLogicalClusterRingsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListLogicalClusterRingsResponse. + + 集群环数量 + + :param count: The count of this ListLogicalClusterRingsResponse. + :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, ListLogicalClusterRingsResponse): + 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-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_tasks_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_tasks_request.py new file mode 100644 index 0000000000..3152e9402a --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_tasks_request.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListLogicalClusterTasksRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'logical_cluster_name': 'str', + 'type': 'str', + 'order_by': 'str', + 'order': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'offset': 'offset', + 'limit': 'limit', + 'logical_cluster_name': 'logical_cluster_name', + 'type': 'type', + 'order_by': 'order_by', + 'order': 'order' + } + + def __init__(self, cluster_id=None, offset=None, limit=None, logical_cluster_name=None, type=None, order_by=None, order=None): + """ListLogicalClusterTasksRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param offset: 分页查询,偏移 + :type offset: int + :param limit: 分页查询,每页显示的条目数量 + :type limit: int + :param logical_cluster_name: 集群名称 + :type logical_cluster_name: str + :param type: 类型 + :type type: str + :param order_by: 排序字段 + :type order_by: str + :param order: 排序:升序/降序 + :type order: str + """ + + + + self._cluster_id = None + self._offset = None + self._limit = None + self._logical_cluster_name = None + self._type = None + self._order_by = None + self._order = None + self.discriminator = None + + self.cluster_id = cluster_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if logical_cluster_name is not None: + self.logical_cluster_name = logical_cluster_name + if type is not None: + self.type = type + if order_by is not None: + self.order_by = order_by + if order is not None: + self.order = order + + @property + def cluster_id(self): + """Gets the cluster_id of this ListLogicalClusterTasksRequest. + + 集群ID + + :return: The cluster_id of this ListLogicalClusterTasksRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListLogicalClusterTasksRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ListLogicalClusterTasksRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def offset(self): + """Gets the offset of this ListLogicalClusterTasksRequest. + + 分页查询,偏移 + + :return: The offset of this ListLogicalClusterTasksRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListLogicalClusterTasksRequest. + + 分页查询,偏移 + + :param offset: The offset of this ListLogicalClusterTasksRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListLogicalClusterTasksRequest. + + 分页查询,每页显示的条目数量 + + :return: The limit of this ListLogicalClusterTasksRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListLogicalClusterTasksRequest. + + 分页查询,每页显示的条目数量 + + :param limit: The limit of this ListLogicalClusterTasksRequest. + :type limit: int + """ + self._limit = limit + + @property + def logical_cluster_name(self): + """Gets the logical_cluster_name of this ListLogicalClusterTasksRequest. + + 集群名称 + + :return: The logical_cluster_name of this ListLogicalClusterTasksRequest. + :rtype: str + """ + return self._logical_cluster_name + + @logical_cluster_name.setter + def logical_cluster_name(self, logical_cluster_name): + """Sets the logical_cluster_name of this ListLogicalClusterTasksRequest. + + 集群名称 + + :param logical_cluster_name: The logical_cluster_name of this ListLogicalClusterTasksRequest. + :type logical_cluster_name: str + """ + self._logical_cluster_name = logical_cluster_name + + @property + def type(self): + """Gets the type of this ListLogicalClusterTasksRequest. + + 类型 + + :return: The type of this ListLogicalClusterTasksRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListLogicalClusterTasksRequest. + + 类型 + + :param type: The type of this ListLogicalClusterTasksRequest. + :type type: str + """ + self._type = type + + @property + def order_by(self): + """Gets the order_by of this ListLogicalClusterTasksRequest. + + 排序字段 + + :return: The order_by of this ListLogicalClusterTasksRequest. + :rtype: str + """ + return self._order_by + + @order_by.setter + def order_by(self, order_by): + """Sets the order_by of this ListLogicalClusterTasksRequest. + + 排序字段 + + :param order_by: The order_by of this ListLogicalClusterTasksRequest. + :type order_by: str + """ + self._order_by = order_by + + @property + def order(self): + """Gets the order of this ListLogicalClusterTasksRequest. + + 排序:升序/降序 + + :return: The order of this ListLogicalClusterTasksRequest. + :rtype: str + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this ListLogicalClusterTasksRequest. + + 排序:升序/降序 + + :param order: The order of this ListLogicalClusterTasksRequest. + :type order: str + """ + self._order = order + + 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, ListLogicalClusterTasksRequest): + 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-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_tasks_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_tasks_response.py new file mode 100644 index 0000000000..6b435e04f8 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_tasks_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 ListLogicalClusterTasksResponse(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 = { + 'logical_cluster_tasks': 'list[LogicalClusterTaskInfo]', + 'count': 'int' + } + + attribute_map = { + 'logical_cluster_tasks': 'logical_cluster_tasks', + 'count': 'count' + } + + def __init__(self, logical_cluster_tasks=None, count=None): + """ListLogicalClusterTasksResponse + + The model defined in huaweicloud sdk + + :param logical_cluster_tasks: 逻辑集群任务信息 + :type logical_cluster_tasks: list[:class:`huaweicloudsdkdws.v2.LogicalClusterTaskInfo`] + :param count: 逻辑集群任务总数 + :type count: int + """ + + super(ListLogicalClusterTasksResponse, self).__init__() + + self._logical_cluster_tasks = None + self._count = None + self.discriminator = None + + if logical_cluster_tasks is not None: + self.logical_cluster_tasks = logical_cluster_tasks + if count is not None: + self.count = count + + @property + def logical_cluster_tasks(self): + """Gets the logical_cluster_tasks of this ListLogicalClusterTasksResponse. + + 逻辑集群任务信息 + + :return: The logical_cluster_tasks of this ListLogicalClusterTasksResponse. + :rtype: list[:class:`huaweicloudsdkdws.v2.LogicalClusterTaskInfo`] + """ + return self._logical_cluster_tasks + + @logical_cluster_tasks.setter + def logical_cluster_tasks(self, logical_cluster_tasks): + """Sets the logical_cluster_tasks of this ListLogicalClusterTasksResponse. + + 逻辑集群任务信息 + + :param logical_cluster_tasks: The logical_cluster_tasks of this ListLogicalClusterTasksResponse. + :type logical_cluster_tasks: list[:class:`huaweicloudsdkdws.v2.LogicalClusterTaskInfo`] + """ + self._logical_cluster_tasks = logical_cluster_tasks + + @property + def count(self): + """Gets the count of this ListLogicalClusterTasksResponse. + + 逻辑集群任务总数 + + :return: The count of this ListLogicalClusterTasksResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListLogicalClusterTasksResponse. + + 逻辑集群任务总数 + + :param count: The count of this ListLogicalClusterTasksResponse. + :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, ListLogicalClusterTasksResponse): + 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-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_volumes_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_volumes_request.py new file mode 100644 index 0000000000..6492558871 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_volumes_request.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListLogicalClusterVolumesRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, cluster_id=None, offset=None, limit=None): + """ListLogicalClusterVolumesRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param offset: 分页查询,偏移 + :type offset: int + :param limit: 分页查询,每页显示的条目数量 + :type limit: int + """ + + + + self._cluster_id = None + self._offset = None + self._limit = None + self.discriminator = None + + self.cluster_id = cluster_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def cluster_id(self): + """Gets the cluster_id of this ListLogicalClusterVolumesRequest. + + 集群ID + + :return: The cluster_id of this ListLogicalClusterVolumesRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListLogicalClusterVolumesRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ListLogicalClusterVolumesRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def offset(self): + """Gets the offset of this ListLogicalClusterVolumesRequest. + + 分页查询,偏移 + + :return: The offset of this ListLogicalClusterVolumesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListLogicalClusterVolumesRequest. + + 分页查询,偏移 + + :param offset: The offset of this ListLogicalClusterVolumesRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListLogicalClusterVolumesRequest. + + 分页查询,每页显示的条目数量 + + :return: The limit of this ListLogicalClusterVolumesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListLogicalClusterVolumesRequest. + + 分页查询,每页显示的条目数量 + + :param limit: The limit of this ListLogicalClusterVolumesRequest. + :type limit: int + """ + self._limit = limit + + 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, ListLogicalClusterVolumesRequest): + 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-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_volumes_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_volumes_response.py new file mode 100644 index 0000000000..cfdf85f93f --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_cluster_volumes_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 ListLogicalClusterVolumesResponse(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 = { + 'volumes': 'list[LogicalClusterVolume]', + 'count': 'int' + } + + attribute_map = { + 'volumes': 'volumes', + 'count': 'count' + } + + def __init__(self, volumes=None, count=None): + """ListLogicalClusterVolumesResponse + + The model defined in huaweicloud sdk + + :param volumes: 逻辑集群磁盘信息列表 + :type volumes: list[:class:`huaweicloudsdkdws.v2.LogicalClusterVolume`] + :param count: 逻辑集群磁盘总数 + :type count: int + """ + + super(ListLogicalClusterVolumesResponse, self).__init__() + + self._volumes = None + self._count = None + self.discriminator = None + + if volumes is not None: + self.volumes = volumes + if count is not None: + self.count = count + + @property + def volumes(self): + """Gets the volumes of this ListLogicalClusterVolumesResponse. + + 逻辑集群磁盘信息列表 + + :return: The volumes of this ListLogicalClusterVolumesResponse. + :rtype: list[:class:`huaweicloudsdkdws.v2.LogicalClusterVolume`] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """Sets the volumes of this ListLogicalClusterVolumesResponse. + + 逻辑集群磁盘信息列表 + + :param volumes: The volumes of this ListLogicalClusterVolumesResponse. + :type volumes: list[:class:`huaweicloudsdkdws.v2.LogicalClusterVolume`] + """ + self._volumes = volumes + + @property + def count(self): + """Gets the count of this ListLogicalClusterVolumesResponse. + + 逻辑集群磁盘总数 + + :return: The count of this ListLogicalClusterVolumesResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListLogicalClusterVolumesResponse. + + 逻辑集群磁盘总数 + + :param count: The count of this ListLogicalClusterVolumesResponse. + :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, ListLogicalClusterVolumesResponse): + 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-dws/huaweicloudsdkdws/v2/model/list_logical_clusters_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_clusters_request.py new file mode 100644 index 0000000000..27b2db2740 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_clusters_request.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListLogicalClustersRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, cluster_id=None, offset=None, limit=None): + """ListLogicalClustersRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param offset: 分页查询,偏移 + :type offset: int + :param limit: 分页查询,每页显示的条目数量 + :type limit: int + """ + + + + self._cluster_id = None + self._offset = None + self._limit = None + self.discriminator = None + + self.cluster_id = cluster_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def cluster_id(self): + """Gets the cluster_id of this ListLogicalClustersRequest. + + 集群ID + + :return: The cluster_id of this ListLogicalClustersRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListLogicalClustersRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ListLogicalClustersRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def offset(self): + """Gets the offset of this ListLogicalClustersRequest. + + 分页查询,偏移 + + :return: The offset of this ListLogicalClustersRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListLogicalClustersRequest. + + 分页查询,偏移 + + :param offset: The offset of this ListLogicalClustersRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListLogicalClustersRequest. + + 分页查询,每页显示的条目数量 + + :return: The limit of this ListLogicalClustersRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListLogicalClustersRequest. + + 分页查询,每页显示的条目数量 + + :param limit: The limit of this ListLogicalClustersRequest. + :type limit: int + """ + self._limit = limit + + 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, ListLogicalClustersRequest): + 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-dws/huaweicloudsdkdws/v2/model/list_logical_clusters_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_clusters_response.py new file mode 100644 index 0000000000..32c019c45a --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_logical_clusters_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 ListLogicalClustersResponse(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 = { + 'logical_clusters': 'list[LogicalClusterInfo]', + 'count': 'int', + 'add_enable': 'bool' + } + + attribute_map = { + 'logical_clusters': 'logical_clusters', + 'count': 'count', + 'add_enable': 'add_enable' + } + + def __init__(self, logical_clusters=None, count=None, add_enable=None): + """ListLogicalClustersResponse + + The model defined in huaweicloud sdk + + :param logical_clusters: 逻辑集群列表信息 + :type logical_clusters: list[:class:`huaweicloudsdkdws.v2.LogicalClusterInfo`] + :param count: 逻辑集群总数量 + :type count: int + :param add_enable: 作为互斥结果,如果集群内有其他运维操作,该值为false,此时不能添加逻辑集群 + :type add_enable: bool + """ + + super(ListLogicalClustersResponse, self).__init__() + + self._logical_clusters = None + self._count = None + self._add_enable = None + self.discriminator = None + + if logical_clusters is not None: + self.logical_clusters = logical_clusters + if count is not None: + self.count = count + if add_enable is not None: + self.add_enable = add_enable + + @property + def logical_clusters(self): + """Gets the logical_clusters of this ListLogicalClustersResponse. + + 逻辑集群列表信息 + + :return: The logical_clusters of this ListLogicalClustersResponse. + :rtype: list[:class:`huaweicloudsdkdws.v2.LogicalClusterInfo`] + """ + return self._logical_clusters + + @logical_clusters.setter + def logical_clusters(self, logical_clusters): + """Sets the logical_clusters of this ListLogicalClustersResponse. + + 逻辑集群列表信息 + + :param logical_clusters: The logical_clusters of this ListLogicalClustersResponse. + :type logical_clusters: list[:class:`huaweicloudsdkdws.v2.LogicalClusterInfo`] + """ + self._logical_clusters = logical_clusters + + @property + def count(self): + """Gets the count of this ListLogicalClustersResponse. + + 逻辑集群总数量 + + :return: The count of this ListLogicalClustersResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListLogicalClustersResponse. + + 逻辑集群总数量 + + :param count: The count of this ListLogicalClustersResponse. + :type count: int + """ + self._count = count + + @property + def add_enable(self): + """Gets the add_enable of this ListLogicalClustersResponse. + + 作为互斥结果,如果集群内有其他运维操作,该值为false,此时不能添加逻辑集群 + + :return: The add_enable of this ListLogicalClustersResponse. + :rtype: bool + """ + return self._add_enable + + @add_enable.setter + def add_enable(self, add_enable): + """Sets the add_enable of this ListLogicalClustersResponse. + + 作为互斥结果,如果集群内有其他运维操作,该值为false,此时不能添加逻辑集群 + + :param add_enable: The add_enable of this ListLogicalClustersResponse. + :type add_enable: bool + """ + self._add_enable = add_enable + + 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, ListLogicalClustersResponse): + 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-dws/huaweicloudsdkdws/v2/model/list_lts_logs_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_lts_logs_request.py new file mode 100644 index 0000000000..5e033ef043 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_lts_logs_request.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListLtsLogsRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'limit': 'int', + 'offset': 'int' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'limit': 'limit', + 'offset': 'offset' + } + + def __init__(self, cluster_id=None, limit=None, offset=None): + """ListLtsLogsRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param limit: 查询条数 + :type limit: int + :param offset: 偏移量 + :type offset: int + """ + + + + self._cluster_id = None + self._limit = None + self._offset = None + self.discriminator = None + + self.cluster_id = cluster_id + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + + @property + def cluster_id(self): + """Gets the cluster_id of this ListLtsLogsRequest. + + 集群ID + + :return: The cluster_id of this ListLtsLogsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListLtsLogsRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ListLtsLogsRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def limit(self): + """Gets the limit of this ListLtsLogsRequest. + + 查询条数 + + :return: The limit of this ListLtsLogsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListLtsLogsRequest. + + 查询条数 + + :param limit: The limit of this ListLtsLogsRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListLtsLogsRequest. + + 偏移量 + + :return: The offset of this ListLtsLogsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListLtsLogsRequest. + + 偏移量 + + :param offset: The offset of this ListLtsLogsRequest. + :type offset: int + """ + self._offset = offset + + 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, ListLtsLogsRequest): + 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-dws/huaweicloudsdkdws/v2/model/list_lts_logs_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_lts_logs_response.py new file mode 100644 index 0000000000..4460288283 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_lts_logs_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 ListLtsLogsResponse(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 = { + 'access_status': 'str', + 'lts_access_list': 'list[LtslogInfo]', + 'count': 'int' + } + + attribute_map = { + 'access_status': 'access_status', + 'lts_access_list': 'lts_access_list', + 'count': 'count' + } + + def __init__(self, access_status=None, lts_access_list=None, count=None): + """ListLtsLogsResponse + + The model defined in huaweicloud sdk + + :param access_status: 日志开启状态。 + :type access_status: str + :param lts_access_list: LTS日志列表。 + :type lts_access_list: list[:class:`huaweicloudsdkdws.v2.LtslogInfo`] + :param count: 总数量 + :type count: int + """ + + super(ListLtsLogsResponse, self).__init__() + + self._access_status = None + self._lts_access_list = None + self._count = None + self.discriminator = None + + if access_status is not None: + self.access_status = access_status + if lts_access_list is not None: + self.lts_access_list = lts_access_list + if count is not None: + self.count = count + + @property + def access_status(self): + """Gets the access_status of this ListLtsLogsResponse. + + 日志开启状态。 + + :return: The access_status of this ListLtsLogsResponse. + :rtype: str + """ + return self._access_status + + @access_status.setter + def access_status(self, access_status): + """Sets the access_status of this ListLtsLogsResponse. + + 日志开启状态。 + + :param access_status: The access_status of this ListLtsLogsResponse. + :type access_status: str + """ + self._access_status = access_status + + @property + def lts_access_list(self): + """Gets the lts_access_list of this ListLtsLogsResponse. + + LTS日志列表。 + + :return: The lts_access_list of this ListLtsLogsResponse. + :rtype: list[:class:`huaweicloudsdkdws.v2.LtslogInfo`] + """ + return self._lts_access_list + + @lts_access_list.setter + def lts_access_list(self, lts_access_list): + """Sets the lts_access_list of this ListLtsLogsResponse. + + LTS日志列表。 + + :param lts_access_list: The lts_access_list of this ListLtsLogsResponse. + :type lts_access_list: list[:class:`huaweicloudsdkdws.v2.LtslogInfo`] + """ + self._lts_access_list = lts_access_list + + @property + def count(self): + """Gets the count of this ListLtsLogsResponse. + + 总数量 + + :return: The count of this ListLtsLogsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListLtsLogsResponse. + + 总数量 + + :param count: The count of this ListLtsLogsResponse. + :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, ListLtsLogsResponse): + 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-dws/huaweicloudsdkdws/v2/model/list_queries_condition.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_condition.py new file mode 100644 index 0000000000..551c7043b9 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_condition.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListQueriesCondition: + + """ + 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 = { + 'field': 'str', + 'value': 'str', + 'operator': 'str' + } + + attribute_map = { + 'field': 'field', + 'value': 'value', + 'operator': 'operator' + } + + def __init__(self, field=None, value=None, operator=None): + """ListQueriesCondition + + The model defined in huaweicloud sdk + + :param field: 字段名称参考下方字段列表 systemQuery boolean 是否隐藏系统查询 userName String 用户名称 applicationName String 应用名称 dbName String 数据库名称 resourcePool String 资源池 queryStatus String 查询状态 enqueue String 排队状态 lane String 快慢车道 instName String 接入CN pid String 会话ID blockTime int 阻塞时间(ms) duration int 执行时间(ms) minCpuTime int 最小cpu时间(ms) maxCpuTime int 最大cpu时间(ms) totalCpuTime int CPU时间(ms) cpuSkewPercent int CPU时间倾斜(%) spillInfo String dn下盘信息 minSpillSize int dn上下盘的最小数据量(mb) maxSpillSize int dn上下盘的最大数据量(mb) averageSpillSize int 平均下盘量(MB) spillSkewPercent int dn间下盘倾斜率 queryBand String 作业类型 jobName String 任务名称 jobInst String 任务实例 clientHostname String 主机名称 clientPort String TCP端口 waiting boolean 是否等待 estimateTotalTime int 预估总执行时间(ms) estimateLeftTime int 预估剩余时间(ms) controlGroup String cgroup minPeakMemory int dn最小内存峰值(mb) maxPeakMemory int dn最大内存峰值(mb) averagePeakMemory int 内存使用平均值(mb) memorySkewPercent int 各dn内存使用倾斜率 estimateMemory int 预估使用内存(mb) minDnTime int dn最小执行时间(ms) maxDnTime int dn最大执行时间(ms) averageDnTime int dn平均执行时间(ms) dntimeSkewPercent int 各dn的执行时间倾斜率 warning String 告警 averagePeakIops int dn每秒平均io 峰值(列存是次/s,行存是万次/s) iopsSkewPercent int dn间的io倾斜率 wlmStatus String 语句运行状态 wlmAttrib String 语句属性 + :type field: str + :param value: 字段值 + :type value: str + :param operator: 比较方式: String类型参数:=、!=、like、not like int类型参数:=、!=、>、<、>=、<= boolean类型参数:=、!= + :type operator: str + """ + + + + self._field = None + self._value = None + self._operator = None + self.discriminator = None + + self.field = field + self.value = value + self.operator = operator + + @property + def field(self): + """Gets the field of this ListQueriesCondition. + + 字段名称参考下方字段列表 systemQuery boolean 是否隐藏系统查询 userName String 用户名称 applicationName String 应用名称 dbName String 数据库名称 resourcePool String 资源池 queryStatus String 查询状态 enqueue String 排队状态 lane String 快慢车道 instName String 接入CN pid String 会话ID blockTime int 阻塞时间(ms) duration int 执行时间(ms) minCpuTime int 最小cpu时间(ms) maxCpuTime int 最大cpu时间(ms) totalCpuTime int CPU时间(ms) cpuSkewPercent int CPU时间倾斜(%) spillInfo String dn下盘信息 minSpillSize int dn上下盘的最小数据量(mb) maxSpillSize int dn上下盘的最大数据量(mb) averageSpillSize int 平均下盘量(MB) spillSkewPercent int dn间下盘倾斜率 queryBand String 作业类型 jobName String 任务名称 jobInst String 任务实例 clientHostname String 主机名称 clientPort String TCP端口 waiting boolean 是否等待 estimateTotalTime int 预估总执行时间(ms) estimateLeftTime int 预估剩余时间(ms) controlGroup String cgroup minPeakMemory int dn最小内存峰值(mb) maxPeakMemory int dn最大内存峰值(mb) averagePeakMemory int 内存使用平均值(mb) memorySkewPercent int 各dn内存使用倾斜率 estimateMemory int 预估使用内存(mb) minDnTime int dn最小执行时间(ms) maxDnTime int dn最大执行时间(ms) averageDnTime int dn平均执行时间(ms) dntimeSkewPercent int 各dn的执行时间倾斜率 warning String 告警 averagePeakIops int dn每秒平均io 峰值(列存是次/s,行存是万次/s) iopsSkewPercent int dn间的io倾斜率 wlmStatus String 语句运行状态 wlmAttrib String 语句属性 + + :return: The field of this ListQueriesCondition. + :rtype: str + """ + return self._field + + @field.setter + def field(self, field): + """Sets the field of this ListQueriesCondition. + + 字段名称参考下方字段列表 systemQuery boolean 是否隐藏系统查询 userName String 用户名称 applicationName String 应用名称 dbName String 数据库名称 resourcePool String 资源池 queryStatus String 查询状态 enqueue String 排队状态 lane String 快慢车道 instName String 接入CN pid String 会话ID blockTime int 阻塞时间(ms) duration int 执行时间(ms) minCpuTime int 最小cpu时间(ms) maxCpuTime int 最大cpu时间(ms) totalCpuTime int CPU时间(ms) cpuSkewPercent int CPU时间倾斜(%) spillInfo String dn下盘信息 minSpillSize int dn上下盘的最小数据量(mb) maxSpillSize int dn上下盘的最大数据量(mb) averageSpillSize int 平均下盘量(MB) spillSkewPercent int dn间下盘倾斜率 queryBand String 作业类型 jobName String 任务名称 jobInst String 任务实例 clientHostname String 主机名称 clientPort String TCP端口 waiting boolean 是否等待 estimateTotalTime int 预估总执行时间(ms) estimateLeftTime int 预估剩余时间(ms) controlGroup String cgroup minPeakMemory int dn最小内存峰值(mb) maxPeakMemory int dn最大内存峰值(mb) averagePeakMemory int 内存使用平均值(mb) memorySkewPercent int 各dn内存使用倾斜率 estimateMemory int 预估使用内存(mb) minDnTime int dn最小执行时间(ms) maxDnTime int dn最大执行时间(ms) averageDnTime int dn平均执行时间(ms) dntimeSkewPercent int 各dn的执行时间倾斜率 warning String 告警 averagePeakIops int dn每秒平均io 峰值(列存是次/s,行存是万次/s) iopsSkewPercent int dn间的io倾斜率 wlmStatus String 语句运行状态 wlmAttrib String 语句属性 + + :param field: The field of this ListQueriesCondition. + :type field: str + """ + self._field = field + + @property + def value(self): + """Gets the value of this ListQueriesCondition. + + 字段值 + + :return: The value of this ListQueriesCondition. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ListQueriesCondition. + + 字段值 + + :param value: The value of this ListQueriesCondition. + :type value: str + """ + self._value = value + + @property + def operator(self): + """Gets the operator of this ListQueriesCondition. + + 比较方式: String类型参数:=、!=、like、not like int类型参数:=、!=、>、<、>=、<= boolean类型参数:=、!= + + :return: The operator of this ListQueriesCondition. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this ListQueriesCondition. + + 比较方式: String类型参数:=、!=、like、not like int类型参数:=、!=、>、<、>=、<= boolean类型参数:=、!= + + :param operator: The operator of this ListQueriesCondition. + :type operator: str + """ + self._operator = operator + + 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, ListQueriesCondition): + 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-dws/huaweicloudsdkdws/v2/model/list_queries_data.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_data.py new file mode 100644 index 0000000000..1f0abd21e9 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_data.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListQueriesData: + + """ + 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 = { + 'queries': 'list[ListQueriesDto]', + 'status': 'ListQueriesStatus' + } + + attribute_map = { + 'queries': 'queries', + 'status': 'status' + } + + def __init__(self, queries=None, status=None): + """ListQueriesData + + The model defined in huaweicloud sdk + + :param queries: 查询数据列表。 + :type queries: list[:class:`huaweicloudsdkdws.v2.ListQueriesDto`] + :param status: + :type status: :class:`huaweicloudsdkdws.v2.ListQueriesStatus` + """ + + + + self._queries = None + self._status = None + self.discriminator = None + + if queries is not None: + self.queries = queries + if status is not None: + self.status = status + + @property + def queries(self): + """Gets the queries of this ListQueriesData. + + 查询数据列表。 + + :return: The queries of this ListQueriesData. + :rtype: list[:class:`huaweicloudsdkdws.v2.ListQueriesDto`] + """ + return self._queries + + @queries.setter + def queries(self, queries): + """Sets the queries of this ListQueriesData. + + 查询数据列表。 + + :param queries: The queries of this ListQueriesData. + :type queries: list[:class:`huaweicloudsdkdws.v2.ListQueriesDto`] + """ + self._queries = queries + + @property + def status(self): + """Gets the status of this ListQueriesData. + + :return: The status of this ListQueriesData. + :rtype: :class:`huaweicloudsdkdws.v2.ListQueriesStatus` + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListQueriesData. + + :param status: The status of this ListQueriesData. + :type status: :class:`huaweicloudsdkdws.v2.ListQueriesStatus` + """ + self._status = status + + 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, ListQueriesData): + 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-dws/huaweicloudsdkdws/v2/model/list_queries_dto.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_dto.py new file mode 100644 index 0000000000..7812912506 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_dto.py @@ -0,0 +1,1826 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListQueriesDto: + + """ + 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 = { + 'virtual_cluster_id': 'int', + 'ctime': 'int', + 'pid': 'str', + 'inst_name': 'str', + 'waiting': 'bool', + 'enqueue': 'str', + 'warning': 'str', + 'query': 'str', + 'lane': 'str', + 'db_name': 'str', + 'priority': 'str', + 'query_id': 'str', + 'query_band': 'str', + 'job_name': 'str', + 'job_inst': 'str', + 'user_name': 'str', + 'application_name': 'str', + 'client_address': 'str', + 'client_hostname': 'str', + 'client_port': 'str', + 'start_time': 'int', + 'block_time': 'int', + 'duration': 'int', + 'estimate_total_time': 'int', + 'estimate_left_time': 'int', + 'resource_pool': 'str', + 'control_group': 'str', + 'min_peak_memory': 'int', + 'max_peak_memory': 'int', + 'average_peak_memory': 'int', + 'memory_skew_percent': 'int', + 'estimate_memory': 'int', + 'spill_info': 'str', + 'min_spill_size': 'int', + 'max_spill_size': 'int', + 'average_spill_size': 'int', + 'spill_skew_percent': 'int', + 'min_dn_time': 'int', + 'max_dn_time': 'int', + 'average_dn_time': 'int', + 'dntime_skew_percent': 'int', + 'min_cpu_time': 'int', + 'max_cpu_time': 'int', + 'total_cpu_time': 'int', + 'cpu_skew_percent': 'int', + 'average_peak_iops': 'int', + 'iops_skew_percent': 'int', + 'max_peak_iops': 'int', + 'min_peak_iops': 'int', + 'query_plan': 'str', + 'query_status': 'str', + 'wlm_status': 'str', + 'wlm_attrib': 'str', + 'system_query': 'bool', + 'backend_start': 'int', + 'elapsed_time': 'int', + 'curr_xact_start': 'int', + 'state_change': 'int', + 'query_start': 'int', + 'query_elapsed_time': 'int' + } + + attribute_map = { + 'virtual_cluster_id': 'virtual_cluster_id', + 'ctime': 'ctime', + 'pid': 'pid', + 'inst_name': 'inst_name', + 'waiting': 'waiting', + 'enqueue': 'enqueue', + 'warning': 'warning', + 'query': 'query', + 'lane': 'lane', + 'db_name': 'db_name', + 'priority': 'priority', + 'query_id': 'query_id', + 'query_band': 'query_band', + 'job_name': 'job_name', + 'job_inst': 'job_inst', + 'user_name': 'user_name', + 'application_name': 'application_name', + 'client_address': 'client_address', + 'client_hostname': 'client_hostname', + 'client_port': 'client_port', + 'start_time': 'start_time', + 'block_time': 'block_time', + 'duration': 'duration', + 'estimate_total_time': 'estimate_total_time', + 'estimate_left_time': 'estimate_left_time', + 'resource_pool': 'resource_pool', + 'control_group': 'control_group', + 'min_peak_memory': 'min_peak_memory', + 'max_peak_memory': 'max_peak_memory', + 'average_peak_memory': 'average_peak_memory', + 'memory_skew_percent': 'memory_skew_percent', + 'estimate_memory': 'estimate_memory', + 'spill_info': 'spill_info', + 'min_spill_size': 'min_spill_size', + 'max_spill_size': 'max_spill_size', + 'average_spill_size': 'average_spill_size', + 'spill_skew_percent': 'spill_skew_percent', + 'min_dn_time': 'min_dn_time', + 'max_dn_time': 'max_dn_time', + 'average_dn_time': 'average_dn_time', + 'dntime_skew_percent': 'dntime_skew_percent', + 'min_cpu_time': 'min_cpu_time', + 'max_cpu_time': 'max_cpu_time', + 'total_cpu_time': 'total_cpu_time', + 'cpu_skew_percent': 'cpu_skew_percent', + 'average_peak_iops': 'average_peak_iops', + 'iops_skew_percent': 'iops_skew_percent', + 'max_peak_iops': 'max_peak_iops', + 'min_peak_iops': 'min_peak_iops', + 'query_plan': 'query_plan', + 'query_status': 'query_status', + 'wlm_status': 'wlm_status', + 'wlm_attrib': 'wlm_attrib', + 'system_query': 'system_query', + 'backend_start': 'backend_start', + 'elapsed_time': 'elapsed_time', + 'curr_xact_start': 'curr_xact_start', + 'state_change': 'state_change', + 'query_start': 'query_start', + 'query_elapsed_time': 'query_elapsed_time' + } + + def __init__(self, virtual_cluster_id=None, ctime=None, pid=None, inst_name=None, waiting=None, enqueue=None, warning=None, query=None, lane=None, db_name=None, priority=None, query_id=None, query_band=None, job_name=None, job_inst=None, user_name=None, application_name=None, client_address=None, client_hostname=None, client_port=None, start_time=None, block_time=None, duration=None, estimate_total_time=None, estimate_left_time=None, resource_pool=None, control_group=None, min_peak_memory=None, max_peak_memory=None, average_peak_memory=None, memory_skew_percent=None, estimate_memory=None, spill_info=None, min_spill_size=None, max_spill_size=None, average_spill_size=None, spill_skew_percent=None, min_dn_time=None, max_dn_time=None, average_dn_time=None, dntime_skew_percent=None, min_cpu_time=None, max_cpu_time=None, total_cpu_time=None, cpu_skew_percent=None, average_peak_iops=None, iops_skew_percent=None, max_peak_iops=None, min_peak_iops=None, query_plan=None, query_status=None, wlm_status=None, wlm_attrib=None, system_query=None, backend_start=None, elapsed_time=None, curr_xact_start=None, state_change=None, query_start=None, query_elapsed_time=None): + """ListQueriesDto + + The model defined in huaweicloud sdk + + :param virtual_cluster_id: 虚拟集群ID + :type virtual_cluster_id: int + :param ctime: 采集时间 + :type ctime: int + :param pid: 会话id。 + :type pid: str + :param inst_name: 实例名称。 + :type inst_name: str + :param waiting: 如果后台当前正等待锁则为true。 + :type waiting: bool + :param enqueue: 工作负载管理资源状态。 + :type enqueue: str + :param warning: 主要显示如下几类告警信息以及sql自诊断调优相关告警。 + :type warning: str + :param query: 查询语句。 + :type query: str + :param lane: 快慢车道 (fast or slow)。 + :type lane: str + :param db_name: 数据库名称。 + :type db_name: str + :param priority: job在资源池中的优先级,取值:1,2,4,8(rush、high、medium、low)。 + :type priority: str + :param query_id: 语句执行使用的内部query_id。 + :type query_id: str + :param query_band: 用于标示作业类型,可通过guc参数query_band进行设置,默认为空字符串。 + :type query_band: str + :param job_name: 这个值是从query_band的字段中取出来的,位置0。 + :type job_name: str + :param job_inst: 这个值是从query_band的字段中取出来的,位置1。 + :type job_inst: str + :param user_name: 连接到后端的用户名。 + :type user_name: str + :param application_name: 连接到后端的应用名。 + :type application_name: str + :param client_address: 连接到后端的客户端的ip地址。 + :type client_address: str + :param client_hostname: 客户端的主机名。 + :type client_hostname: str + :param client_port: 客户端用于与后端通讯的tcp端口号。 + :type client_port: str + :param start_time: 语句执行的开始时间。 + :type start_time: int + :param block_time: 语句执行前的阻塞时间 (单位ms)。 + :type block_time: int + :param duration: 语句已经执行的时间 (单位ms)。 + :type duration: int + :param estimate_total_time: 语句执行预估总时间 (单位ms)。 + :type estimate_total_time: int + :param estimate_left_time: 语句执行预估剩余时间 (单位ms)。 + :type estimate_left_time: int + :param resource_pool: 用户使用的资源池。 + :type resource_pool: str + :param control_group: 语句所使用的cgroup。 + :type control_group: str + :param min_peak_memory: 语句在所有dn上的最小内存峰值 (单位mb)。 + :type min_peak_memory: int + :param max_peak_memory: 语句在所有dn上的最大内存峰值 (单位mb)。 + :type max_peak_memory: int + :param average_peak_memory: 语句执行过程中的内存使用平均值 (单位mb)。 + :type average_peak_memory: int + :param memory_skew_percent: 语句在各dn间的内存使用倾斜率。 + :type memory_skew_percent: int + :param estimate_memory: 语句预估使用内存 (单位mb)。 + :type estimate_memory: int + :param spill_info: 语句在所有dn上的下盘信息。 + :type spill_info: str + :param min_spill_size: 若发生下盘,所有dn上下盘的最小数据量 (单位mb) 默认为0。 + :type min_spill_size: int + :param max_spill_size: 若发生下盘,所有dn上下盘的最大数据量 (单位mb) 默认为0。 + :type max_spill_size: int + :param average_spill_size: 若发生下盘,所有dn上下盘的平均数据量 (单位mb) 默认为0。 + :type average_spill_size: int + :param spill_skew_percent: 若发生下盘,dn间下盘倾斜率。 + :type spill_skew_percent: int + :param min_dn_time: 语句在所有dn上的最小执行时间 (单位ms)。 + :type min_dn_time: int + :param max_dn_time: 语句在所有dn上的最大执行时间 (单位ms)。 + :type max_dn_time: int + :param average_dn_time: 语句在所有dn上的平均执行时间 (单位ms)。 + :type average_dn_time: int + :param dntime_skew_percent: 语句在各dn间的执行时间倾斜率。 + :type dntime_skew_percent: int + :param min_cpu_time: 语句在所有dn上的最小cpu时间 (单位ms)。 + :type min_cpu_time: int + :param max_cpu_time: 语句在所有dn上的最大cpu时间 (单位ms)。 + :type max_cpu_time: int + :param total_cpu_time: 语句在所有dn上的cpu总时间 (单位ms)。 + :type total_cpu_time: int + :param cpu_skew_percent: 语句在各dn间的cpu时间倾斜率。 + :type cpu_skew_percent: int + :param average_peak_iops: 语句在所有dn上的每秒平均io峰值(列存单位是次/s,行存单位是万次/s)。 + :type average_peak_iops: int + :param iops_skew_percent: 语句在dn间的io倾斜率。 + :type iops_skew_percent: int + :param max_peak_iops: 语句在所有dn上的每秒最大io峰值(列存单位是次/s,行存单位是万次/s)。 + :type max_peak_iops: int + :param min_peak_iops: 语句在所有dn上的每秒最小io峰值(列存单位是次/s,行存单位是万次/s)。 + :type min_peak_iops: int + :param query_plan: 查询计划。 + :type query_plan: str + :param query_status: 当前查询语句的实时运行状态 (active, idle, idle in transaction, idle in transaction(aborted), fastpath function call, disabled)。 + :type query_status: str + :param wlm_status: 当前查询语句在资源池上的运行状态 (pending, running, finished, aborted, active, unknown)。 + :type wlm_status: str + :param wlm_attrib: 语句的属性 (ordinary, simple, complicated, internal) + :type wlm_attrib: str + :param system_query: 是否系统查询。 + :type system_query: bool + :param backend_start: 该过程开始的时间,即当客户端连接服务器时。 + :type backend_start: int + :param elapsed_time: 到目前为止的执行时间。 + :type elapsed_time: int + :param curr_xact_start: 启动当前事务的时间,如果没有事务是活跃的,则为null。如果当前查询是首个事务,则这列等同于query_start列。 + :type curr_xact_start: int + :param state_change: 上次状态改变的时间。 + :type state_change: int + :param query_start: 语句执行的开始时间。 + :type query_start: int + :param query_elapsed_time: 语句当前为止的实际执行时间,(单位:s)。 + :type query_elapsed_time: int + """ + + + + self._virtual_cluster_id = None + self._ctime = None + self._pid = None + self._inst_name = None + self._waiting = None + self._enqueue = None + self._warning = None + self._query = None + self._lane = None + self._db_name = None + self._priority = None + self._query_id = None + self._query_band = None + self._job_name = None + self._job_inst = None + self._user_name = None + self._application_name = None + self._client_address = None + self._client_hostname = None + self._client_port = None + self._start_time = None + self._block_time = None + self._duration = None + self._estimate_total_time = None + self._estimate_left_time = None + self._resource_pool = None + self._control_group = None + self._min_peak_memory = None + self._max_peak_memory = None + self._average_peak_memory = None + self._memory_skew_percent = None + self._estimate_memory = None + self._spill_info = None + self._min_spill_size = None + self._max_spill_size = None + self._average_spill_size = None + self._spill_skew_percent = None + self._min_dn_time = None + self._max_dn_time = None + self._average_dn_time = None + self._dntime_skew_percent = None + self._min_cpu_time = None + self._max_cpu_time = None + self._total_cpu_time = None + self._cpu_skew_percent = None + self._average_peak_iops = None + self._iops_skew_percent = None + self._max_peak_iops = None + self._min_peak_iops = None + self._query_plan = None + self._query_status = None + self._wlm_status = None + self._wlm_attrib = None + self._system_query = None + self._backend_start = None + self._elapsed_time = None + self._curr_xact_start = None + self._state_change = None + self._query_start = None + self._query_elapsed_time = None + self.discriminator = None + + if virtual_cluster_id is not None: + self.virtual_cluster_id = virtual_cluster_id + if ctime is not None: + self.ctime = ctime + if pid is not None: + self.pid = pid + if inst_name is not None: + self.inst_name = inst_name + if waiting is not None: + self.waiting = waiting + if enqueue is not None: + self.enqueue = enqueue + if warning is not None: + self.warning = warning + if query is not None: + self.query = query + if lane is not None: + self.lane = lane + if db_name is not None: + self.db_name = db_name + if priority is not None: + self.priority = priority + if query_id is not None: + self.query_id = query_id + if query_band is not None: + self.query_band = query_band + if job_name is not None: + self.job_name = job_name + if job_inst is not None: + self.job_inst = job_inst + if user_name is not None: + self.user_name = user_name + if application_name is not None: + self.application_name = application_name + if client_address is not None: + self.client_address = client_address + if client_hostname is not None: + self.client_hostname = client_hostname + if client_port is not None: + self.client_port = client_port + if start_time is not None: + self.start_time = start_time + if block_time is not None: + self.block_time = block_time + if duration is not None: + self.duration = duration + if estimate_total_time is not None: + self.estimate_total_time = estimate_total_time + if estimate_left_time is not None: + self.estimate_left_time = estimate_left_time + if resource_pool is not None: + self.resource_pool = resource_pool + if control_group is not None: + self.control_group = control_group + if min_peak_memory is not None: + self.min_peak_memory = min_peak_memory + if max_peak_memory is not None: + self.max_peak_memory = max_peak_memory + if average_peak_memory is not None: + self.average_peak_memory = average_peak_memory + if memory_skew_percent is not None: + self.memory_skew_percent = memory_skew_percent + if estimate_memory is not None: + self.estimate_memory = estimate_memory + if spill_info is not None: + self.spill_info = spill_info + if min_spill_size is not None: + self.min_spill_size = min_spill_size + if max_spill_size is not None: + self.max_spill_size = max_spill_size + if average_spill_size is not None: + self.average_spill_size = average_spill_size + if spill_skew_percent is not None: + self.spill_skew_percent = spill_skew_percent + if min_dn_time is not None: + self.min_dn_time = min_dn_time + if max_dn_time is not None: + self.max_dn_time = max_dn_time + if average_dn_time is not None: + self.average_dn_time = average_dn_time + if dntime_skew_percent is not None: + self.dntime_skew_percent = dntime_skew_percent + if min_cpu_time is not None: + self.min_cpu_time = min_cpu_time + if max_cpu_time is not None: + self.max_cpu_time = max_cpu_time + if total_cpu_time is not None: + self.total_cpu_time = total_cpu_time + if cpu_skew_percent is not None: + self.cpu_skew_percent = cpu_skew_percent + if average_peak_iops is not None: + self.average_peak_iops = average_peak_iops + if iops_skew_percent is not None: + self.iops_skew_percent = iops_skew_percent + if max_peak_iops is not None: + self.max_peak_iops = max_peak_iops + if min_peak_iops is not None: + self.min_peak_iops = min_peak_iops + if query_plan is not None: + self.query_plan = query_plan + if query_status is not None: + self.query_status = query_status + if wlm_status is not None: + self.wlm_status = wlm_status + if wlm_attrib is not None: + self.wlm_attrib = wlm_attrib + if system_query is not None: + self.system_query = system_query + if backend_start is not None: + self.backend_start = backend_start + if elapsed_time is not None: + self.elapsed_time = elapsed_time + if curr_xact_start is not None: + self.curr_xact_start = curr_xact_start + if state_change is not None: + self.state_change = state_change + if query_start is not None: + self.query_start = query_start + if query_elapsed_time is not None: + self.query_elapsed_time = query_elapsed_time + + @property + def virtual_cluster_id(self): + """Gets the virtual_cluster_id of this ListQueriesDto. + + 虚拟集群ID + + :return: The virtual_cluster_id of this ListQueriesDto. + :rtype: int + """ + return self._virtual_cluster_id + + @virtual_cluster_id.setter + def virtual_cluster_id(self, virtual_cluster_id): + """Sets the virtual_cluster_id of this ListQueriesDto. + + 虚拟集群ID + + :param virtual_cluster_id: The virtual_cluster_id of this ListQueriesDto. + :type virtual_cluster_id: int + """ + self._virtual_cluster_id = virtual_cluster_id + + @property + def ctime(self): + """Gets the ctime of this ListQueriesDto. + + 采集时间 + + :return: The ctime of this ListQueriesDto. + :rtype: int + """ + return self._ctime + + @ctime.setter + def ctime(self, ctime): + """Sets the ctime of this ListQueriesDto. + + 采集时间 + + :param ctime: The ctime of this ListQueriesDto. + :type ctime: int + """ + self._ctime = ctime + + @property + def pid(self): + """Gets the pid of this ListQueriesDto. + + 会话id。 + + :return: The pid of this ListQueriesDto. + :rtype: str + """ + return self._pid + + @pid.setter + def pid(self, pid): + """Sets the pid of this ListQueriesDto. + + 会话id。 + + :param pid: The pid of this ListQueriesDto. + :type pid: str + """ + self._pid = pid + + @property + def inst_name(self): + """Gets the inst_name of this ListQueriesDto. + + 实例名称。 + + :return: The inst_name of this ListQueriesDto. + :rtype: str + """ + return self._inst_name + + @inst_name.setter + def inst_name(self, inst_name): + """Sets the inst_name of this ListQueriesDto. + + 实例名称。 + + :param inst_name: The inst_name of this ListQueriesDto. + :type inst_name: str + """ + self._inst_name = inst_name + + @property + def waiting(self): + """Gets the waiting of this ListQueriesDto. + + 如果后台当前正等待锁则为true。 + + :return: The waiting of this ListQueriesDto. + :rtype: bool + """ + return self._waiting + + @waiting.setter + def waiting(self, waiting): + """Sets the waiting of this ListQueriesDto. + + 如果后台当前正等待锁则为true。 + + :param waiting: The waiting of this ListQueriesDto. + :type waiting: bool + """ + self._waiting = waiting + + @property + def enqueue(self): + """Gets the enqueue of this ListQueriesDto. + + 工作负载管理资源状态。 + + :return: The enqueue of this ListQueriesDto. + :rtype: str + """ + return self._enqueue + + @enqueue.setter + def enqueue(self, enqueue): + """Sets the enqueue of this ListQueriesDto. + + 工作负载管理资源状态。 + + :param enqueue: The enqueue of this ListQueriesDto. + :type enqueue: str + """ + self._enqueue = enqueue + + @property + def warning(self): + """Gets the warning of this ListQueriesDto. + + 主要显示如下几类告警信息以及sql自诊断调优相关告警。 + + :return: The warning of this ListQueriesDto. + :rtype: str + """ + return self._warning + + @warning.setter + def warning(self, warning): + """Sets the warning of this ListQueriesDto. + + 主要显示如下几类告警信息以及sql自诊断调优相关告警。 + + :param warning: The warning of this ListQueriesDto. + :type warning: str + """ + self._warning = warning + + @property + def query(self): + """Gets the query of this ListQueriesDto. + + 查询语句。 + + :return: The query of this ListQueriesDto. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this ListQueriesDto. + + 查询语句。 + + :param query: The query of this ListQueriesDto. + :type query: str + """ + self._query = query + + @property + def lane(self): + """Gets the lane of this ListQueriesDto. + + 快慢车道 (fast or slow)。 + + :return: The lane of this ListQueriesDto. + :rtype: str + """ + return self._lane + + @lane.setter + def lane(self, lane): + """Sets the lane of this ListQueriesDto. + + 快慢车道 (fast or slow)。 + + :param lane: The lane of this ListQueriesDto. + :type lane: str + """ + self._lane = lane + + @property + def db_name(self): + """Gets the db_name of this ListQueriesDto. + + 数据库名称。 + + :return: The db_name of this ListQueriesDto. + :rtype: str + """ + return self._db_name + + @db_name.setter + def db_name(self, db_name): + """Sets the db_name of this ListQueriesDto. + + 数据库名称。 + + :param db_name: The db_name of this ListQueriesDto. + :type db_name: str + """ + self._db_name = db_name + + @property + def priority(self): + """Gets the priority of this ListQueriesDto. + + job在资源池中的优先级,取值:1,2,4,8(rush、high、medium、low)。 + + :return: The priority of this ListQueriesDto. + :rtype: str + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this ListQueriesDto. + + job在资源池中的优先级,取值:1,2,4,8(rush、high、medium、low)。 + + :param priority: The priority of this ListQueriesDto. + :type priority: str + """ + self._priority = priority + + @property + def query_id(self): + """Gets the query_id of this ListQueriesDto. + + 语句执行使用的内部query_id。 + + :return: The query_id of this ListQueriesDto. + :rtype: str + """ + return self._query_id + + @query_id.setter + def query_id(self, query_id): + """Sets the query_id of this ListQueriesDto. + + 语句执行使用的内部query_id。 + + :param query_id: The query_id of this ListQueriesDto. + :type query_id: str + """ + self._query_id = query_id + + @property + def query_band(self): + """Gets the query_band of this ListQueriesDto. + + 用于标示作业类型,可通过guc参数query_band进行设置,默认为空字符串。 + + :return: The query_band of this ListQueriesDto. + :rtype: str + """ + return self._query_band + + @query_band.setter + def query_band(self, query_band): + """Sets the query_band of this ListQueriesDto. + + 用于标示作业类型,可通过guc参数query_band进行设置,默认为空字符串。 + + :param query_band: The query_band of this ListQueriesDto. + :type query_band: str + """ + self._query_band = query_band + + @property + def job_name(self): + """Gets the job_name of this ListQueriesDto. + + 这个值是从query_band的字段中取出来的,位置0。 + + :return: The job_name of this ListQueriesDto. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this ListQueriesDto. + + 这个值是从query_band的字段中取出来的,位置0。 + + :param job_name: The job_name of this ListQueriesDto. + :type job_name: str + """ + self._job_name = job_name + + @property + def job_inst(self): + """Gets the job_inst of this ListQueriesDto. + + 这个值是从query_band的字段中取出来的,位置1。 + + :return: The job_inst of this ListQueriesDto. + :rtype: str + """ + return self._job_inst + + @job_inst.setter + def job_inst(self, job_inst): + """Sets the job_inst of this ListQueriesDto. + + 这个值是从query_band的字段中取出来的,位置1。 + + :param job_inst: The job_inst of this ListQueriesDto. + :type job_inst: str + """ + self._job_inst = job_inst + + @property + def user_name(self): + """Gets the user_name of this ListQueriesDto. + + 连接到后端的用户名。 + + :return: The user_name of this ListQueriesDto. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """Sets the user_name of this ListQueriesDto. + + 连接到后端的用户名。 + + :param user_name: The user_name of this ListQueriesDto. + :type user_name: str + """ + self._user_name = user_name + + @property + def application_name(self): + """Gets the application_name of this ListQueriesDto. + + 连接到后端的应用名。 + + :return: The application_name of this ListQueriesDto. + :rtype: str + """ + return self._application_name + + @application_name.setter + def application_name(self, application_name): + """Sets the application_name of this ListQueriesDto. + + 连接到后端的应用名。 + + :param application_name: The application_name of this ListQueriesDto. + :type application_name: str + """ + self._application_name = application_name + + @property + def client_address(self): + """Gets the client_address of this ListQueriesDto. + + 连接到后端的客户端的ip地址。 + + :return: The client_address of this ListQueriesDto. + :rtype: str + """ + return self._client_address + + @client_address.setter + def client_address(self, client_address): + """Sets the client_address of this ListQueriesDto. + + 连接到后端的客户端的ip地址。 + + :param client_address: The client_address of this ListQueriesDto. + :type client_address: str + """ + self._client_address = client_address + + @property + def client_hostname(self): + """Gets the client_hostname of this ListQueriesDto. + + 客户端的主机名。 + + :return: The client_hostname of this ListQueriesDto. + :rtype: str + """ + return self._client_hostname + + @client_hostname.setter + def client_hostname(self, client_hostname): + """Sets the client_hostname of this ListQueriesDto. + + 客户端的主机名。 + + :param client_hostname: The client_hostname of this ListQueriesDto. + :type client_hostname: str + """ + self._client_hostname = client_hostname + + @property + def client_port(self): + """Gets the client_port of this ListQueriesDto. + + 客户端用于与后端通讯的tcp端口号。 + + :return: The client_port of this ListQueriesDto. + :rtype: str + """ + return self._client_port + + @client_port.setter + def client_port(self, client_port): + """Sets the client_port of this ListQueriesDto. + + 客户端用于与后端通讯的tcp端口号。 + + :param client_port: The client_port of this ListQueriesDto. + :type client_port: str + """ + self._client_port = client_port + + @property + def start_time(self): + """Gets the start_time of this ListQueriesDto. + + 语句执行的开始时间。 + + :return: The start_time of this ListQueriesDto. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListQueriesDto. + + 语句执行的开始时间。 + + :param start_time: The start_time of this ListQueriesDto. + :type start_time: int + """ + self._start_time = start_time + + @property + def block_time(self): + """Gets the block_time of this ListQueriesDto. + + 语句执行前的阻塞时间 (单位ms)。 + + :return: The block_time of this ListQueriesDto. + :rtype: int + """ + return self._block_time + + @block_time.setter + def block_time(self, block_time): + """Sets the block_time of this ListQueriesDto. + + 语句执行前的阻塞时间 (单位ms)。 + + :param block_time: The block_time of this ListQueriesDto. + :type block_time: int + """ + self._block_time = block_time + + @property + def duration(self): + """Gets the duration of this ListQueriesDto. + + 语句已经执行的时间 (单位ms)。 + + :return: The duration of this ListQueriesDto. + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this ListQueriesDto. + + 语句已经执行的时间 (单位ms)。 + + :param duration: The duration of this ListQueriesDto. + :type duration: int + """ + self._duration = duration + + @property + def estimate_total_time(self): + """Gets the estimate_total_time of this ListQueriesDto. + + 语句执行预估总时间 (单位ms)。 + + :return: The estimate_total_time of this ListQueriesDto. + :rtype: int + """ + return self._estimate_total_time + + @estimate_total_time.setter + def estimate_total_time(self, estimate_total_time): + """Sets the estimate_total_time of this ListQueriesDto. + + 语句执行预估总时间 (单位ms)。 + + :param estimate_total_time: The estimate_total_time of this ListQueriesDto. + :type estimate_total_time: int + """ + self._estimate_total_time = estimate_total_time + + @property + def estimate_left_time(self): + """Gets the estimate_left_time of this ListQueriesDto. + + 语句执行预估剩余时间 (单位ms)。 + + :return: The estimate_left_time of this ListQueriesDto. + :rtype: int + """ + return self._estimate_left_time + + @estimate_left_time.setter + def estimate_left_time(self, estimate_left_time): + """Sets the estimate_left_time of this ListQueriesDto. + + 语句执行预估剩余时间 (单位ms)。 + + :param estimate_left_time: The estimate_left_time of this ListQueriesDto. + :type estimate_left_time: int + """ + self._estimate_left_time = estimate_left_time + + @property + def resource_pool(self): + """Gets the resource_pool of this ListQueriesDto. + + 用户使用的资源池。 + + :return: The resource_pool of this ListQueriesDto. + :rtype: str + """ + return self._resource_pool + + @resource_pool.setter + def resource_pool(self, resource_pool): + """Sets the resource_pool of this ListQueriesDto. + + 用户使用的资源池。 + + :param resource_pool: The resource_pool of this ListQueriesDto. + :type resource_pool: str + """ + self._resource_pool = resource_pool + + @property + def control_group(self): + """Gets the control_group of this ListQueriesDto. + + 语句所使用的cgroup。 + + :return: The control_group of this ListQueriesDto. + :rtype: str + """ + return self._control_group + + @control_group.setter + def control_group(self, control_group): + """Sets the control_group of this ListQueriesDto. + + 语句所使用的cgroup。 + + :param control_group: The control_group of this ListQueriesDto. + :type control_group: str + """ + self._control_group = control_group + + @property + def min_peak_memory(self): + """Gets the min_peak_memory of this ListQueriesDto. + + 语句在所有dn上的最小内存峰值 (单位mb)。 + + :return: The min_peak_memory of this ListQueriesDto. + :rtype: int + """ + return self._min_peak_memory + + @min_peak_memory.setter + def min_peak_memory(self, min_peak_memory): + """Sets the min_peak_memory of this ListQueriesDto. + + 语句在所有dn上的最小内存峰值 (单位mb)。 + + :param min_peak_memory: The min_peak_memory of this ListQueriesDto. + :type min_peak_memory: int + """ + self._min_peak_memory = min_peak_memory + + @property + def max_peak_memory(self): + """Gets the max_peak_memory of this ListQueriesDto. + + 语句在所有dn上的最大内存峰值 (单位mb)。 + + :return: The max_peak_memory of this ListQueriesDto. + :rtype: int + """ + return self._max_peak_memory + + @max_peak_memory.setter + def max_peak_memory(self, max_peak_memory): + """Sets the max_peak_memory of this ListQueriesDto. + + 语句在所有dn上的最大内存峰值 (单位mb)。 + + :param max_peak_memory: The max_peak_memory of this ListQueriesDto. + :type max_peak_memory: int + """ + self._max_peak_memory = max_peak_memory + + @property + def average_peak_memory(self): + """Gets the average_peak_memory of this ListQueriesDto. + + 语句执行过程中的内存使用平均值 (单位mb)。 + + :return: The average_peak_memory of this ListQueriesDto. + :rtype: int + """ + return self._average_peak_memory + + @average_peak_memory.setter + def average_peak_memory(self, average_peak_memory): + """Sets the average_peak_memory of this ListQueriesDto. + + 语句执行过程中的内存使用平均值 (单位mb)。 + + :param average_peak_memory: The average_peak_memory of this ListQueriesDto. + :type average_peak_memory: int + """ + self._average_peak_memory = average_peak_memory + + @property + def memory_skew_percent(self): + """Gets the memory_skew_percent of this ListQueriesDto. + + 语句在各dn间的内存使用倾斜率。 + + :return: The memory_skew_percent of this ListQueriesDto. + :rtype: int + """ + return self._memory_skew_percent + + @memory_skew_percent.setter + def memory_skew_percent(self, memory_skew_percent): + """Sets the memory_skew_percent of this ListQueriesDto. + + 语句在各dn间的内存使用倾斜率。 + + :param memory_skew_percent: The memory_skew_percent of this ListQueriesDto. + :type memory_skew_percent: int + """ + self._memory_skew_percent = memory_skew_percent + + @property + def estimate_memory(self): + """Gets the estimate_memory of this ListQueriesDto. + + 语句预估使用内存 (单位mb)。 + + :return: The estimate_memory of this ListQueriesDto. + :rtype: int + """ + return self._estimate_memory + + @estimate_memory.setter + def estimate_memory(self, estimate_memory): + """Sets the estimate_memory of this ListQueriesDto. + + 语句预估使用内存 (单位mb)。 + + :param estimate_memory: The estimate_memory of this ListQueriesDto. + :type estimate_memory: int + """ + self._estimate_memory = estimate_memory + + @property + def spill_info(self): + """Gets the spill_info of this ListQueriesDto. + + 语句在所有dn上的下盘信息。 + + :return: The spill_info of this ListQueriesDto. + :rtype: str + """ + return self._spill_info + + @spill_info.setter + def spill_info(self, spill_info): + """Sets the spill_info of this ListQueriesDto. + + 语句在所有dn上的下盘信息。 + + :param spill_info: The spill_info of this ListQueriesDto. + :type spill_info: str + """ + self._spill_info = spill_info + + @property + def min_spill_size(self): + """Gets the min_spill_size of this ListQueriesDto. + + 若发生下盘,所有dn上下盘的最小数据量 (单位mb) 默认为0。 + + :return: The min_spill_size of this ListQueriesDto. + :rtype: int + """ + return self._min_spill_size + + @min_spill_size.setter + def min_spill_size(self, min_spill_size): + """Sets the min_spill_size of this ListQueriesDto. + + 若发生下盘,所有dn上下盘的最小数据量 (单位mb) 默认为0。 + + :param min_spill_size: The min_spill_size of this ListQueriesDto. + :type min_spill_size: int + """ + self._min_spill_size = min_spill_size + + @property + def max_spill_size(self): + """Gets the max_spill_size of this ListQueriesDto. + + 若发生下盘,所有dn上下盘的最大数据量 (单位mb) 默认为0。 + + :return: The max_spill_size of this ListQueriesDto. + :rtype: int + """ + return self._max_spill_size + + @max_spill_size.setter + def max_spill_size(self, max_spill_size): + """Sets the max_spill_size of this ListQueriesDto. + + 若发生下盘,所有dn上下盘的最大数据量 (单位mb) 默认为0。 + + :param max_spill_size: The max_spill_size of this ListQueriesDto. + :type max_spill_size: int + """ + self._max_spill_size = max_spill_size + + @property + def average_spill_size(self): + """Gets the average_spill_size of this ListQueriesDto. + + 若发生下盘,所有dn上下盘的平均数据量 (单位mb) 默认为0。 + + :return: The average_spill_size of this ListQueriesDto. + :rtype: int + """ + return self._average_spill_size + + @average_spill_size.setter + def average_spill_size(self, average_spill_size): + """Sets the average_spill_size of this ListQueriesDto. + + 若发生下盘,所有dn上下盘的平均数据量 (单位mb) 默认为0。 + + :param average_spill_size: The average_spill_size of this ListQueriesDto. + :type average_spill_size: int + """ + self._average_spill_size = average_spill_size + + @property + def spill_skew_percent(self): + """Gets the spill_skew_percent of this ListQueriesDto. + + 若发生下盘,dn间下盘倾斜率。 + + :return: The spill_skew_percent of this ListQueriesDto. + :rtype: int + """ + return self._spill_skew_percent + + @spill_skew_percent.setter + def spill_skew_percent(self, spill_skew_percent): + """Sets the spill_skew_percent of this ListQueriesDto. + + 若发生下盘,dn间下盘倾斜率。 + + :param spill_skew_percent: The spill_skew_percent of this ListQueriesDto. + :type spill_skew_percent: int + """ + self._spill_skew_percent = spill_skew_percent + + @property + def min_dn_time(self): + """Gets the min_dn_time of this ListQueriesDto. + + 语句在所有dn上的最小执行时间 (单位ms)。 + + :return: The min_dn_time of this ListQueriesDto. + :rtype: int + """ + return self._min_dn_time + + @min_dn_time.setter + def min_dn_time(self, min_dn_time): + """Sets the min_dn_time of this ListQueriesDto. + + 语句在所有dn上的最小执行时间 (单位ms)。 + + :param min_dn_time: The min_dn_time of this ListQueriesDto. + :type min_dn_time: int + """ + self._min_dn_time = min_dn_time + + @property + def max_dn_time(self): + """Gets the max_dn_time of this ListQueriesDto. + + 语句在所有dn上的最大执行时间 (单位ms)。 + + :return: The max_dn_time of this ListQueriesDto. + :rtype: int + """ + return self._max_dn_time + + @max_dn_time.setter + def max_dn_time(self, max_dn_time): + """Sets the max_dn_time of this ListQueriesDto. + + 语句在所有dn上的最大执行时间 (单位ms)。 + + :param max_dn_time: The max_dn_time of this ListQueriesDto. + :type max_dn_time: int + """ + self._max_dn_time = max_dn_time + + @property + def average_dn_time(self): + """Gets the average_dn_time of this ListQueriesDto. + + 语句在所有dn上的平均执行时间 (单位ms)。 + + :return: The average_dn_time of this ListQueriesDto. + :rtype: int + """ + return self._average_dn_time + + @average_dn_time.setter + def average_dn_time(self, average_dn_time): + """Sets the average_dn_time of this ListQueriesDto. + + 语句在所有dn上的平均执行时间 (单位ms)。 + + :param average_dn_time: The average_dn_time of this ListQueriesDto. + :type average_dn_time: int + """ + self._average_dn_time = average_dn_time + + @property + def dntime_skew_percent(self): + """Gets the dntime_skew_percent of this ListQueriesDto. + + 语句在各dn间的执行时间倾斜率。 + + :return: The dntime_skew_percent of this ListQueriesDto. + :rtype: int + """ + return self._dntime_skew_percent + + @dntime_skew_percent.setter + def dntime_skew_percent(self, dntime_skew_percent): + """Sets the dntime_skew_percent of this ListQueriesDto. + + 语句在各dn间的执行时间倾斜率。 + + :param dntime_skew_percent: The dntime_skew_percent of this ListQueriesDto. + :type dntime_skew_percent: int + """ + self._dntime_skew_percent = dntime_skew_percent + + @property + def min_cpu_time(self): + """Gets the min_cpu_time of this ListQueriesDto. + + 语句在所有dn上的最小cpu时间 (单位ms)。 + + :return: The min_cpu_time of this ListQueriesDto. + :rtype: int + """ + return self._min_cpu_time + + @min_cpu_time.setter + def min_cpu_time(self, min_cpu_time): + """Sets the min_cpu_time of this ListQueriesDto. + + 语句在所有dn上的最小cpu时间 (单位ms)。 + + :param min_cpu_time: The min_cpu_time of this ListQueriesDto. + :type min_cpu_time: int + """ + self._min_cpu_time = min_cpu_time + + @property + def max_cpu_time(self): + """Gets the max_cpu_time of this ListQueriesDto. + + 语句在所有dn上的最大cpu时间 (单位ms)。 + + :return: The max_cpu_time of this ListQueriesDto. + :rtype: int + """ + return self._max_cpu_time + + @max_cpu_time.setter + def max_cpu_time(self, max_cpu_time): + """Sets the max_cpu_time of this ListQueriesDto. + + 语句在所有dn上的最大cpu时间 (单位ms)。 + + :param max_cpu_time: The max_cpu_time of this ListQueriesDto. + :type max_cpu_time: int + """ + self._max_cpu_time = max_cpu_time + + @property + def total_cpu_time(self): + """Gets the total_cpu_time of this ListQueriesDto. + + 语句在所有dn上的cpu总时间 (单位ms)。 + + :return: The total_cpu_time of this ListQueriesDto. + :rtype: int + """ + return self._total_cpu_time + + @total_cpu_time.setter + def total_cpu_time(self, total_cpu_time): + """Sets the total_cpu_time of this ListQueriesDto. + + 语句在所有dn上的cpu总时间 (单位ms)。 + + :param total_cpu_time: The total_cpu_time of this ListQueriesDto. + :type total_cpu_time: int + """ + self._total_cpu_time = total_cpu_time + + @property + def cpu_skew_percent(self): + """Gets the cpu_skew_percent of this ListQueriesDto. + + 语句在各dn间的cpu时间倾斜率。 + + :return: The cpu_skew_percent of this ListQueriesDto. + :rtype: int + """ + return self._cpu_skew_percent + + @cpu_skew_percent.setter + def cpu_skew_percent(self, cpu_skew_percent): + """Sets the cpu_skew_percent of this ListQueriesDto. + + 语句在各dn间的cpu时间倾斜率。 + + :param cpu_skew_percent: The cpu_skew_percent of this ListQueriesDto. + :type cpu_skew_percent: int + """ + self._cpu_skew_percent = cpu_skew_percent + + @property + def average_peak_iops(self): + """Gets the average_peak_iops of this ListQueriesDto. + + 语句在所有dn上的每秒平均io峰值(列存单位是次/s,行存单位是万次/s)。 + + :return: The average_peak_iops of this ListQueriesDto. + :rtype: int + """ + return self._average_peak_iops + + @average_peak_iops.setter + def average_peak_iops(self, average_peak_iops): + """Sets the average_peak_iops of this ListQueriesDto. + + 语句在所有dn上的每秒平均io峰值(列存单位是次/s,行存单位是万次/s)。 + + :param average_peak_iops: The average_peak_iops of this ListQueriesDto. + :type average_peak_iops: int + """ + self._average_peak_iops = average_peak_iops + + @property + def iops_skew_percent(self): + """Gets the iops_skew_percent of this ListQueriesDto. + + 语句在dn间的io倾斜率。 + + :return: The iops_skew_percent of this ListQueriesDto. + :rtype: int + """ + return self._iops_skew_percent + + @iops_skew_percent.setter + def iops_skew_percent(self, iops_skew_percent): + """Sets the iops_skew_percent of this ListQueriesDto. + + 语句在dn间的io倾斜率。 + + :param iops_skew_percent: The iops_skew_percent of this ListQueriesDto. + :type iops_skew_percent: int + """ + self._iops_skew_percent = iops_skew_percent + + @property + def max_peak_iops(self): + """Gets the max_peak_iops of this ListQueriesDto. + + 语句在所有dn上的每秒最大io峰值(列存单位是次/s,行存单位是万次/s)。 + + :return: The max_peak_iops of this ListQueriesDto. + :rtype: int + """ + return self._max_peak_iops + + @max_peak_iops.setter + def max_peak_iops(self, max_peak_iops): + """Sets the max_peak_iops of this ListQueriesDto. + + 语句在所有dn上的每秒最大io峰值(列存单位是次/s,行存单位是万次/s)。 + + :param max_peak_iops: The max_peak_iops of this ListQueriesDto. + :type max_peak_iops: int + """ + self._max_peak_iops = max_peak_iops + + @property + def min_peak_iops(self): + """Gets the min_peak_iops of this ListQueriesDto. + + 语句在所有dn上的每秒最小io峰值(列存单位是次/s,行存单位是万次/s)。 + + :return: The min_peak_iops of this ListQueriesDto. + :rtype: int + """ + return self._min_peak_iops + + @min_peak_iops.setter + def min_peak_iops(self, min_peak_iops): + """Sets the min_peak_iops of this ListQueriesDto. + + 语句在所有dn上的每秒最小io峰值(列存单位是次/s,行存单位是万次/s)。 + + :param min_peak_iops: The min_peak_iops of this ListQueriesDto. + :type min_peak_iops: int + """ + self._min_peak_iops = min_peak_iops + + @property + def query_plan(self): + """Gets the query_plan of this ListQueriesDto. + + 查询计划。 + + :return: The query_plan of this ListQueriesDto. + :rtype: str + """ + return self._query_plan + + @query_plan.setter + def query_plan(self, query_plan): + """Sets the query_plan of this ListQueriesDto. + + 查询计划。 + + :param query_plan: The query_plan of this ListQueriesDto. + :type query_plan: str + """ + self._query_plan = query_plan + + @property + def query_status(self): + """Gets the query_status of this ListQueriesDto. + + 当前查询语句的实时运行状态 (active, idle, idle in transaction, idle in transaction(aborted), fastpath function call, disabled)。 + + :return: The query_status of this ListQueriesDto. + :rtype: str + """ + return self._query_status + + @query_status.setter + def query_status(self, query_status): + """Sets the query_status of this ListQueriesDto. + + 当前查询语句的实时运行状态 (active, idle, idle in transaction, idle in transaction(aborted), fastpath function call, disabled)。 + + :param query_status: The query_status of this ListQueriesDto. + :type query_status: str + """ + self._query_status = query_status + + @property + def wlm_status(self): + """Gets the wlm_status of this ListQueriesDto. + + 当前查询语句在资源池上的运行状态 (pending, running, finished, aborted, active, unknown)。 + + :return: The wlm_status of this ListQueriesDto. + :rtype: str + """ + return self._wlm_status + + @wlm_status.setter + def wlm_status(self, wlm_status): + """Sets the wlm_status of this ListQueriesDto. + + 当前查询语句在资源池上的运行状态 (pending, running, finished, aborted, active, unknown)。 + + :param wlm_status: The wlm_status of this ListQueriesDto. + :type wlm_status: str + """ + self._wlm_status = wlm_status + + @property + def wlm_attrib(self): + """Gets the wlm_attrib of this ListQueriesDto. + + 语句的属性 (ordinary, simple, complicated, internal) + + :return: The wlm_attrib of this ListQueriesDto. + :rtype: str + """ + return self._wlm_attrib + + @wlm_attrib.setter + def wlm_attrib(self, wlm_attrib): + """Sets the wlm_attrib of this ListQueriesDto. + + 语句的属性 (ordinary, simple, complicated, internal) + + :param wlm_attrib: The wlm_attrib of this ListQueriesDto. + :type wlm_attrib: str + """ + self._wlm_attrib = wlm_attrib + + @property + def system_query(self): + """Gets the system_query of this ListQueriesDto. + + 是否系统查询。 + + :return: The system_query of this ListQueriesDto. + :rtype: bool + """ + return self._system_query + + @system_query.setter + def system_query(self, system_query): + """Sets the system_query of this ListQueriesDto. + + 是否系统查询。 + + :param system_query: The system_query of this ListQueriesDto. + :type system_query: bool + """ + self._system_query = system_query + + @property + def backend_start(self): + """Gets the backend_start of this ListQueriesDto. + + 该过程开始的时间,即当客户端连接服务器时。 + + :return: The backend_start of this ListQueriesDto. + :rtype: int + """ + return self._backend_start + + @backend_start.setter + def backend_start(self, backend_start): + """Sets the backend_start of this ListQueriesDto. + + 该过程开始的时间,即当客户端连接服务器时。 + + :param backend_start: The backend_start of this ListQueriesDto. + :type backend_start: int + """ + self._backend_start = backend_start + + @property + def elapsed_time(self): + """Gets the elapsed_time of this ListQueriesDto. + + 到目前为止的执行时间。 + + :return: The elapsed_time of this ListQueriesDto. + :rtype: int + """ + return self._elapsed_time + + @elapsed_time.setter + def elapsed_time(self, elapsed_time): + """Sets the elapsed_time of this ListQueriesDto. + + 到目前为止的执行时间。 + + :param elapsed_time: The elapsed_time of this ListQueriesDto. + :type elapsed_time: int + """ + self._elapsed_time = elapsed_time + + @property + def curr_xact_start(self): + """Gets the curr_xact_start of this ListQueriesDto. + + 启动当前事务的时间,如果没有事务是活跃的,则为null。如果当前查询是首个事务,则这列等同于query_start列。 + + :return: The curr_xact_start of this ListQueriesDto. + :rtype: int + """ + return self._curr_xact_start + + @curr_xact_start.setter + def curr_xact_start(self, curr_xact_start): + """Sets the curr_xact_start of this ListQueriesDto. + + 启动当前事务的时间,如果没有事务是活跃的,则为null。如果当前查询是首个事务,则这列等同于query_start列。 + + :param curr_xact_start: The curr_xact_start of this ListQueriesDto. + :type curr_xact_start: int + """ + self._curr_xact_start = curr_xact_start + + @property + def state_change(self): + """Gets the state_change of this ListQueriesDto. + + 上次状态改变的时间。 + + :return: The state_change of this ListQueriesDto. + :rtype: int + """ + return self._state_change + + @state_change.setter + def state_change(self, state_change): + """Sets the state_change of this ListQueriesDto. + + 上次状态改变的时间。 + + :param state_change: The state_change of this ListQueriesDto. + :type state_change: int + """ + self._state_change = state_change + + @property + def query_start(self): + """Gets the query_start of this ListQueriesDto. + + 语句执行的开始时间。 + + :return: The query_start of this ListQueriesDto. + :rtype: int + """ + return self._query_start + + @query_start.setter + def query_start(self, query_start): + """Sets the query_start of this ListQueriesDto. + + 语句执行的开始时间。 + + :param query_start: The query_start of this ListQueriesDto. + :type query_start: int + """ + self._query_start = query_start + + @property + def query_elapsed_time(self): + """Gets the query_elapsed_time of this ListQueriesDto. + + 语句当前为止的实际执行时间,(单位:s)。 + + :return: The query_elapsed_time of this ListQueriesDto. + :rtype: int + """ + return self._query_elapsed_time + + @query_elapsed_time.setter + def query_elapsed_time(self, query_elapsed_time): + """Sets the query_elapsed_time of this ListQueriesDto. + + 语句当前为止的实际执行时间,(单位:s)。 + + :param query_elapsed_time: The query_elapsed_time of this ListQueriesDto. + :type query_elapsed_time: int + """ + self._query_elapsed_time = query_elapsed_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, ListQueriesDto): + 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-dws/huaweicloudsdkdws/v2/model/list_queries_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_request.py new file mode 100644 index 0000000000..2cc44248a4 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListQueriesRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'body': 'ListQueriesRequestBody' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """ListQueriesRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID。 + :type cluster_id: str + :param body: Body of the ListQueriesRequest + :type body: :class:`huaweicloudsdkdws.v2.ListQueriesRequestBody` + """ + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this ListQueriesRequest. + + 集群ID。 + + :return: The cluster_id of this ListQueriesRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListQueriesRequest. + + 集群ID。 + + :param cluster_id: The cluster_id of this ListQueriesRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this ListQueriesRequest. + + :return: The body of this ListQueriesRequest. + :rtype: :class:`huaweicloudsdkdws.v2.ListQueriesRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListQueriesRequest. + + :param body: The body of this ListQueriesRequest. + :type body: :class:`huaweicloudsdkdws.v2.ListQueriesRequestBody` + """ + 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, ListQueriesRequest): + 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-dws/huaweicloudsdkdws/v2/model/list_queries_request_body.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_request_body.py new file mode 100644 index 0000000000..2246fe01a6 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_request_body.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListQueriesRequestBody: + + """ + 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 = { + 'cluster_id': 'str', + 'project_id': 'str', + 'offset': 'str', + 'limit': 'str', + 'conditions': 'list[ListQueriesCondition]', + 'order_by': 'str', + 'target': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'project_id': 'project_id', + 'offset': 'offset', + 'limit': 'limit', + 'conditions': 'conditions', + 'order_by': 'order_by', + 'target': 'target' + } + + def __init__(self, cluster_id=None, project_id=None, offset=None, limit=None, conditions=None, order_by=None, target=None): + """ListQueriesRequestBody + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID。 + :type cluster_id: str + :param project_id: 项目ID。 + :type project_id: str + :param offset: 偏移量,表示从此偏移量开始查询,offset>=0。 + :type offset: str + :param limit: 每页显示的条目数量。 + :type limit: str + :param conditions: 查询条件数组 + :type conditions: list[:class:`huaweicloudsdkdws.v2.ListQueriesCondition`] + :param order_by: 排序字段 + :type order_by: str + :param target: 固定值db_queries + :type target: str + """ + + + + self._cluster_id = None + self._project_id = None + self._offset = None + self._limit = None + self._conditions = None + self._order_by = None + self._target = None + self.discriminator = None + + self.cluster_id = cluster_id + self.project_id = project_id + self.offset = offset + self.limit = limit + self.conditions = conditions + if order_by is not None: + self.order_by = order_by + self.target = target + + @property + def cluster_id(self): + """Gets the cluster_id of this ListQueriesRequestBody. + + 集群ID。 + + :return: The cluster_id of this ListQueriesRequestBody. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListQueriesRequestBody. + + 集群ID。 + + :param cluster_id: The cluster_id of this ListQueriesRequestBody. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def project_id(self): + """Gets the project_id of this ListQueriesRequestBody. + + 项目ID。 + + :return: The project_id of this ListQueriesRequestBody. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListQueriesRequestBody. + + 项目ID。 + + :param project_id: The project_id of this ListQueriesRequestBody. + :type project_id: str + """ + self._project_id = project_id + + @property + def offset(self): + """Gets the offset of this ListQueriesRequestBody. + + 偏移量,表示从此偏移量开始查询,offset>=0。 + + :return: The offset of this ListQueriesRequestBody. + :rtype: str + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListQueriesRequestBody. + + 偏移量,表示从此偏移量开始查询,offset>=0。 + + :param offset: The offset of this ListQueriesRequestBody. + :type offset: str + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListQueriesRequestBody. + + 每页显示的条目数量。 + + :return: The limit of this ListQueriesRequestBody. + :rtype: str + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListQueriesRequestBody. + + 每页显示的条目数量。 + + :param limit: The limit of this ListQueriesRequestBody. + :type limit: str + """ + self._limit = limit + + @property + def conditions(self): + """Gets the conditions of this ListQueriesRequestBody. + + 查询条件数组 + + :return: The conditions of this ListQueriesRequestBody. + :rtype: list[:class:`huaweicloudsdkdws.v2.ListQueriesCondition`] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this ListQueriesRequestBody. + + 查询条件数组 + + :param conditions: The conditions of this ListQueriesRequestBody. + :type conditions: list[:class:`huaweicloudsdkdws.v2.ListQueriesCondition`] + """ + self._conditions = conditions + + @property + def order_by(self): + """Gets the order_by of this ListQueriesRequestBody. + + 排序字段 + + :return: The order_by of this ListQueriesRequestBody. + :rtype: str + """ + return self._order_by + + @order_by.setter + def order_by(self, order_by): + """Sets the order_by of this ListQueriesRequestBody. + + 排序字段 + + :param order_by: The order_by of this ListQueriesRequestBody. + :type order_by: str + """ + self._order_by = order_by + + @property + def target(self): + """Gets the target of this ListQueriesRequestBody. + + 固定值db_queries + + :return: The target of this ListQueriesRequestBody. + :rtype: str + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this ListQueriesRequestBody. + + 固定值db_queries + + :param target: The target of this ListQueriesRequestBody. + :type target: str + """ + self._target = target + + 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, ListQueriesRequestBody): + 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-dws/huaweicloudsdkdws/v2/model/list_queries_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_response.py new file mode 100644 index 0000000000..3ab435f4da --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_response.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListQueriesResponse(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 = { + 'code': 'int', + 'msg': 'str', + 'data': 'ListQueriesData', + 'count': 'int' + } + + attribute_map = { + 'code': 'code', + 'msg': 'msg', + 'data': 'data', + 'count': 'count' + } + + def __init__(self, code=None, msg=None, data=None, count=None): + """ListQueriesResponse + + The model defined in huaweicloud sdk + + :param code: 响应码。 + :type code: int + :param msg: 响应信息。 + :type msg: str + :param data: + :type data: :class:`huaweicloudsdkdws.v2.ListQueriesData` + :param count: 总条数。 + :type count: int + """ + + super(ListQueriesResponse, self).__init__() + + self._code = None + self._msg = None + self._data = None + self._count = None + self.discriminator = None + + if code is not None: + self.code = code + if msg is not None: + self.msg = msg + if data is not None: + self.data = data + if count is not None: + self.count = count + + @property + def code(self): + """Gets the code of this ListQueriesResponse. + + 响应码。 + + :return: The code of this ListQueriesResponse. + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListQueriesResponse. + + 响应码。 + + :param code: The code of this ListQueriesResponse. + :type code: int + """ + self._code = code + + @property + def msg(self): + """Gets the msg of this ListQueriesResponse. + + 响应信息。 + + :return: The msg of this ListQueriesResponse. + :rtype: str + """ + return self._msg + + @msg.setter + def msg(self, msg): + """Sets the msg of this ListQueriesResponse. + + 响应信息。 + + :param msg: The msg of this ListQueriesResponse. + :type msg: str + """ + self._msg = msg + + @property + def data(self): + """Gets the data of this ListQueriesResponse. + + :return: The data of this ListQueriesResponse. + :rtype: :class:`huaweicloudsdkdws.v2.ListQueriesData` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListQueriesResponse. + + :param data: The data of this ListQueriesResponse. + :type data: :class:`huaweicloudsdkdws.v2.ListQueriesData` + """ + self._data = data + + @property + def count(self): + """Gets the count of this ListQueriesResponse. + + 总条数。 + + :return: The count of this ListQueriesResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListQueriesResponse. + + 总条数。 + + :param count: The count of this ListQueriesResponse. + :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, ListQueriesResponse): + 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-dws/huaweicloudsdkdws/v2/model/list_queries_status.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_status.py new file mode 100644 index 0000000000..3e1228c37f --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_queries_status.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListQueriesStatus: + + """ + 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 = { + 'average_query_waiting_time': 'float', + 'average_time_consumption_of_queries': 'float', + 'average_time_consumption_of_sessions': 'float', + 'queries_count': 'int', + 'session_count': 'int' + } + + attribute_map = { + 'average_query_waiting_time': 'average_query_waiting_time', + 'average_time_consumption_of_queries': 'average_time_consumption_of_queries', + 'average_time_consumption_of_sessions': 'average_time_consumption_of_sessions', + 'queries_count': 'queries_count', + 'session_count': 'session_count' + } + + def __init__(self, average_query_waiting_time=None, average_time_consumption_of_queries=None, average_time_consumption_of_sessions=None, queries_count=None, session_count=None): + """ListQueriesStatus + + The model defined in huaweicloud sdk + + :param average_query_waiting_time: 平均查询等待时间。 + :type average_query_waiting_time: float + :param average_time_consumption_of_queries: 平均查询耗时。 + :type average_time_consumption_of_queries: float + :param average_time_consumption_of_sessions: 平均会话耗时。 + :type average_time_consumption_of_sessions: float + :param queries_count: 查询数量。 + :type queries_count: int + :param session_count: 会话数量。 + :type session_count: int + """ + + + + self._average_query_waiting_time = None + self._average_time_consumption_of_queries = None + self._average_time_consumption_of_sessions = None + self._queries_count = None + self._session_count = None + self.discriminator = None + + if average_query_waiting_time is not None: + self.average_query_waiting_time = average_query_waiting_time + if average_time_consumption_of_queries is not None: + self.average_time_consumption_of_queries = average_time_consumption_of_queries + if average_time_consumption_of_sessions is not None: + self.average_time_consumption_of_sessions = average_time_consumption_of_sessions + if queries_count is not None: + self.queries_count = queries_count + if session_count is not None: + self.session_count = session_count + + @property + def average_query_waiting_time(self): + """Gets the average_query_waiting_time of this ListQueriesStatus. + + 平均查询等待时间。 + + :return: The average_query_waiting_time of this ListQueriesStatus. + :rtype: float + """ + return self._average_query_waiting_time + + @average_query_waiting_time.setter + def average_query_waiting_time(self, average_query_waiting_time): + """Sets the average_query_waiting_time of this ListQueriesStatus. + + 平均查询等待时间。 + + :param average_query_waiting_time: The average_query_waiting_time of this ListQueriesStatus. + :type average_query_waiting_time: float + """ + self._average_query_waiting_time = average_query_waiting_time + + @property + def average_time_consumption_of_queries(self): + """Gets the average_time_consumption_of_queries of this ListQueriesStatus. + + 平均查询耗时。 + + :return: The average_time_consumption_of_queries of this ListQueriesStatus. + :rtype: float + """ + return self._average_time_consumption_of_queries + + @average_time_consumption_of_queries.setter + def average_time_consumption_of_queries(self, average_time_consumption_of_queries): + """Sets the average_time_consumption_of_queries of this ListQueriesStatus. + + 平均查询耗时。 + + :param average_time_consumption_of_queries: The average_time_consumption_of_queries of this ListQueriesStatus. + :type average_time_consumption_of_queries: float + """ + self._average_time_consumption_of_queries = average_time_consumption_of_queries + + @property + def average_time_consumption_of_sessions(self): + """Gets the average_time_consumption_of_sessions of this ListQueriesStatus. + + 平均会话耗时。 + + :return: The average_time_consumption_of_sessions of this ListQueriesStatus. + :rtype: float + """ + return self._average_time_consumption_of_sessions + + @average_time_consumption_of_sessions.setter + def average_time_consumption_of_sessions(self, average_time_consumption_of_sessions): + """Sets the average_time_consumption_of_sessions of this ListQueriesStatus. + + 平均会话耗时。 + + :param average_time_consumption_of_sessions: The average_time_consumption_of_sessions of this ListQueriesStatus. + :type average_time_consumption_of_sessions: float + """ + self._average_time_consumption_of_sessions = average_time_consumption_of_sessions + + @property + def queries_count(self): + """Gets the queries_count of this ListQueriesStatus. + + 查询数量。 + + :return: The queries_count of this ListQueriesStatus. + :rtype: int + """ + return self._queries_count + + @queries_count.setter + def queries_count(self, queries_count): + """Sets the queries_count of this ListQueriesStatus. + + 查询数量。 + + :param queries_count: The queries_count of this ListQueriesStatus. + :type queries_count: int + """ + self._queries_count = queries_count + + @property + def session_count(self): + """Gets the session_count of this ListQueriesStatus. + + 会话数量。 + + :return: The session_count of this ListQueriesStatus. + :rtype: int + """ + return self._session_count + + @session_count.setter + def session_count(self, session_count): + """Sets the session_count of this ListQueriesStatus. + + 会话数量。 + + :param session_count: The session_count of this ListQueriesStatus. + :type session_count: int + """ + self._session_count = session_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, ListQueriesStatus): + 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-dws/huaweicloudsdkdws/v2/model/list_tables_statistic_dto.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_tables_statistic_dto.py new file mode 100644 index 0000000000..aea488363e --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_tables_statistic_dto.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListTablesStatisticDto: + + """ + 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 = { + 'db_name': 'str', + 'schema_name': 'str', + 'table_name': 'str', + 'table_owner': 'str', + 'table_size': 'str', + 'skew_rate': 'float', + 'dirty_page_rate': 'float' + } + + attribute_map = { + 'db_name': 'db_name', + 'schema_name': 'schema_name', + 'table_name': 'table_name', + 'table_owner': 'table_owner', + 'table_size': 'table_size', + 'skew_rate': 'skew_rate', + 'dirty_page_rate': 'dirty_page_rate' + } + + def __init__(self, db_name=None, schema_name=None, table_name=None, table_owner=None, table_size=None, skew_rate=None, dirty_page_rate=None): + """ListTablesStatisticDto + + The model defined in huaweicloud sdk + + :param db_name: 数据库名称。 + :type db_name: str + :param schema_name: schema名称。 + :type schema_name: str + :param table_name: 表名。 + :type table_name: str + :param table_owner: 所属用户。 + :type table_owner: str + :param table_size: 表大小。 + :type table_size: str + :param skew_rate: 表倾斜率。 + :type skew_rate: float + :param dirty_page_rate: 脏页率。 + :type dirty_page_rate: float + """ + + + + self._db_name = None + self._schema_name = None + self._table_name = None + self._table_owner = None + self._table_size = None + self._skew_rate = None + self._dirty_page_rate = None + self.discriminator = None + + if db_name is not None: + self.db_name = db_name + if schema_name is not None: + self.schema_name = schema_name + if table_name is not None: + self.table_name = table_name + if table_owner is not None: + self.table_owner = table_owner + if table_size is not None: + self.table_size = table_size + if skew_rate is not None: + self.skew_rate = skew_rate + if dirty_page_rate is not None: + self.dirty_page_rate = dirty_page_rate + + @property + def db_name(self): + """Gets the db_name of this ListTablesStatisticDto. + + 数据库名称。 + + :return: The db_name of this ListTablesStatisticDto. + :rtype: str + """ + return self._db_name + + @db_name.setter + def db_name(self, db_name): + """Sets the db_name of this ListTablesStatisticDto. + + 数据库名称。 + + :param db_name: The db_name of this ListTablesStatisticDto. + :type db_name: str + """ + self._db_name = db_name + + @property + def schema_name(self): + """Gets the schema_name of this ListTablesStatisticDto. + + schema名称。 + + :return: The schema_name of this ListTablesStatisticDto. + :rtype: str + """ + return self._schema_name + + @schema_name.setter + def schema_name(self, schema_name): + """Sets the schema_name of this ListTablesStatisticDto. + + schema名称。 + + :param schema_name: The schema_name of this ListTablesStatisticDto. + :type schema_name: str + """ + self._schema_name = schema_name + + @property + def table_name(self): + """Gets the table_name of this ListTablesStatisticDto. + + 表名。 + + :return: The table_name of this ListTablesStatisticDto. + :rtype: str + """ + return self._table_name + + @table_name.setter + def table_name(self, table_name): + """Sets the table_name of this ListTablesStatisticDto. + + 表名。 + + :param table_name: The table_name of this ListTablesStatisticDto. + :type table_name: str + """ + self._table_name = table_name + + @property + def table_owner(self): + """Gets the table_owner of this ListTablesStatisticDto. + + 所属用户。 + + :return: The table_owner of this ListTablesStatisticDto. + :rtype: str + """ + return self._table_owner + + @table_owner.setter + def table_owner(self, table_owner): + """Sets the table_owner of this ListTablesStatisticDto. + + 所属用户。 + + :param table_owner: The table_owner of this ListTablesStatisticDto. + :type table_owner: str + """ + self._table_owner = table_owner + + @property + def table_size(self): + """Gets the table_size of this ListTablesStatisticDto. + + 表大小。 + + :return: The table_size of this ListTablesStatisticDto. + :rtype: str + """ + return self._table_size + + @table_size.setter + def table_size(self, table_size): + """Sets the table_size of this ListTablesStatisticDto. + + 表大小。 + + :param table_size: The table_size of this ListTablesStatisticDto. + :type table_size: str + """ + self._table_size = table_size + + @property + def skew_rate(self): + """Gets the skew_rate of this ListTablesStatisticDto. + + 表倾斜率。 + + :return: The skew_rate of this ListTablesStatisticDto. + :rtype: float + """ + return self._skew_rate + + @skew_rate.setter + def skew_rate(self, skew_rate): + """Sets the skew_rate of this ListTablesStatisticDto. + + 表倾斜率。 + + :param skew_rate: The skew_rate of this ListTablesStatisticDto. + :type skew_rate: float + """ + self._skew_rate = skew_rate + + @property + def dirty_page_rate(self): + """Gets the dirty_page_rate of this ListTablesStatisticDto. + + 脏页率。 + + :return: The dirty_page_rate of this ListTablesStatisticDto. + :rtype: float + """ + return self._dirty_page_rate + + @dirty_page_rate.setter + def dirty_page_rate(self, dirty_page_rate): + """Sets the dirty_page_rate of this ListTablesStatisticDto. + + 脏页率。 + + :param dirty_page_rate: The dirty_page_rate of this ListTablesStatisticDto. + :type dirty_page_rate: float + """ + self._dirty_page_rate = dirty_page_rate + + 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, ListTablesStatisticDto): + 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-dws/huaweicloudsdkdws/v2/model/list_tables_statistic_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_tables_statistic_request.py new file mode 100644 index 0000000000..b31e5f6a89 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_tables_statistic_request.py @@ -0,0 +1,314 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListTablesStatisticRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'rate_type': 'str', + 'offset': 'int', + 'limit': 'int', + 'order_by': 'str', + 'sort_by': 'str', + 'filter': 'str', + 'value': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'rate_type': 'rate_type', + 'offset': 'offset', + 'limit': 'limit', + 'order_by': 'order_by', + 'sort_by': 'sort_by', + 'filter': 'filter', + 'value': 'value' + } + + def __init__(self, cluster_id=None, rate_type=None, offset=None, limit=None, order_by=None, sort_by=None, filter=None, value=None): + """ListTablesStatisticRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID。 + :type cluster_id: str + :param rate_type: 查询类型。固定取值。 skew:表倾斜率。 dirtyPage:表脏页率。 + :type rate_type: str + :param offset: 偏移量,表示从此偏移量开始查询,offset>=0。 + :type offset: int + :param limit: 每页显示的条目数量。 + :type limit: int + :param order_by: 排序字段。固定取值。 table_size:表大小。rate:表倾斜率或脏页率。 + :type order_by: str + :param sort_by: 正序还是倒叙。固定取值。 ASC:正序。DESC:倒序 + :type sort_by: str + :param filter: 查询条件。固定取值。 db_name:数据库名称。 schema_name:schema名称。 table_name:表名。 table_owner:所属用户。 + :type filter: str + :param value: 查询条件的取值。 + :type value: str + """ + + + + self._cluster_id = None + self._rate_type = None + self._offset = None + self._limit = None + self._order_by = None + self._sort_by = None + self._filter = None + self._value = None + self.discriminator = None + + self.cluster_id = cluster_id + self.rate_type = rate_type + self.offset = offset + self.limit = limit + if order_by is not None: + self.order_by = order_by + if sort_by is not None: + self.sort_by = sort_by + if filter is not None: + self.filter = filter + if value is not None: + self.value = value + + @property + def cluster_id(self): + """Gets the cluster_id of this ListTablesStatisticRequest. + + 集群ID。 + + :return: The cluster_id of this ListTablesStatisticRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListTablesStatisticRequest. + + 集群ID。 + + :param cluster_id: The cluster_id of this ListTablesStatisticRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def rate_type(self): + """Gets the rate_type of this ListTablesStatisticRequest. + + 查询类型。固定取值。 skew:表倾斜率。 dirtyPage:表脏页率。 + + :return: The rate_type of this ListTablesStatisticRequest. + :rtype: str + """ + return self._rate_type + + @rate_type.setter + def rate_type(self, rate_type): + """Sets the rate_type of this ListTablesStatisticRequest. + + 查询类型。固定取值。 skew:表倾斜率。 dirtyPage:表脏页率。 + + :param rate_type: The rate_type of this ListTablesStatisticRequest. + :type rate_type: str + """ + self._rate_type = rate_type + + @property + def offset(self): + """Gets the offset of this ListTablesStatisticRequest. + + 偏移量,表示从此偏移量开始查询,offset>=0。 + + :return: The offset of this ListTablesStatisticRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListTablesStatisticRequest. + + 偏移量,表示从此偏移量开始查询,offset>=0。 + + :param offset: The offset of this ListTablesStatisticRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListTablesStatisticRequest. + + 每页显示的条目数量。 + + :return: The limit of this ListTablesStatisticRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListTablesStatisticRequest. + + 每页显示的条目数量。 + + :param limit: The limit of this ListTablesStatisticRequest. + :type limit: int + """ + self._limit = limit + + @property + def order_by(self): + """Gets the order_by of this ListTablesStatisticRequest. + + 排序字段。固定取值。 table_size:表大小。rate:表倾斜率或脏页率。 + + :return: The order_by of this ListTablesStatisticRequest. + :rtype: str + """ + return self._order_by + + @order_by.setter + def order_by(self, order_by): + """Sets the order_by of this ListTablesStatisticRequest. + + 排序字段。固定取值。 table_size:表大小。rate:表倾斜率或脏页率。 + + :param order_by: The order_by of this ListTablesStatisticRequest. + :type order_by: str + """ + self._order_by = order_by + + @property + def sort_by(self): + """Gets the sort_by of this ListTablesStatisticRequest. + + 正序还是倒叙。固定取值。 ASC:正序。DESC:倒序 + + :return: The sort_by of this ListTablesStatisticRequest. + :rtype: str + """ + return self._sort_by + + @sort_by.setter + def sort_by(self, sort_by): + """Sets the sort_by of this ListTablesStatisticRequest. + + 正序还是倒叙。固定取值。 ASC:正序。DESC:倒序 + + :param sort_by: The sort_by of this ListTablesStatisticRequest. + :type sort_by: str + """ + self._sort_by = sort_by + + @property + def filter(self): + """Gets the filter of this ListTablesStatisticRequest. + + 查询条件。固定取值。 db_name:数据库名称。 schema_name:schema名称。 table_name:表名。 table_owner:所属用户。 + + :return: The filter of this ListTablesStatisticRequest. + :rtype: str + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this ListTablesStatisticRequest. + + 查询条件。固定取值。 db_name:数据库名称。 schema_name:schema名称。 table_name:表名。 table_owner:所属用户。 + + :param filter: The filter of this ListTablesStatisticRequest. + :type filter: str + """ + self._filter = filter + + @property + def value(self): + """Gets the value of this ListTablesStatisticRequest. + + 查询条件的取值。 + + :return: The value of this ListTablesStatisticRequest. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ListTablesStatisticRequest. + + 查询条件的取值。 + + :param value: The value of this ListTablesStatisticRequest. + :type value: str + """ + 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, ListTablesStatisticRequest): + 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-dws/huaweicloudsdkdws/v2/model/list_tables_statistic_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_tables_statistic_response.py new file mode 100644 index 0000000000..b397d08a3c --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_tables_statistic_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 ListTablesStatisticResponse(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 = { + 'collect_time': 'int', + 'data': 'list[ListTablesStatisticDto]', + 'count': 'int' + } + + attribute_map = { + 'collect_time': 'collect_time', + 'data': 'data', + 'count': 'count' + } + + def __init__(self, collect_time=None, data=None, count=None): + """ListTablesStatisticResponse + + The model defined in huaweicloud sdk + + :param collect_time: 数据采集时间毫秒级时间戳。 + :type collect_time: int + :param data: 表倾斜率或脏页率列表。 + :type data: list[:class:`huaweicloudsdkdws.v2.ListTablesStatisticDto`] + :param count: 总列表大小。 + :type count: int + """ + + super(ListTablesStatisticResponse, self).__init__() + + self._collect_time = None + self._data = None + self._count = None + self.discriminator = None + + if collect_time is not None: + self.collect_time = collect_time + if data is not None: + self.data = data + if count is not None: + self.count = count + + @property + def collect_time(self): + """Gets the collect_time of this ListTablesStatisticResponse. + + 数据采集时间毫秒级时间戳。 + + :return: The collect_time of this ListTablesStatisticResponse. + :rtype: int + """ + return self._collect_time + + @collect_time.setter + def collect_time(self, collect_time): + """Sets the collect_time of this ListTablesStatisticResponse. + + 数据采集时间毫秒级时间戳。 + + :param collect_time: The collect_time of this ListTablesStatisticResponse. + :type collect_time: int + """ + self._collect_time = collect_time + + @property + def data(self): + """Gets the data of this ListTablesStatisticResponse. + + 表倾斜率或脏页率列表。 + + :return: The data of this ListTablesStatisticResponse. + :rtype: list[:class:`huaweicloudsdkdws.v2.ListTablesStatisticDto`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListTablesStatisticResponse. + + 表倾斜率或脏页率列表。 + + :param data: The data of this ListTablesStatisticResponse. + :type data: list[:class:`huaweicloudsdkdws.v2.ListTablesStatisticDto`] + """ + self._data = data + + @property + def count(self): + """Gets the count of this ListTablesStatisticResponse. + + 总列表大小。 + + :return: The count of this ListTablesStatisticResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListTablesStatisticResponse. + + 总列表大小。 + + :param count: The count of this ListTablesStatisticResponse. + :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, ListTablesStatisticResponse): + 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-dws/huaweicloudsdkdws/v2/model/list_topo_rings_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_topo_rings_request.py new file mode 100644 index 0000000000..bcd4737b3d --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_topo_rings_request.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListTopoRingsRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, cluster_id=None, offset=None, limit=None): + """ListTopoRingsRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param offset: 分页查询,偏移 + :type offset: int + :param limit: 分页查询,每页显示的条目数量 + :type limit: int + """ + + + + self._cluster_id = None + self._offset = None + self._limit = None + self.discriminator = None + + self.cluster_id = cluster_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def cluster_id(self): + """Gets the cluster_id of this ListTopoRingsRequest. + + 集群ID + + :return: The cluster_id of this ListTopoRingsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListTopoRingsRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ListTopoRingsRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def offset(self): + """Gets the offset of this ListTopoRingsRequest. + + 分页查询,偏移 + + :return: The offset of this ListTopoRingsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListTopoRingsRequest. + + 分页查询,偏移 + + :param offset: The offset of this ListTopoRingsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListTopoRingsRequest. + + 分页查询,每页显示的条目数量 + + :return: The limit of this ListTopoRingsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListTopoRingsRequest. + + 分页查询,每页显示的条目数量 + + :param limit: The limit of this ListTopoRingsRequest. + :type limit: int + """ + self._limit = limit + + 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, ListTopoRingsRequest): + 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-dws/huaweicloudsdkdws/v2/model/list_topo_rings_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_topo_rings_response.py new file mode 100644 index 0000000000..4efa6a897a --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_topo_rings_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 ListTopoRingsResponse(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 = { + 'cluster_rings': 'list[TopoRingInfo]', + 'count': 'int' + } + + attribute_map = { + 'cluster_rings': 'cluster_rings', + 'count': 'count' + } + + def __init__(self, cluster_rings=None, count=None): + """ListTopoRingsResponse + + The model defined in huaweicloud sdk + + :param cluster_rings: 集群拓扑环列表信息 + :type cluster_rings: list[:class:`huaweicloudsdkdws.v2.TopoRingInfo`] + :param count: 集群环数量 + :type count: int + """ + + super(ListTopoRingsResponse, self).__init__() + + self._cluster_rings = None + self._count = None + self.discriminator = None + + if cluster_rings is not None: + self.cluster_rings = cluster_rings + if count is not None: + self.count = count + + @property + def cluster_rings(self): + """Gets the cluster_rings of this ListTopoRingsResponse. + + 集群拓扑环列表信息 + + :return: The cluster_rings of this ListTopoRingsResponse. + :rtype: list[:class:`huaweicloudsdkdws.v2.TopoRingInfo`] + """ + return self._cluster_rings + + @cluster_rings.setter + def cluster_rings(self, cluster_rings): + """Sets the cluster_rings of this ListTopoRingsResponse. + + 集群拓扑环列表信息 + + :param cluster_rings: The cluster_rings of this ListTopoRingsResponse. + :type cluster_rings: list[:class:`huaweicloudsdkdws.v2.TopoRingInfo`] + """ + self._cluster_rings = cluster_rings + + @property + def count(self): + """Gets the count of this ListTopoRingsResponse. + + 集群环数量 + + :return: The count of this ListTopoRingsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListTopoRingsResponse. + + 集群环数量 + + :param count: The count of this ListTopoRingsResponse. + :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, ListTopoRingsResponse): + 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-dws/huaweicloudsdkdws/v2/model/logical_cluster_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/logical_cluster_info.py new file mode 100644 index 0000000000..75f9b056f8 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/logical_cluster_info.py @@ -0,0 +1,459 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LogicalClusterInfo: + + """ + 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 = { + 'logical_cluster_id': 'str', + 'logical_cluster_name': 'str', + 'cluster_rings': 'list[ClusterRing]', + 'status': 'str', + 'first_logical_cluster': 'bool', + 'action_info': 'ActionInfo', + 'edit_enable': 'bool', + 'restart_enable': 'bool', + 'delete_enable': 'bool', + 'add_to_elastic': 'bool', + 'mode': 'str', + 'waiting_for_killing': 'int', + 'cluster_type': 'str' + } + + attribute_map = { + 'logical_cluster_id': 'logical_cluster_id', + 'logical_cluster_name': 'logical_cluster_name', + 'cluster_rings': 'cluster_rings', + 'status': 'status', + 'first_logical_cluster': 'first_logical_cluster', + 'action_info': 'action_info', + 'edit_enable': 'edit_enable', + 'restart_enable': 'restart_enable', + 'delete_enable': 'delete_enable', + 'add_to_elastic': 'add_to_elastic', + 'mode': 'mode', + 'waiting_for_killing': 'waiting_for_killing', + 'cluster_type': 'cluster_type' + } + + def __init__(self, logical_cluster_id=None, logical_cluster_name=None, cluster_rings=None, status=None, first_logical_cluster=None, action_info=None, edit_enable=None, restart_enable=None, delete_enable=None, add_to_elastic=None, mode=None, waiting_for_killing=None, cluster_type=None): + """LogicalClusterInfo + + The model defined in huaweicloud sdk + + :param logical_cluster_id: 逻辑集群ID + :type logical_cluster_id: str + :param logical_cluster_name: 逻辑集群名称 + :type logical_cluster_name: str + :param cluster_rings: 逻辑集群主机信息 + :type cluster_rings: list[:class:`huaweicloudsdkdws.v2.ClusterRing`] + :param status: 逻辑集群状态 + :type status: str + :param first_logical_cluster: 是否为第一个逻辑集群。第1个创建或者转换的逻辑集群不能删除,因为其中包含了一些系统视图 + :type first_logical_cluster: bool + :param action_info: + :type action_info: :class:`huaweicloudsdkdws.v2.ActionInfo` + :param edit_enable: 是否允许编辑 + :type edit_enable: bool + :param restart_enable: 是否允许重启 + :type restart_enable: bool + :param delete_enable: 是否允许删除 + :type delete_enable: bool + :param add_to_elastic: 是否允许弹性伸缩 + :type add_to_elastic: bool + :param mode: 逻辑集群模式 + :type mode: str + :param waiting_for_killing: 等待被销毁 + :type waiting_for_killing: int + :param cluster_type: 集群类型 + :type cluster_type: str + """ + + + + self._logical_cluster_id = None + self._logical_cluster_name = None + self._cluster_rings = None + self._status = None + self._first_logical_cluster = None + self._action_info = None + self._edit_enable = None + self._restart_enable = None + self._delete_enable = None + self._add_to_elastic = None + self._mode = None + self._waiting_for_killing = None + self._cluster_type = None + self.discriminator = None + + if logical_cluster_id is not None: + self.logical_cluster_id = logical_cluster_id + if logical_cluster_name is not None: + self.logical_cluster_name = logical_cluster_name + if cluster_rings is not None: + self.cluster_rings = cluster_rings + if status is not None: + self.status = status + if first_logical_cluster is not None: + self.first_logical_cluster = first_logical_cluster + if action_info is not None: + self.action_info = action_info + if edit_enable is not None: + self.edit_enable = edit_enable + if restart_enable is not None: + self.restart_enable = restart_enable + if delete_enable is not None: + self.delete_enable = delete_enable + if add_to_elastic is not None: + self.add_to_elastic = add_to_elastic + if mode is not None: + self.mode = mode + if waiting_for_killing is not None: + self.waiting_for_killing = waiting_for_killing + if cluster_type is not None: + self.cluster_type = cluster_type + + @property + def logical_cluster_id(self): + """Gets the logical_cluster_id of this LogicalClusterInfo. + + 逻辑集群ID + + :return: The logical_cluster_id of this LogicalClusterInfo. + :rtype: str + """ + return self._logical_cluster_id + + @logical_cluster_id.setter + def logical_cluster_id(self, logical_cluster_id): + """Sets the logical_cluster_id of this LogicalClusterInfo. + + 逻辑集群ID + + :param logical_cluster_id: The logical_cluster_id of this LogicalClusterInfo. + :type logical_cluster_id: str + """ + self._logical_cluster_id = logical_cluster_id + + @property + def logical_cluster_name(self): + """Gets the logical_cluster_name of this LogicalClusterInfo. + + 逻辑集群名称 + + :return: The logical_cluster_name of this LogicalClusterInfo. + :rtype: str + """ + return self._logical_cluster_name + + @logical_cluster_name.setter + def logical_cluster_name(self, logical_cluster_name): + """Sets the logical_cluster_name of this LogicalClusterInfo. + + 逻辑集群名称 + + :param logical_cluster_name: The logical_cluster_name of this LogicalClusterInfo. + :type logical_cluster_name: str + """ + self._logical_cluster_name = logical_cluster_name + + @property + def cluster_rings(self): + """Gets the cluster_rings of this LogicalClusterInfo. + + 逻辑集群主机信息 + + :return: The cluster_rings of this LogicalClusterInfo. + :rtype: list[:class:`huaweicloudsdkdws.v2.ClusterRing`] + """ + return self._cluster_rings + + @cluster_rings.setter + def cluster_rings(self, cluster_rings): + """Sets the cluster_rings of this LogicalClusterInfo. + + 逻辑集群主机信息 + + :param cluster_rings: The cluster_rings of this LogicalClusterInfo. + :type cluster_rings: list[:class:`huaweicloudsdkdws.v2.ClusterRing`] + """ + self._cluster_rings = cluster_rings + + @property + def status(self): + """Gets the status of this LogicalClusterInfo. + + 逻辑集群状态 + + :return: The status of this LogicalClusterInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this LogicalClusterInfo. + + 逻辑集群状态 + + :param status: The status of this LogicalClusterInfo. + :type status: str + """ + self._status = status + + @property + def first_logical_cluster(self): + """Gets the first_logical_cluster of this LogicalClusterInfo. + + 是否为第一个逻辑集群。第1个创建或者转换的逻辑集群不能删除,因为其中包含了一些系统视图 + + :return: The first_logical_cluster of this LogicalClusterInfo. + :rtype: bool + """ + return self._first_logical_cluster + + @first_logical_cluster.setter + def first_logical_cluster(self, first_logical_cluster): + """Sets the first_logical_cluster of this LogicalClusterInfo. + + 是否为第一个逻辑集群。第1个创建或者转换的逻辑集群不能删除,因为其中包含了一些系统视图 + + :param first_logical_cluster: The first_logical_cluster of this LogicalClusterInfo. + :type first_logical_cluster: bool + """ + self._first_logical_cluster = first_logical_cluster + + @property + def action_info(self): + """Gets the action_info of this LogicalClusterInfo. + + :return: The action_info of this LogicalClusterInfo. + :rtype: :class:`huaweicloudsdkdws.v2.ActionInfo` + """ + return self._action_info + + @action_info.setter + def action_info(self, action_info): + """Sets the action_info of this LogicalClusterInfo. + + :param action_info: The action_info of this LogicalClusterInfo. + :type action_info: :class:`huaweicloudsdkdws.v2.ActionInfo` + """ + self._action_info = action_info + + @property + def edit_enable(self): + """Gets the edit_enable of this LogicalClusterInfo. + + 是否允许编辑 + + :return: The edit_enable of this LogicalClusterInfo. + :rtype: bool + """ + return self._edit_enable + + @edit_enable.setter + def edit_enable(self, edit_enable): + """Sets the edit_enable of this LogicalClusterInfo. + + 是否允许编辑 + + :param edit_enable: The edit_enable of this LogicalClusterInfo. + :type edit_enable: bool + """ + self._edit_enable = edit_enable + + @property + def restart_enable(self): + """Gets the restart_enable of this LogicalClusterInfo. + + 是否允许重启 + + :return: The restart_enable of this LogicalClusterInfo. + :rtype: bool + """ + return self._restart_enable + + @restart_enable.setter + def restart_enable(self, restart_enable): + """Sets the restart_enable of this LogicalClusterInfo. + + 是否允许重启 + + :param restart_enable: The restart_enable of this LogicalClusterInfo. + :type restart_enable: bool + """ + self._restart_enable = restart_enable + + @property + def delete_enable(self): + """Gets the delete_enable of this LogicalClusterInfo. + + 是否允许删除 + + :return: The delete_enable of this LogicalClusterInfo. + :rtype: bool + """ + return self._delete_enable + + @delete_enable.setter + def delete_enable(self, delete_enable): + """Sets the delete_enable of this LogicalClusterInfo. + + 是否允许删除 + + :param delete_enable: The delete_enable of this LogicalClusterInfo. + :type delete_enable: bool + """ + self._delete_enable = delete_enable + + @property + def add_to_elastic(self): + """Gets the add_to_elastic of this LogicalClusterInfo. + + 是否允许弹性伸缩 + + :return: The add_to_elastic of this LogicalClusterInfo. + :rtype: bool + """ + return self._add_to_elastic + + @add_to_elastic.setter + def add_to_elastic(self, add_to_elastic): + """Sets the add_to_elastic of this LogicalClusterInfo. + + 是否允许弹性伸缩 + + :param add_to_elastic: The add_to_elastic of this LogicalClusterInfo. + :type add_to_elastic: bool + """ + self._add_to_elastic = add_to_elastic + + @property + def mode(self): + """Gets the mode of this LogicalClusterInfo. + + 逻辑集群模式 + + :return: The mode of this LogicalClusterInfo. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this LogicalClusterInfo. + + 逻辑集群模式 + + :param mode: The mode of this LogicalClusterInfo. + :type mode: str + """ + self._mode = mode + + @property + def waiting_for_killing(self): + """Gets the waiting_for_killing of this LogicalClusterInfo. + + 等待被销毁 + + :return: The waiting_for_killing of this LogicalClusterInfo. + :rtype: int + """ + return self._waiting_for_killing + + @waiting_for_killing.setter + def waiting_for_killing(self, waiting_for_killing): + """Sets the waiting_for_killing of this LogicalClusterInfo. + + 等待被销毁 + + :param waiting_for_killing: The waiting_for_killing of this LogicalClusterInfo. + :type waiting_for_killing: int + """ + self._waiting_for_killing = waiting_for_killing + + @property + def cluster_type(self): + """Gets the cluster_type of this LogicalClusterInfo. + + 集群类型 + + :return: The cluster_type of this LogicalClusterInfo. + :rtype: str + """ + return self._cluster_type + + @cluster_type.setter + def cluster_type(self, cluster_type): + """Sets the cluster_type of this LogicalClusterInfo. + + 集群类型 + + :param cluster_type: The cluster_type of this LogicalClusterInfo. + :type cluster_type: str + """ + self._cluster_type = cluster_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, LogicalClusterInfo): + 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-dws/huaweicloudsdkdws/v2/model/logical_cluster_ring_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/logical_cluster_ring_info.py new file mode 100644 index 0000000000..151795a205 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/logical_cluster_ring_info.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LogicalClusterRingInfo: + + """ + 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 = { + 'ring_hosts': 'list[RingHost]' + } + + attribute_map = { + 'ring_hosts': 'ring_hosts' + } + + def __init__(self, ring_hosts=None): + """LogicalClusterRingInfo + + The model defined in huaweicloud sdk + + :param ring_hosts: 集群主机环信息 + :type ring_hosts: list[:class:`huaweicloudsdkdws.v2.RingHost`] + """ + + + + self._ring_hosts = None + self.discriminator = None + + if ring_hosts is not None: + self.ring_hosts = ring_hosts + + @property + def ring_hosts(self): + """Gets the ring_hosts of this LogicalClusterRingInfo. + + 集群主机环信息 + + :return: The ring_hosts of this LogicalClusterRingInfo. + :rtype: list[:class:`huaweicloudsdkdws.v2.RingHost`] + """ + return self._ring_hosts + + @ring_hosts.setter + def ring_hosts(self, ring_hosts): + """Sets the ring_hosts of this LogicalClusterRingInfo. + + 集群主机环信息 + + :param ring_hosts: The ring_hosts of this LogicalClusterRingInfo. + :type ring_hosts: list[:class:`huaweicloudsdkdws.v2.RingHost`] + """ + self._ring_hosts = ring_hosts + + 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, LogicalClusterRingInfo): + 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-dws/huaweicloudsdkdws/v2/model/logical_cluster_task_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/logical_cluster_task_info.py new file mode 100644 index 0000000000..8a41d95a60 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/logical_cluster_task_info.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LogicalClusterTaskInfo: + + """ + 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', + 'logical_cluster_name': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'result': 'str', + 'log': 'str' + } + + attribute_map = { + 'type': 'type', + 'logical_cluster_name': 'logical_cluster_name', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'result': 'result', + 'log': 'log' + } + + def __init__(self, type=None, logical_cluster_name=None, start_time=None, end_time=None, result=None, log=None): + """LogicalClusterTaskInfo + + The model defined in huaweicloud sdk + + :param type: 任务类型 + :type type: str + :param logical_cluster_name: 逻辑集群名称 + :type logical_cluster_name: str + :param start_time: 任务开始时间 + :type start_time: str + :param end_time: 任务结束时间 + :type end_time: str + :param result: 任务执行结果 + :type result: str + :param log: 任务执行日志 + :type log: str + """ + + + + self._type = None + self._logical_cluster_name = None + self._start_time = None + self._end_time = None + self._result = None + self._log = None + self.discriminator = None + + if type is not None: + self.type = type + if logical_cluster_name is not None: + self.logical_cluster_name = logical_cluster_name + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if result is not None: + self.result = result + if log is not None: + self.log = log + + @property + def type(self): + """Gets the type of this LogicalClusterTaskInfo. + + 任务类型 + + :return: The type of this LogicalClusterTaskInfo. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this LogicalClusterTaskInfo. + + 任务类型 + + :param type: The type of this LogicalClusterTaskInfo. + :type type: str + """ + self._type = type + + @property + def logical_cluster_name(self): + """Gets the logical_cluster_name of this LogicalClusterTaskInfo. + + 逻辑集群名称 + + :return: The logical_cluster_name of this LogicalClusterTaskInfo. + :rtype: str + """ + return self._logical_cluster_name + + @logical_cluster_name.setter + def logical_cluster_name(self, logical_cluster_name): + """Sets the logical_cluster_name of this LogicalClusterTaskInfo. + + 逻辑集群名称 + + :param logical_cluster_name: The logical_cluster_name of this LogicalClusterTaskInfo. + :type logical_cluster_name: str + """ + self._logical_cluster_name = logical_cluster_name + + @property + def start_time(self): + """Gets the start_time of this LogicalClusterTaskInfo. + + 任务开始时间 + + :return: The start_time of this LogicalClusterTaskInfo. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this LogicalClusterTaskInfo. + + 任务开始时间 + + :param start_time: The start_time of this LogicalClusterTaskInfo. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this LogicalClusterTaskInfo. + + 任务结束时间 + + :return: The end_time of this LogicalClusterTaskInfo. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this LogicalClusterTaskInfo. + + 任务结束时间 + + :param end_time: The end_time of this LogicalClusterTaskInfo. + :type end_time: str + """ + self._end_time = end_time + + @property + def result(self): + """Gets the result of this LogicalClusterTaskInfo. + + 任务执行结果 + + :return: The result of this LogicalClusterTaskInfo. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this LogicalClusterTaskInfo. + + 任务执行结果 + + :param result: The result of this LogicalClusterTaskInfo. + :type result: str + """ + self._result = result + + @property + def log(self): + """Gets the log of this LogicalClusterTaskInfo. + + 任务执行日志 + + :return: The log of this LogicalClusterTaskInfo. + :rtype: str + """ + return self._log + + @log.setter + def log(self, log): + """Sets the log of this LogicalClusterTaskInfo. + + 任务执行日志 + + :param log: The log of this LogicalClusterTaskInfo. + :type log: str + """ + self._log = log + + 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, LogicalClusterTaskInfo): + 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-dws/huaweicloudsdkdws/v2/model/logical_cluster_volume.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/logical_cluster_volume.py new file mode 100644 index 0000000000..2412cb606f --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/logical_cluster_volume.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LogicalClusterVolume: + + """ + 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 = { + 'logical_cluster_name': 'str', + 'usage': 'str', + 'total': 'str', + 'percent': 'str' + } + + attribute_map = { + 'logical_cluster_name': 'logical_cluster_name', + 'usage': 'usage', + 'total': 'total', + 'percent': 'percent' + } + + def __init__(self, logical_cluster_name=None, usage=None, total=None, percent=None): + """LogicalClusterVolume + + The model defined in huaweicloud sdk + + :param logical_cluster_name: 逻辑集群名称 + :type logical_cluster_name: str + :param usage: 磁盘使用量 + :type usage: str + :param total: 磁盘总量 + :type total: str + :param percent: 磁盘使用比例 + :type percent: str + """ + + + + self._logical_cluster_name = None + self._usage = None + self._total = None + self._percent = None + self.discriminator = None + + if logical_cluster_name is not None: + self.logical_cluster_name = logical_cluster_name + if usage is not None: + self.usage = usage + if total is not None: + self.total = total + if percent is not None: + self.percent = percent + + @property + def logical_cluster_name(self): + """Gets the logical_cluster_name of this LogicalClusterVolume. + + 逻辑集群名称 + + :return: The logical_cluster_name of this LogicalClusterVolume. + :rtype: str + """ + return self._logical_cluster_name + + @logical_cluster_name.setter + def logical_cluster_name(self, logical_cluster_name): + """Sets the logical_cluster_name of this LogicalClusterVolume. + + 逻辑集群名称 + + :param logical_cluster_name: The logical_cluster_name of this LogicalClusterVolume. + :type logical_cluster_name: str + """ + self._logical_cluster_name = logical_cluster_name + + @property + def usage(self): + """Gets the usage of this LogicalClusterVolume. + + 磁盘使用量 + + :return: The usage of this LogicalClusterVolume. + :rtype: str + """ + return self._usage + + @usage.setter + def usage(self, usage): + """Sets the usage of this LogicalClusterVolume. + + 磁盘使用量 + + :param usage: The usage of this LogicalClusterVolume. + :type usage: str + """ + self._usage = usage + + @property + def total(self): + """Gets the total of this LogicalClusterVolume. + + 磁盘总量 + + :return: The total of this LogicalClusterVolume. + :rtype: str + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this LogicalClusterVolume. + + 磁盘总量 + + :param total: The total of this LogicalClusterVolume. + :type total: str + """ + self._total = total + + @property + def percent(self): + """Gets the percent of this LogicalClusterVolume. + + 磁盘使用比例 + + :return: The percent of this LogicalClusterVolume. + :rtype: str + """ + return self._percent + + @percent.setter + def percent(self, percent): + """Sets the percent of this LogicalClusterVolume. + + 磁盘使用比例 + + :param percent: The percent of this LogicalClusterVolume. + :type percent: str + """ + self._percent = percent + + 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, LogicalClusterVolume): + 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-dws/huaweicloudsdkdws/v2/model/ltslog_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/ltslog_info.py new file mode 100644 index 0000000000..25723c7614 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/ltslog_info.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LtslogInfo: + + """ + 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 = { + 'status': 'str', + 'id': 'str', + 'log_type': 'str', + 'log_desc': 'str', + 'access_url': 'str' + } + + attribute_map = { + 'status': 'status', + 'id': 'id', + 'log_type': 'log_type', + 'log_desc': 'log_desc', + 'access_url': 'access_url' + } + + def __init__(self, status=None, id=None, log_type=None, log_desc=None, access_url=None): + """LtslogInfo + + The model defined in huaweicloud sdk + + :param status: 配置状态 + :type status: str + :param id: 日志ID + :type id: str + :param log_type: 日志类型 + :type log_type: str + :param log_desc: 日志描述 + :type log_desc: str + :param access_url: LTS日志访问URL + :type access_url: str + """ + + + + self._status = None + self._id = None + self._log_type = None + self._log_desc = None + self._access_url = None + self.discriminator = None + + self.status = status + self.id = id + self.log_type = log_type + self.log_desc = log_desc + self.access_url = access_url + + @property + def status(self): + """Gets the status of this LtslogInfo. + + 配置状态 + + :return: The status of this LtslogInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this LtslogInfo. + + 配置状态 + + :param status: The status of this LtslogInfo. + :type status: str + """ + self._status = status + + @property + def id(self): + """Gets the id of this LtslogInfo. + + 日志ID + + :return: The id of this LtslogInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this LtslogInfo. + + 日志ID + + :param id: The id of this LtslogInfo. + :type id: str + """ + self._id = id + + @property + def log_type(self): + """Gets the log_type of this LtslogInfo. + + 日志类型 + + :return: The log_type of this LtslogInfo. + :rtype: str + """ + return self._log_type + + @log_type.setter + def log_type(self, log_type): + """Sets the log_type of this LtslogInfo. + + 日志类型 + + :param log_type: The log_type of this LtslogInfo. + :type log_type: str + """ + self._log_type = log_type + + @property + def log_desc(self): + """Gets the log_desc of this LtslogInfo. + + 日志描述 + + :return: The log_desc of this LtslogInfo. + :rtype: str + """ + return self._log_desc + + @log_desc.setter + def log_desc(self, log_desc): + """Sets the log_desc of this LtslogInfo. + + 日志描述 + + :param log_desc: The log_desc of this LtslogInfo. + :type log_desc: str + """ + self._log_desc = log_desc + + @property + def access_url(self): + """Gets the access_url of this LtslogInfo. + + LTS日志访问URL + + :return: The access_url of this LtslogInfo. + :rtype: str + """ + return self._access_url + + @access_url.setter + def access_url(self, access_url): + """Sets the access_url of this LtslogInfo. + + LTS日志访问URL + + :param access_url: The access_url of this LtslogInfo. + :type access_url: str + """ + self._access_url = access_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, LtslogInfo): + 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-dws/huaweicloudsdkdws/v2/model/resize.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/resize.py new file mode 100644 index 0000000000..670d1b1592 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/resize.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Resize: + + """ + 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 = { + 'node_type': 'str', + 'number_of_node': 'int' + } + + attribute_map = { + 'node_type': 'node_type', + 'number_of_node': 'number_of_node' + } + + def __init__(self, node_type=None, number_of_node=None): + """Resize + + The model defined in huaweicloud sdk + + :param node_type: 调整大小目标规格 + :type node_type: str + :param number_of_node: 调整大小目标节点数 + :type number_of_node: int + """ + + + + self._node_type = None + self._number_of_node = None + self.discriminator = None + + self.node_type = node_type + self.number_of_node = number_of_node + + @property + def node_type(self): + """Gets the node_type of this Resize. + + 调整大小目标规格 + + :return: The node_type of this Resize. + :rtype: str + """ + return self._node_type + + @node_type.setter + def node_type(self, node_type): + """Sets the node_type of this Resize. + + 调整大小目标规格 + + :param node_type: The node_type of this Resize. + :type node_type: str + """ + self._node_type = node_type + + @property + def number_of_node(self): + """Gets the number_of_node of this Resize. + + 调整大小目标节点数 + + :return: The number_of_node of this Resize. + :rtype: int + """ + return self._number_of_node + + @number_of_node.setter + def number_of_node(self, number_of_node): + """Sets the number_of_node of this Resize. + + 调整大小目标节点数 + + :param number_of_node: The number_of_node of this Resize. + :type number_of_node: int + """ + self._number_of_node = number_of_node + + 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, Resize): + 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-dws/huaweicloudsdkdws/v2/model/resize_cluster_with_existed_nodes_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/resize_cluster_with_existed_nodes_request.py new file mode 100644 index 0000000000..035fd02a48 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/resize_cluster_with_existed_nodes_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResizeClusterWithExistedNodesRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'body': 'ResizeClusterWithExistedNodesRequestBody' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """ResizeClusterWithExistedNodesRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 指定节点集群的ID + :type cluster_id: str + :param body: Body of the ResizeClusterWithExistedNodesRequest + :type body: :class:`huaweicloudsdkdws.v2.ResizeClusterWithExistedNodesRequestBody` + """ + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this ResizeClusterWithExistedNodesRequest. + + 指定节点集群的ID + + :return: The cluster_id of this ResizeClusterWithExistedNodesRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ResizeClusterWithExistedNodesRequest. + + 指定节点集群的ID + + :param cluster_id: The cluster_id of this ResizeClusterWithExistedNodesRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this ResizeClusterWithExistedNodesRequest. + + :return: The body of this ResizeClusterWithExistedNodesRequest. + :rtype: :class:`huaweicloudsdkdws.v2.ResizeClusterWithExistedNodesRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ResizeClusterWithExistedNodesRequest. + + :param body: The body of this ResizeClusterWithExistedNodesRequest. + :type body: :class:`huaweicloudsdkdws.v2.ResizeClusterWithExistedNodesRequestBody` + """ + 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, ResizeClusterWithExistedNodesRequest): + 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-dws/huaweicloudsdkdws/v2/model/resize_cluster_with_existed_nodes_request_body.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/resize_cluster_with_existed_nodes_request_body.py new file mode 100644 index 0000000000..d3d61782a9 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/resize_cluster_with_existed_nodes_request_body.py @@ -0,0 +1,408 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResizeClusterWithExistedNodesRequestBody: + + """ + 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 = { + 'scale_out': 'ScaleOut', + 'resize': 'Resize', + 'force_backup': 'bool', + 'mode': 'str', + 'logical_cluster_name': 'str', + 'expand_with_existed_node': 'bool', + 'create_node_only': 'bool', + 'auto_redistribute': 'bool', + 'is_scheduler_build_mode': 'bool', + 'redis_conf': 'RedisConf', + 'build_task_info': 'BuildTaskInfo', + 'order_id': 'str' + } + + attribute_map = { + 'scale_out': 'scale_out', + 'resize': 'resize', + 'force_backup': 'force_backup', + 'mode': 'mode', + 'logical_cluster_name': 'logical_cluster_name', + 'expand_with_existed_node': 'expand_with_existed_node', + 'create_node_only': 'create_node_only', + 'auto_redistribute': 'auto_redistribute', + 'is_scheduler_build_mode': 'is_scheduler_build_mode', + 'redis_conf': 'redis_conf', + 'build_task_info': 'build_task_info', + 'order_id': 'order_id' + } + + def __init__(self, scale_out=None, resize=None, force_backup=None, mode=None, logical_cluster_name=None, expand_with_existed_node=None, create_node_only=None, auto_redistribute=None, is_scheduler_build_mode=None, redis_conf=None, build_task_info=None, order_id=None): + """ResizeClusterWithExistedNodesRequestBody + + The model defined in huaweicloud sdk + + :param scale_out: + :type scale_out: :class:`huaweicloudsdkdws.v2.ScaleOut` + :param resize: + :type resize: :class:`huaweicloudsdkdws.v2.Resize` + :param force_backup: 是否强制备份 + :type force_backup: bool + :param mode: 扩容模式 + :type mode: str + :param logical_cluster_name: 逻辑集群名称 + :type logical_cluster_name: str + :param expand_with_existed_node: 是否是使用已添加的空闲节点进行扩容 + :type expand_with_existed_node: bool + :param create_node_only: 否只是添加节点 + :type create_node_only: bool + :param auto_redistribute: 扩容完成后是否自动启动重分布,默认是 + :type auto_redistribute: bool + :param is_scheduler_build_mode: 是否调度模式扩容加节点 + :type is_scheduler_build_mode: bool + :param redis_conf: + :type redis_conf: :class:`huaweicloudsdkdws.v2.RedisConf` + :param build_task_info: + :type build_task_info: :class:`huaweicloudsdkdws.v2.BuildTaskInfo` + :param order_id: 扩容订单ID + :type order_id: str + """ + + + + self._scale_out = None + self._resize = None + self._force_backup = None + self._mode = None + self._logical_cluster_name = None + self._expand_with_existed_node = None + self._create_node_only = None + self._auto_redistribute = None + self._is_scheduler_build_mode = None + self._redis_conf = None + self._build_task_info = None + self._order_id = None + self.discriminator = None + + self.scale_out = scale_out + if resize is not None: + self.resize = resize + self.force_backup = force_backup + self.mode = mode + self.logical_cluster_name = logical_cluster_name + self.expand_with_existed_node = expand_with_existed_node + self.create_node_only = create_node_only + self.auto_redistribute = auto_redistribute + self.is_scheduler_build_mode = is_scheduler_build_mode + self.redis_conf = redis_conf + self.build_task_info = build_task_info + if order_id is not None: + self.order_id = order_id + + @property + def scale_out(self): + """Gets the scale_out of this ResizeClusterWithExistedNodesRequestBody. + + :return: The scale_out of this ResizeClusterWithExistedNodesRequestBody. + :rtype: :class:`huaweicloudsdkdws.v2.ScaleOut` + """ + return self._scale_out + + @scale_out.setter + def scale_out(self, scale_out): + """Sets the scale_out of this ResizeClusterWithExistedNodesRequestBody. + + :param scale_out: The scale_out of this ResizeClusterWithExistedNodesRequestBody. + :type scale_out: :class:`huaweicloudsdkdws.v2.ScaleOut` + """ + self._scale_out = scale_out + + @property + def resize(self): + """Gets the resize of this ResizeClusterWithExistedNodesRequestBody. + + :return: The resize of this ResizeClusterWithExistedNodesRequestBody. + :rtype: :class:`huaweicloudsdkdws.v2.Resize` + """ + return self._resize + + @resize.setter + def resize(self, resize): + """Sets the resize of this ResizeClusterWithExistedNodesRequestBody. + + :param resize: The resize of this ResizeClusterWithExistedNodesRequestBody. + :type resize: :class:`huaweicloudsdkdws.v2.Resize` + """ + self._resize = resize + + @property + def force_backup(self): + """Gets the force_backup of this ResizeClusterWithExistedNodesRequestBody. + + 是否强制备份 + + :return: The force_backup of this ResizeClusterWithExistedNodesRequestBody. + :rtype: bool + """ + return self._force_backup + + @force_backup.setter + def force_backup(self, force_backup): + """Sets the force_backup of this ResizeClusterWithExistedNodesRequestBody. + + 是否强制备份 + + :param force_backup: The force_backup of this ResizeClusterWithExistedNodesRequestBody. + :type force_backup: bool + """ + self._force_backup = force_backup + + @property + def mode(self): + """Gets the mode of this ResizeClusterWithExistedNodesRequestBody. + + 扩容模式 + + :return: The mode of this ResizeClusterWithExistedNodesRequestBody. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this ResizeClusterWithExistedNodesRequestBody. + + 扩容模式 + + :param mode: The mode of this ResizeClusterWithExistedNodesRequestBody. + :type mode: str + """ + self._mode = mode + + @property + def logical_cluster_name(self): + """Gets the logical_cluster_name of this ResizeClusterWithExistedNodesRequestBody. + + 逻辑集群名称 + + :return: The logical_cluster_name of this ResizeClusterWithExistedNodesRequestBody. + :rtype: str + """ + return self._logical_cluster_name + + @logical_cluster_name.setter + def logical_cluster_name(self, logical_cluster_name): + """Sets the logical_cluster_name of this ResizeClusterWithExistedNodesRequestBody. + + 逻辑集群名称 + + :param logical_cluster_name: The logical_cluster_name of this ResizeClusterWithExistedNodesRequestBody. + :type logical_cluster_name: str + """ + self._logical_cluster_name = logical_cluster_name + + @property + def expand_with_existed_node(self): + """Gets the expand_with_existed_node of this ResizeClusterWithExistedNodesRequestBody. + + 是否是使用已添加的空闲节点进行扩容 + + :return: The expand_with_existed_node of this ResizeClusterWithExistedNodesRequestBody. + :rtype: bool + """ + return self._expand_with_existed_node + + @expand_with_existed_node.setter + def expand_with_existed_node(self, expand_with_existed_node): + """Sets the expand_with_existed_node of this ResizeClusterWithExistedNodesRequestBody. + + 是否是使用已添加的空闲节点进行扩容 + + :param expand_with_existed_node: The expand_with_existed_node of this ResizeClusterWithExistedNodesRequestBody. + :type expand_with_existed_node: bool + """ + self._expand_with_existed_node = expand_with_existed_node + + @property + def create_node_only(self): + """Gets the create_node_only of this ResizeClusterWithExistedNodesRequestBody. + + 否只是添加节点 + + :return: The create_node_only of this ResizeClusterWithExistedNodesRequestBody. + :rtype: bool + """ + return self._create_node_only + + @create_node_only.setter + def create_node_only(self, create_node_only): + """Sets the create_node_only of this ResizeClusterWithExistedNodesRequestBody. + + 否只是添加节点 + + :param create_node_only: The create_node_only of this ResizeClusterWithExistedNodesRequestBody. + :type create_node_only: bool + """ + self._create_node_only = create_node_only + + @property + def auto_redistribute(self): + """Gets the auto_redistribute of this ResizeClusterWithExistedNodesRequestBody. + + 扩容完成后是否自动启动重分布,默认是 + + :return: The auto_redistribute of this ResizeClusterWithExistedNodesRequestBody. + :rtype: bool + """ + return self._auto_redistribute + + @auto_redistribute.setter + def auto_redistribute(self, auto_redistribute): + """Sets the auto_redistribute of this ResizeClusterWithExistedNodesRequestBody. + + 扩容完成后是否自动启动重分布,默认是 + + :param auto_redistribute: The auto_redistribute of this ResizeClusterWithExistedNodesRequestBody. + :type auto_redistribute: bool + """ + self._auto_redistribute = auto_redistribute + + @property + def is_scheduler_build_mode(self): + """Gets the is_scheduler_build_mode of this ResizeClusterWithExistedNodesRequestBody. + + 是否调度模式扩容加节点 + + :return: The is_scheduler_build_mode of this ResizeClusterWithExistedNodesRequestBody. + :rtype: bool + """ + return self._is_scheduler_build_mode + + @is_scheduler_build_mode.setter + def is_scheduler_build_mode(self, is_scheduler_build_mode): + """Sets the is_scheduler_build_mode of this ResizeClusterWithExistedNodesRequestBody. + + 是否调度模式扩容加节点 + + :param is_scheduler_build_mode: The is_scheduler_build_mode of this ResizeClusterWithExistedNodesRequestBody. + :type is_scheduler_build_mode: bool + """ + self._is_scheduler_build_mode = is_scheduler_build_mode + + @property + def redis_conf(self): + """Gets the redis_conf of this ResizeClusterWithExistedNodesRequestBody. + + :return: The redis_conf of this ResizeClusterWithExistedNodesRequestBody. + :rtype: :class:`huaweicloudsdkdws.v2.RedisConf` + """ + return self._redis_conf + + @redis_conf.setter + def redis_conf(self, redis_conf): + """Sets the redis_conf of this ResizeClusterWithExistedNodesRequestBody. + + :param redis_conf: The redis_conf of this ResizeClusterWithExistedNodesRequestBody. + :type redis_conf: :class:`huaweicloudsdkdws.v2.RedisConf` + """ + self._redis_conf = redis_conf + + @property + def build_task_info(self): + """Gets the build_task_info of this ResizeClusterWithExistedNodesRequestBody. + + :return: The build_task_info of this ResizeClusterWithExistedNodesRequestBody. + :rtype: :class:`huaweicloudsdkdws.v2.BuildTaskInfo` + """ + return self._build_task_info + + @build_task_info.setter + def build_task_info(self, build_task_info): + """Sets the build_task_info of this ResizeClusterWithExistedNodesRequestBody. + + :param build_task_info: The build_task_info of this ResizeClusterWithExistedNodesRequestBody. + :type build_task_info: :class:`huaweicloudsdkdws.v2.BuildTaskInfo` + """ + self._build_task_info = build_task_info + + @property + def order_id(self): + """Gets the order_id of this ResizeClusterWithExistedNodesRequestBody. + + 扩容订单ID + + :return: The order_id of this ResizeClusterWithExistedNodesRequestBody. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this ResizeClusterWithExistedNodesRequestBody. + + 扩容订单ID + + :param order_id: The order_id of this ResizeClusterWithExistedNodesRequestBody. + :type order_id: str + """ + self._order_id = order_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, ResizeClusterWithExistedNodesRequestBody): + 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-dws/huaweicloudsdkdws/v2/model/resize_cluster_with_existed_nodes_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/resize_cluster_with_existed_nodes_response.py new file mode 100644 index 0000000000..73e489bdee --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/resize_cluster_with_existed_nodes_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 ResizeClusterWithExistedNodesResponse(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): + """ResizeClusterWithExistedNodesResponse + + The model defined in huaweicloud sdk + + """ + + super(ResizeClusterWithExistedNodesResponse, 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, ResizeClusterWithExistedNodesResponse): + 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-dws/huaweicloudsdkdws/v2/model/restart_logical_cluster_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/restart_logical_cluster_request.py new file mode 100644 index 0000000000..3ebcbabdc8 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/restart_logical_cluster_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestartLogicalClusterRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'logical_cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'logical_cluster_id': 'logical_cluster_id' + } + + def __init__(self, cluster_id=None, logical_cluster_id=None): + """RestartLogicalClusterRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 指定重启集群的ID + :type cluster_id: str + :param logical_cluster_id: 指定待重启逻辑集群的ID + :type logical_cluster_id: str + """ + + + + self._cluster_id = None + self._logical_cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + self.logical_cluster_id = logical_cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this RestartLogicalClusterRequest. + + 指定重启集群的ID + + :return: The cluster_id of this RestartLogicalClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this RestartLogicalClusterRequest. + + 指定重启集群的ID + + :param cluster_id: The cluster_id of this RestartLogicalClusterRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def logical_cluster_id(self): + """Gets the logical_cluster_id of this RestartLogicalClusterRequest. + + 指定待重启逻辑集群的ID + + :return: The logical_cluster_id of this RestartLogicalClusterRequest. + :rtype: str + """ + return self._logical_cluster_id + + @logical_cluster_id.setter + def logical_cluster_id(self, logical_cluster_id): + """Sets the logical_cluster_id of this RestartLogicalClusterRequest. + + 指定待重启逻辑集群的ID + + :param logical_cluster_id: The logical_cluster_id of this RestartLogicalClusterRequest. + :type logical_cluster_id: str + """ + self._logical_cluster_id = logical_cluster_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, RestartLogicalClusterRequest): + 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-dws/huaweicloudsdkdws/v2/model/restart_logical_cluster_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/restart_logical_cluster_response.py new file mode 100644 index 0000000000..82da81b344 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/restart_logical_cluster_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 RestartLogicalClusterResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, error_code=None, error_msg=None): + """RestartLogicalClusterResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误信息 + :type error_msg: str + """ + + super(RestartLogicalClusterResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this RestartLogicalClusterResponse. + + 错误码 + + :return: The error_code of this RestartLogicalClusterResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this RestartLogicalClusterResponse. + + 错误码 + + :param error_code: The error_code of this RestartLogicalClusterResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this RestartLogicalClusterResponse. + + 错误信息 + + :return: The error_msg of this RestartLogicalClusterResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this RestartLogicalClusterResponse. + + 错误信息 + + :param error_msg: The error_msg of this RestartLogicalClusterResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + 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, RestartLogicalClusterResponse): + 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-dws/huaweicloudsdkdws/v2/model/restore_redistribution_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/restore_redistribution_request.py new file mode 100644 index 0000000000..f05e24451b --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/restore_redistribution_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestoreRedistributionRequest: + + """ + 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 = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """RestoreRedistributionRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 指定恢复重分布集群的ID + :type cluster_id: str + """ + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this RestoreRedistributionRequest. + + 指定恢复重分布集群的ID + + :return: The cluster_id of this RestoreRedistributionRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this RestoreRedistributionRequest. + + 指定恢复重分布集群的ID + + :param cluster_id: The cluster_id of this RestoreRedistributionRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_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, RestoreRedistributionRequest): + 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-dws/huaweicloudsdkdws/v2/model/restore_redistribution_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/restore_redistribution_response.py new file mode 100644 index 0000000000..3284141e1c --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/restore_redistribution_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 RestoreRedistributionResponse(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): + """RestoreRedistributionResponse + + The model defined in huaweicloud sdk + + """ + + super(RestoreRedistributionResponse, 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, RestoreRedistributionResponse): + 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-dws/huaweicloudsdkdws/v2/model/ring_host.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/ring_host.py new file mode 100644 index 0000000000..aa387d5738 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/ring_host.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RingHost: + + """ + 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 = { + 'host_name': 'str', + 'back_ip': 'str', + 'cpu_cores': 'int', + 'memory': 'float', + 'disk_size': 'float' + } + + attribute_map = { + 'host_name': 'host_name', + 'back_ip': 'back_ip', + 'cpu_cores': 'cpu_cores', + 'memory': 'memory', + 'disk_size': 'disk_size' + } + + def __init__(self, host_name=None, back_ip=None, cpu_cores=None, memory=None, disk_size=None): + """RingHost + + The model defined in huaweicloud sdk + + :param host_name: 主机名称 + :type host_name: str + :param back_ip: 后端IP地址 + :type back_ip: str + :param cpu_cores: 主机CPU核数 + :type cpu_cores: int + :param memory: 主机内存 + :type memory: float + :param disk_size: 主机磁盘大小 + :type disk_size: float + """ + + + + self._host_name = None + self._back_ip = None + self._cpu_cores = None + self._memory = None + self._disk_size = None + self.discriminator = None + + self.host_name = host_name + self.back_ip = back_ip + self.cpu_cores = cpu_cores + self.memory = memory + self.disk_size = disk_size + + @property + def host_name(self): + """Gets the host_name of this RingHost. + + 主机名称 + + :return: The host_name of this RingHost. + :rtype: str + """ + return self._host_name + + @host_name.setter + def host_name(self, host_name): + """Sets the host_name of this RingHost. + + 主机名称 + + :param host_name: The host_name of this RingHost. + :type host_name: str + """ + self._host_name = host_name + + @property + def back_ip(self): + """Gets the back_ip of this RingHost. + + 后端IP地址 + + :return: The back_ip of this RingHost. + :rtype: str + """ + return self._back_ip + + @back_ip.setter + def back_ip(self, back_ip): + """Sets the back_ip of this RingHost. + + 后端IP地址 + + :param back_ip: The back_ip of this RingHost. + :type back_ip: str + """ + self._back_ip = back_ip + + @property + def cpu_cores(self): + """Gets the cpu_cores of this RingHost. + + 主机CPU核数 + + :return: The cpu_cores of this RingHost. + :rtype: int + """ + return self._cpu_cores + + @cpu_cores.setter + def cpu_cores(self, cpu_cores): + """Sets the cpu_cores of this RingHost. + + 主机CPU核数 + + :param cpu_cores: The cpu_cores of this RingHost. + :type cpu_cores: int + """ + self._cpu_cores = cpu_cores + + @property + def memory(self): + """Gets the memory of this RingHost. + + 主机内存 + + :return: The memory of this RingHost. + :rtype: float + """ + return self._memory + + @memory.setter + def memory(self, memory): + """Sets the memory of this RingHost. + + 主机内存 + + :param memory: The memory of this RingHost. + :type memory: float + """ + self._memory = memory + + @property + def disk_size(self): + """Gets the disk_size of this RingHost. + + 主机磁盘大小 + + :return: The disk_size of this RingHost. + :rtype: float + """ + return self._disk_size + + @disk_size.setter + def disk_size(self, disk_size): + """Sets the disk_size of this RingHost. + + 主机磁盘大小 + + :param disk_size: The disk_size of this RingHost. + :type disk_size: float + """ + self._disk_size = disk_size + + 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, RingHost): + 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-dws/huaweicloudsdkdws/v2/model/show_query_detail_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_query_detail_request.py new file mode 100644 index 0000000000..4c3a7410fb --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_query_detail_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowQueryDetailRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'query_id': 'str', + 'ctime': 'int' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'query_id': 'query_id', + 'ctime': 'ctime' + } + + def __init__(self, cluster_id=None, query_id=None, ctime=None): + """ShowQueryDetailRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID。 + :type cluster_id: str + :param query_id: 查询ID。 + :type query_id: str + :param ctime: 采集时间。 + :type ctime: int + """ + + + + self._cluster_id = None + self._query_id = None + self._ctime = None + self.discriminator = None + + self.cluster_id = cluster_id + self.query_id = query_id + if ctime is not None: + self.ctime = ctime + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowQueryDetailRequest. + + 集群ID。 + + :return: The cluster_id of this ShowQueryDetailRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowQueryDetailRequest. + + 集群ID。 + + :param cluster_id: The cluster_id of this ShowQueryDetailRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def query_id(self): + """Gets the query_id of this ShowQueryDetailRequest. + + 查询ID。 + + :return: The query_id of this ShowQueryDetailRequest. + :rtype: str + """ + return self._query_id + + @query_id.setter + def query_id(self, query_id): + """Sets the query_id of this ShowQueryDetailRequest. + + 查询ID。 + + :param query_id: The query_id of this ShowQueryDetailRequest. + :type query_id: str + """ + self._query_id = query_id + + @property + def ctime(self): + """Gets the ctime of this ShowQueryDetailRequest. + + 采集时间。 + + :return: The ctime of this ShowQueryDetailRequest. + :rtype: int + """ + return self._ctime + + @ctime.setter + def ctime(self, ctime): + """Sets the ctime of this ShowQueryDetailRequest. + + 采集时间。 + + :param ctime: The ctime of this ShowQueryDetailRequest. + :type ctime: int + """ + self._ctime = ctime + + 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, ShowQueryDetailRequest): + 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-dws/huaweicloudsdkdws/v2/model/show_query_detail_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_query_detail_response.py new file mode 100644 index 0000000000..2bbd52aa7c --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_query_detail_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 ShowQueryDetailResponse(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 = { + 'code': 'int', + 'msg': 'str', + 'data': 'ListQueriesDto' + } + + attribute_map = { + 'code': 'code', + 'msg': 'msg', + 'data': 'data' + } + + def __init__(self, code=None, msg=None, data=None): + """ShowQueryDetailResponse + + The model defined in huaweicloud sdk + + :param code: 响应码。 + :type code: int + :param msg: 响应信息。 + :type msg: str + :param data: + :type data: :class:`huaweicloudsdkdws.v2.ListQueriesDto` + """ + + super(ShowQueryDetailResponse, self).__init__() + + self._code = None + self._msg = None + self._data = None + self.discriminator = None + + if code is not None: + self.code = code + if msg is not None: + self.msg = msg + if data is not None: + self.data = data + + @property + def code(self): + """Gets the code of this ShowQueryDetailResponse. + + 响应码。 + + :return: The code of this ShowQueryDetailResponse. + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ShowQueryDetailResponse. + + 响应码。 + + :param code: The code of this ShowQueryDetailResponse. + :type code: int + """ + self._code = code + + @property + def msg(self): + """Gets the msg of this ShowQueryDetailResponse. + + 响应信息。 + + :return: The msg of this ShowQueryDetailResponse. + :rtype: str + """ + return self._msg + + @msg.setter + def msg(self, msg): + """Sets the msg of this ShowQueryDetailResponse. + + 响应信息。 + + :param msg: The msg of this ShowQueryDetailResponse. + :type msg: str + """ + self._msg = msg + + @property + def data(self): + """Gets the data of this ShowQueryDetailResponse. + + :return: The data of this ShowQueryDetailResponse. + :rtype: :class:`huaweicloudsdkdws.v2.ListQueriesDto` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowQueryDetailResponse. + + :param data: The data of this ShowQueryDetailResponse. + :type data: :class:`huaweicloudsdkdws.v2.ListQueriesDto` + """ + 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, ShowQueryDetailResponse): + 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-dws/huaweicloudsdkdws/v2/model/stop_redistribution_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/stop_redistribution_request.py new file mode 100644 index 0000000000..3e0e00a197 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/stop_redistribution_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopRedistributionRequest: + + """ + 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 = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StopRedistributionRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 指定暂停重分布集群的ID + :type cluster_id: str + """ + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StopRedistributionRequest. + + 指定暂停重分布集群的ID + + :return: The cluster_id of this StopRedistributionRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StopRedistributionRequest. + + 指定暂停重分布集群的ID + + :param cluster_id: The cluster_id of this StopRedistributionRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_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, StopRedistributionRequest): + 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-dws/huaweicloudsdkdws/v2/model/stop_redistribution_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/stop_redistribution_response.py new file mode 100644 index 0000000000..d7c883177c --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/stop_redistribution_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 StopRedistributionResponse(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): + """StopRedistributionResponse + + The model defined in huaweicloud sdk + + """ + + super(StopRedistributionResponse, 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, StopRedistributionResponse): + 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-dws/huaweicloudsdkdws/v2/model/topo_instance_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/topo_instance_info.py new file mode 100644 index 0000000000..7f12fee384 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/topo_instance_info.py @@ -0,0 +1,376 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TopoInstanceInfo: + + """ + 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', + 'name': 'str', + 'manage_ip': 'str', + 'traffic_ip': 'str', + 'internal_ip': 'str', + 'internal_mgnt_ip': 'str', + 'eip': 'str', + 'elb': 'str', + 'status': 'str', + 'az_code': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'manage_ip': 'manage_ip', + 'traffic_ip': 'traffic_ip', + 'internal_ip': 'internal_ip', + 'internal_mgnt_ip': 'internal_mgnt_ip', + 'eip': 'eip', + 'elb': 'elb', + 'status': 'status', + 'az_code': 'az_code' + } + + def __init__(self, id=None, name=None, manage_ip=None, traffic_ip=None, internal_ip=None, internal_mgnt_ip=None, eip=None, elb=None, status=None, az_code=None): + """TopoInstanceInfo + + The model defined in huaweicloud sdk + + :param id: 实例ID + :type id: str + :param name: 实例名称 + :type name: str + :param manage_ip: 实例管理IP + :type manage_ip: str + :param traffic_ip: 业务IP + :type traffic_ip: str + :param internal_ip: 内部通信IP + :type internal_ip: str + :param internal_mgnt_ip: 内部管理IP + :type internal_mgnt_ip: str + :param eip: EIP + :type eip: str + :param elb: elb地址 + :type elb: str + :param status: 实例状态 + :type status: str + :param az_code: 可用区编码 + :type az_code: str + """ + + + + self._id = None + self._name = None + self._manage_ip = None + self._traffic_ip = None + self._internal_ip = None + self._internal_mgnt_ip = None + self._eip = None + self._elb = None + self._status = None + self._az_code = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if manage_ip is not None: + self.manage_ip = manage_ip + if traffic_ip is not None: + self.traffic_ip = traffic_ip + if internal_ip is not None: + self.internal_ip = internal_ip + if internal_mgnt_ip is not None: + self.internal_mgnt_ip = internal_mgnt_ip + if eip is not None: + self.eip = eip + if elb is not None: + self.elb = elb + if status is not None: + self.status = status + if az_code is not None: + self.az_code = az_code + + @property + def id(self): + """Gets the id of this TopoInstanceInfo. + + 实例ID + + :return: The id of this TopoInstanceInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this TopoInstanceInfo. + + 实例ID + + :param id: The id of this TopoInstanceInfo. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this TopoInstanceInfo. + + 实例名称 + + :return: The name of this TopoInstanceInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TopoInstanceInfo. + + 实例名称 + + :param name: The name of this TopoInstanceInfo. + :type name: str + """ + self._name = name + + @property + def manage_ip(self): + """Gets the manage_ip of this TopoInstanceInfo. + + 实例管理IP + + :return: The manage_ip of this TopoInstanceInfo. + :rtype: str + """ + return self._manage_ip + + @manage_ip.setter + def manage_ip(self, manage_ip): + """Sets the manage_ip of this TopoInstanceInfo. + + 实例管理IP + + :param manage_ip: The manage_ip of this TopoInstanceInfo. + :type manage_ip: str + """ + self._manage_ip = manage_ip + + @property + def traffic_ip(self): + """Gets the traffic_ip of this TopoInstanceInfo. + + 业务IP + + :return: The traffic_ip of this TopoInstanceInfo. + :rtype: str + """ + return self._traffic_ip + + @traffic_ip.setter + def traffic_ip(self, traffic_ip): + """Sets the traffic_ip of this TopoInstanceInfo. + + 业务IP + + :param traffic_ip: The traffic_ip of this TopoInstanceInfo. + :type traffic_ip: str + """ + self._traffic_ip = traffic_ip + + @property + def internal_ip(self): + """Gets the internal_ip of this TopoInstanceInfo. + + 内部通信IP + + :return: The internal_ip of this TopoInstanceInfo. + :rtype: str + """ + return self._internal_ip + + @internal_ip.setter + def internal_ip(self, internal_ip): + """Sets the internal_ip of this TopoInstanceInfo. + + 内部通信IP + + :param internal_ip: The internal_ip of this TopoInstanceInfo. + :type internal_ip: str + """ + self._internal_ip = internal_ip + + @property + def internal_mgnt_ip(self): + """Gets the internal_mgnt_ip of this TopoInstanceInfo. + + 内部管理IP + + :return: The internal_mgnt_ip of this TopoInstanceInfo. + :rtype: str + """ + return self._internal_mgnt_ip + + @internal_mgnt_ip.setter + def internal_mgnt_ip(self, internal_mgnt_ip): + """Sets the internal_mgnt_ip of this TopoInstanceInfo. + + 内部管理IP + + :param internal_mgnt_ip: The internal_mgnt_ip of this TopoInstanceInfo. + :type internal_mgnt_ip: str + """ + self._internal_mgnt_ip = internal_mgnt_ip + + @property + def eip(self): + """Gets the eip of this TopoInstanceInfo. + + EIP + + :return: The eip of this TopoInstanceInfo. + :rtype: str + """ + return self._eip + + @eip.setter + def eip(self, eip): + """Sets the eip of this TopoInstanceInfo. + + EIP + + :param eip: The eip of this TopoInstanceInfo. + :type eip: str + """ + self._eip = eip + + @property + def elb(self): + """Gets the elb of this TopoInstanceInfo. + + elb地址 + + :return: The elb of this TopoInstanceInfo. + :rtype: str + """ + return self._elb + + @elb.setter + def elb(self, elb): + """Sets the elb of this TopoInstanceInfo. + + elb地址 + + :param elb: The elb of this TopoInstanceInfo. + :type elb: str + """ + self._elb = elb + + @property + def status(self): + """Gets the status of this TopoInstanceInfo. + + 实例状态 + + :return: The status of this TopoInstanceInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TopoInstanceInfo. + + 实例状态 + + :param status: The status of this TopoInstanceInfo. + :type status: str + """ + self._status = status + + @property + def az_code(self): + """Gets the az_code of this TopoInstanceInfo. + + 可用区编码 + + :return: The az_code of this TopoInstanceInfo. + :rtype: str + """ + return self._az_code + + @az_code.setter + def az_code(self, az_code): + """Sets the az_code of this TopoInstanceInfo. + + 可用区编码 + + :param az_code: The az_code of this TopoInstanceInfo. + :type az_code: str + """ + self._az_code = az_code + + 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, TopoInstanceInfo): + 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-dws/huaweicloudsdkdws/v2/model/topo_ring_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/topo_ring_info.py new file mode 100644 index 0000000000..02b5be6bf9 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/topo_ring_info.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TopoRingInfo: + + """ + 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_info_lists': 'list[TopoInstanceInfo]' + } + + attribute_map = { + 'instance_info_lists': 'instance_info_lists' + } + + def __init__(self, instance_info_lists=None): + """TopoRingInfo + + The model defined in huaweicloud sdk + + :param instance_info_lists: 集群实例列表信息 + :type instance_info_lists: list[:class:`huaweicloudsdkdws.v2.TopoInstanceInfo`] + """ + + + + self._instance_info_lists = None + self.discriminator = None + + if instance_info_lists is not None: + self.instance_info_lists = instance_info_lists + + @property + def instance_info_lists(self): + """Gets the instance_info_lists of this TopoRingInfo. + + 集群实例列表信息 + + :return: The instance_info_lists of this TopoRingInfo. + :rtype: list[:class:`huaweicloudsdkdws.v2.TopoInstanceInfo`] + """ + return self._instance_info_lists + + @instance_info_lists.setter + def instance_info_lists(self, instance_info_lists): + """Sets the instance_info_lists of this TopoRingInfo. + + 集群实例列表信息 + + :param instance_info_lists: The instance_info_lists of this TopoRingInfo. + :type instance_info_lists: list[:class:`huaweicloudsdkdws.v2.TopoInstanceInfo`] + """ + self._instance_info_lists = instance_info_lists + + 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, TopoRingInfo): + 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-dws/huaweicloudsdkdws/v2/model/update_logical_cluster_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/update_logical_cluster_request.py new file mode 100644 index 0000000000..9803426a33 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/update_logical_cluster_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateLogicalClusterRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'logical_cluster_id': 'str', + 'body': 'UpdateLogicalClusterRequestBody' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'logical_cluster_id': 'logical_cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, logical_cluster_id=None, body=None): + """UpdateLogicalClusterRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 指定待编辑集群的ID + :type cluster_id: str + :param logical_cluster_id: 指定待编辑逻辑集群的ID + :type logical_cluster_id: str + :param body: Body of the UpdateLogicalClusterRequest + :type body: :class:`huaweicloudsdkdws.v2.UpdateLogicalClusterRequestBody` + """ + + + + self._cluster_id = None + self._logical_cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + self.logical_cluster_id = logical_cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateLogicalClusterRequest. + + 指定待编辑集群的ID + + :return: The cluster_id of this UpdateLogicalClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateLogicalClusterRequest. + + 指定待编辑集群的ID + + :param cluster_id: The cluster_id of this UpdateLogicalClusterRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def logical_cluster_id(self): + """Gets the logical_cluster_id of this UpdateLogicalClusterRequest. + + 指定待编辑逻辑集群的ID + + :return: The logical_cluster_id of this UpdateLogicalClusterRequest. + :rtype: str + """ + return self._logical_cluster_id + + @logical_cluster_id.setter + def logical_cluster_id(self, logical_cluster_id): + """Sets the logical_cluster_id of this UpdateLogicalClusterRequest. + + 指定待编辑逻辑集群的ID + + :param logical_cluster_id: The logical_cluster_id of this UpdateLogicalClusterRequest. + :type logical_cluster_id: str + """ + self._logical_cluster_id = logical_cluster_id + + @property + def body(self): + """Gets the body of this UpdateLogicalClusterRequest. + + :return: The body of this UpdateLogicalClusterRequest. + :rtype: :class:`huaweicloudsdkdws.v2.UpdateLogicalClusterRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateLogicalClusterRequest. + + :param body: The body of this UpdateLogicalClusterRequest. + :type body: :class:`huaweicloudsdkdws.v2.UpdateLogicalClusterRequestBody` + """ + 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, UpdateLogicalClusterRequest): + 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-dws/huaweicloudsdkdws/v2/model/update_logical_cluster_request_body.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/update_logical_cluster_request_body.py new file mode 100644 index 0000000000..42d6c50458 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/update_logical_cluster_request_body.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateLogicalClusterRequestBody: + + """ + 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 = { + 'cluster_rings': 'list[ClusterRing]', + 'mode': 'str', + 'waiting_for_killing': 'int' + } + + attribute_map = { + 'cluster_rings': 'cluster_rings', + 'mode': 'mode', + 'waiting_for_killing': 'waiting_for_killing' + } + + def __init__(self, cluster_rings=None, mode=None, waiting_for_killing=None): + """UpdateLogicalClusterRequestBody + + The model defined in huaweicloud sdk + + :param cluster_rings: 逻辑集群编辑环列表信息 + :type cluster_rings: list[:class:`huaweicloudsdkdws.v2.ClusterRing`] + :param mode: 模式 + :type mode: str + :param waiting_for_killing: 是否等待销毁 + :type waiting_for_killing: int + """ + + + + self._cluster_rings = None + self._mode = None + self._waiting_for_killing = None + self.discriminator = None + + self.cluster_rings = cluster_rings + if mode is not None: + self.mode = mode + if waiting_for_killing is not None: + self.waiting_for_killing = waiting_for_killing + + @property + def cluster_rings(self): + """Gets the cluster_rings of this UpdateLogicalClusterRequestBody. + + 逻辑集群编辑环列表信息 + + :return: The cluster_rings of this UpdateLogicalClusterRequestBody. + :rtype: list[:class:`huaweicloudsdkdws.v2.ClusterRing`] + """ + return self._cluster_rings + + @cluster_rings.setter + def cluster_rings(self, cluster_rings): + """Sets the cluster_rings of this UpdateLogicalClusterRequestBody. + + 逻辑集群编辑环列表信息 + + :param cluster_rings: The cluster_rings of this UpdateLogicalClusterRequestBody. + :type cluster_rings: list[:class:`huaweicloudsdkdws.v2.ClusterRing`] + """ + self._cluster_rings = cluster_rings + + @property + def mode(self): + """Gets the mode of this UpdateLogicalClusterRequestBody. + + 模式 + + :return: The mode of this UpdateLogicalClusterRequestBody. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this UpdateLogicalClusterRequestBody. + + 模式 + + :param mode: The mode of this UpdateLogicalClusterRequestBody. + :type mode: str + """ + self._mode = mode + + @property + def waiting_for_killing(self): + """Gets the waiting_for_killing of this UpdateLogicalClusterRequestBody. + + 是否等待销毁 + + :return: The waiting_for_killing of this UpdateLogicalClusterRequestBody. + :rtype: int + """ + return self._waiting_for_killing + + @waiting_for_killing.setter + def waiting_for_killing(self, waiting_for_killing): + """Sets the waiting_for_killing of this UpdateLogicalClusterRequestBody. + + 是否等待销毁 + + :param waiting_for_killing: The waiting_for_killing of this UpdateLogicalClusterRequestBody. + :type waiting_for_killing: int + """ + self._waiting_for_killing = waiting_for_killing + + 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, UpdateLogicalClusterRequestBody): + 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-dws/huaweicloudsdkdws/v2/model/update_logical_cluster_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/update_logical_cluster_response.py new file mode 100644 index 0000000000..210d8731eb --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/update_logical_cluster_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 UpdateLogicalClusterResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, error_code=None, error_msg=None): + """UpdateLogicalClusterResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误信息 + :type error_msg: str + """ + + super(UpdateLogicalClusterResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this UpdateLogicalClusterResponse. + + 错误码 + + :return: The error_code of this UpdateLogicalClusterResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this UpdateLogicalClusterResponse. + + 错误码 + + :param error_code: The error_code of this UpdateLogicalClusterResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this UpdateLogicalClusterResponse. + + 错误信息 + + :return: The error_msg of this UpdateLogicalClusterResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this UpdateLogicalClusterResponse. + + 错误信息 + + :param error_msg: The error_msg of this UpdateLogicalClusterResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + 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, UpdateLogicalClusterResponse): + 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-dws/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index be9473fdbf..6211bb7756 100644 --- a/huaweicloud-sdk-dws/setup.py +++ b/huaweicloud-sdk-dws/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdws" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ec/requirements.txt b/huaweicloud-sdk-ec/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ec/requirements.txt +++ b/huaweicloud-sdk-ec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ec/setup.py b/huaweicloud-sdk-ec/setup.py index 093afa90ca..838893c294 100644 --- a/huaweicloud-sdk-ec/setup.py +++ b/huaweicloud-sdk-ec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkec" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index fe14fd78a6..ff9bf49969 100644 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-edgesec/requirements.txt b/huaweicloud-sdk-edgesec/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-edgesec/requirements.txt +++ b/huaweicloud-sdk-edgesec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-edgesec/setup.py b/huaweicloud-sdk-edgesec/setup.py index 2e67def1a1..cc170d540f 100644 --- a/huaweicloud-sdk-edgesec/setup.py +++ b/huaweicloud-sdk-edgesec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkedgesec" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index 5f72d485ac..967cea9a1e 100644 --- a/huaweicloud-sdk-eg/setup.py +++ b/huaweicloud-sdk-eg/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeg" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index b20124a0b6..792227e72c 100644 --- a/huaweicloud-sdk-eihealth/setup.py +++ b/huaweicloud-sdk-eihealth/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeihealth" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index f55a271187..458568507c 100644 --- a/huaweicloud-sdk-eip/setup.py +++ b/huaweicloud-sdk-eip/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeip" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index ae30213642..544fad5b4f 100644 --- a/huaweicloud-sdk-elb/setup.py +++ b/huaweicloud-sdk-elb/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkelb" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index ed5d98944a..048e86874a 100644 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index dbde9d8734..7879563024 100644 --- a/huaweicloud-sdk-er/setup.py +++ b/huaweicloud-sdk-er/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdker" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-evs/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 0498fb9171..0a99157672 100644 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index 13483f82e1..6769ed8bd7 100644 --- a/huaweicloud-sdk-frs/setup.py +++ b/huaweicloud-sdk-frs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkfrs" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/__init__.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/__init__.py index 041f59203e..656d490dee 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/__init__.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/__init__.py @@ -111,6 +111,7 @@ from huaweicloudsdkfunctiongraph.v2.model.list_dependencies_result import ListDependenciesResult from huaweicloudsdkfunctiongraph.v2.model.list_dependency_version_request import ListDependencyVersionRequest from huaweicloudsdkfunctiongraph.v2.model.list_dependency_version_response import ListDependencyVersionResponse +from huaweicloudsdkfunctiongraph.v2.model.list_enterprise_resource_detail import ListEnterpriseResourceDetail from huaweicloudsdkfunctiongraph.v2.model.list_enterprise_resource_request_body import ListEnterpriseResourceRequestBody from huaweicloudsdkfunctiongraph.v2.model.list_enterprise_resource_result import ListEnterpriseResourceResult from huaweicloudsdkfunctiongraph.v2.model.list_events_request import ListEventsRequest diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/__init__.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/__init__.py index 45001a89d0..7e00e6baa6 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/__init__.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/__init__.py @@ -109,6 +109,7 @@ from huaweicloudsdkfunctiongraph.v2.model.list_dependencies_result import ListDependenciesResult from huaweicloudsdkfunctiongraph.v2.model.list_dependency_version_request import ListDependencyVersionRequest from huaweicloudsdkfunctiongraph.v2.model.list_dependency_version_response import ListDependencyVersionResponse +from huaweicloudsdkfunctiongraph.v2.model.list_enterprise_resource_detail import ListEnterpriseResourceDetail from huaweicloudsdkfunctiongraph.v2.model.list_enterprise_resource_request_body import ListEnterpriseResourceRequestBody from huaweicloudsdkfunctiongraph.v2.model.list_enterprise_resource_result import ListEnterpriseResourceResult from huaweicloudsdkfunctiongraph.v2.model.list_events_request import ListEventsRequest diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_enterprise_resource_detail.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_enterprise_resource_detail.py new file mode 100644 index 0000000000..404e15d12e --- /dev/null +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_enterprise_resource_detail.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListEnterpriseResourceDetail: + + """ + 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 = { + 'detail_id': 'str' + } + + attribute_map = { + 'detail_id': 'detailId' + } + + def __init__(self, detail_id=None): + """ListEnterpriseResourceDetail + + The model defined in huaweicloud sdk + + :param detail_id: 函数urn + :type detail_id: str + """ + + + + self._detail_id = None + self.discriminator = None + + if detail_id is not None: + self.detail_id = detail_id + + @property + def detail_id(self): + """Gets the detail_id of this ListEnterpriseResourceDetail. + + 函数urn + + :return: The detail_id of this ListEnterpriseResourceDetail. + :rtype: str + """ + return self._detail_id + + @detail_id.setter + def detail_id(self, detail_id): + """Sets the detail_id of this ListEnterpriseResourceDetail. + + 函数urn + + :param detail_id: The detail_id of this ListEnterpriseResourceDetail. + :type detail_id: str + """ + self._detail_id = detail_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, ListEnterpriseResourceDetail): + 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-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_enterprise_resource_result.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_enterprise_resource_result.py index d55a77407e..2317eab7e5 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_enterprise_resource_result.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_enterprise_resource_result.py @@ -18,7 +18,7 @@ class ListEnterpriseResourceResult: openapi_types = { 'resource_id': 'str', - 'resource_detail': 'ListFunctionResult', + 'resource_detail': 'ListEnterpriseResourceDetail', 'tags': 'list[KvItem]', 'sys_tags': 'list[KvItem]', 'resource_name': 'str' @@ -40,7 +40,7 @@ def __init__(self, resource_id=None, resource_detail=None, tags=None, sys_tags=N :param resource_id: 资源ID :type resource_id: str :param resource_detail: - :type resource_detail: :class:`huaweicloudsdkfunctiongraph.v2.ListFunctionResult` + :type resource_detail: :class:`huaweicloudsdkfunctiongraph.v2.ListEnterpriseResourceDetail` :param tags: 标签列表 :type tags: list[:class:`huaweicloudsdkfunctiongraph.v2.KvItem`] :param sys_tags: 系统标签列表 @@ -96,7 +96,7 @@ def resource_detail(self): """Gets the resource_detail of this ListEnterpriseResourceResult. :return: The resource_detail of this ListEnterpriseResourceResult. - :rtype: :class:`huaweicloudsdkfunctiongraph.v2.ListFunctionResult` + :rtype: :class:`huaweicloudsdkfunctiongraph.v2.ListEnterpriseResourceDetail` """ return self._resource_detail @@ -105,7 +105,7 @@ def resource_detail(self, resource_detail): """Sets the resource_detail of this ListEnterpriseResourceResult. :param resource_detail: The resource_detail of this ListEnterpriseResourceResult. - :type resource_detail: :class:`huaweicloudsdkfunctiongraph.v2.ListFunctionResult` + :type resource_detail: :class:`huaweicloudsdkfunctiongraph.v2.ListEnterpriseResourceDetail` """ self._resource_detail = resource_detail diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index 3347883774..49969a3637 100644 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index 7e07234c1f..2730a117e6 100644 --- a/huaweicloud-sdk-ga/setup.py +++ b/huaweicloud-sdk-ga/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkga" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index 9fa10ecb9b..5981c0507d 100644 --- a/huaweicloud-sdk-gaussdb/setup.py +++ b/huaweicloud-sdk-gaussdb/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdb" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbfornosql/requirements.txt b/huaweicloud-sdk-gaussdbfornosql/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index c5e062624f..1839ce94c4 100644 --- a/huaweicloud-sdk-gaussdbfornosql/setup.py +++ b/huaweicloud-sdk-gaussdbfornosql/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbfornosql" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index 63ea4868f8..b0b5af9dc1 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/setup.py +++ b/huaweicloud-sdk-gaussdbforopengauss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbforopengauss" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index 3254f16f89..76e88e1590 100644 --- a/huaweicloud-sdk-ges/setup.py +++ b/huaweicloud-sdk-ges/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkges" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index d092ba09b3..ee859dbd2d 100644 --- a/huaweicloud-sdk-gsl/setup.py +++ b/huaweicloud-sdk-gsl/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgsl" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index e9e16a5819..1eb26fe2d4 100644 --- a/huaweicloud-sdk-hilens/setup.py +++ b/huaweicloud-sdk-hilens/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkhilens" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py index 33f1e560eb..bf9081f658 100644 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py @@ -51,6 +51,8 @@ class HssRegion: "https://hss.ap-southeast-4.myhuaweicloud.com") AE_AD_1 = Region("ae-ad-1", "https://hss.ae-ad-1.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://hss.me-east-1.myhuaweicloud.com") static_fields = { "cn-north-9": CN_NORTH_9, @@ -74,6 +76,7 @@ class HssRegion: "cn-north-2": CN_NORTH_2, "ap-southeast-4": AP_SOUTHEAST_4, "ae-ad-1": AE_AD_1, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py index 33f1e560eb..bf9081f658 100644 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py @@ -51,6 +51,8 @@ class HssRegion: "https://hss.ap-southeast-4.myhuaweicloud.com") AE_AD_1 = Region("ae-ad-1", "https://hss.ae-ad-1.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://hss.me-east-1.myhuaweicloud.com") static_fields = { "cn-north-9": CN_NORTH_9, @@ -74,6 +76,7 @@ class HssRegion: "cn-north-2": CN_NORTH_2, "ap-southeast-4": AP_SOUTHEAST_4, "ae-ad-1": AE_AD_1, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 0aab3629a5..983c8410f9 100644 --- a/huaweicloud-sdk-hss/setup.py +++ b/huaweicloud-sdk-hss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkhss" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index 89f2c3a690..588d16c478 100644 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenter/requirements.txt b/huaweicloud-sdk-identitycenter/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-identitycenter/requirements.txt +++ b/huaweicloud-sdk-identitycenter/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenter/setup.py b/huaweicloud-sdk-identitycenter/setup.py index fa43121ba8..b8f95a9376 100644 --- a/huaweicloud-sdk-identitycenter/setup.py +++ b/huaweicloud-sdk-identitycenter/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenter" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenterstore/requirements.txt b/huaweicloud-sdk-identitycenterstore/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-identitycenterstore/requirements.txt +++ b/huaweicloud-sdk-identitycenterstore/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenterstore/setup.py b/huaweicloud-sdk-identitycenterstore/setup.py index a58803afc3..29188e6307 100644 --- a/huaweicloud-sdk-identitycenterstore/setup.py +++ b/huaweicloud-sdk-identitycenterstore/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenterstore" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idme/requirements.txt b/huaweicloud-sdk-idme/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-idme/requirements.txt +++ b/huaweicloud-sdk-idme/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-idme/setup.py b/huaweicloud-sdk-idme/setup.py index 9ac53dc3e7..b82a0b4a52 100644 --- a/huaweicloud-sdk-idme/setup.py +++ b/huaweicloud-sdk-idme/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidme" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index c46c0c36f2..5e0959e804 100644 --- a/huaweicloud-sdk-iec/setup.py +++ b/huaweicloud-sdk-iec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiec" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index aa9ef0ad68..75a100a7a9 100644 --- a/huaweicloud-sdk-ief/setup.py +++ b/huaweicloud-sdk-ief/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkief" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index b4a700358e..8f7fe56ef9 100644 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index db2399ab99..26f690c705 100644 --- a/huaweicloud-sdk-imagesearch/setup.py +++ b/huaweicloud-sdk-imagesearch/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkimagesearch" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index 4441b795e3..e563d8af99 100644 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index 25565f49e5..12eac1e574 100644 --- a/huaweicloud-sdk-iotanalytics/setup.py +++ b/huaweicloud-sdk-iotanalytics/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotanalytics" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py index 74d4d16cde..e01923e9f1 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py @@ -5628,7 +5628,12 @@ def _untag_device_http_info(self, request): def add_tunnel_async(self, request): """创建设备隧道 - 创建设备隧道接口 + 用户可以通过该接口创建隧道(WebSocket协议),应用服务器和设备可以通过该隧道进行数据传输。 + + - 该API接口在基础版不支持。 + - 该API调用后平台会向对应的MQTT/MQTTS设备下发隧道地址及密钥,同时给应用服务器也返回隧道地址及密钥,设备可以通过该地址及密钥创建WebSocket协议连接。 + - 一个设备无法创建多个隧道。 + - 具体应用可见“设备远程登录”功能,请参见[[设备远程登录](https://support.huaweicloud.com/usermanual-iothub/iot_01_00301.html)](tag:hws)[[设备远程登录](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_00301.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. @@ -5695,7 +5700,9 @@ def _add_tunnel_http_info(self, request): def close_device_tunnel_async(self, request): """关闭设备隧道 - 关闭设备隧道接口 + 应用服务器可通过该接口关闭某个设备隧道。关闭后可以再次连接。 + - 该API接口在基础版不支持。 + - 具体应用可见“设备远程登录”功能,请参见[[设备远程登录](https://support.huaweicloud.com/usermanual-iothub/iot_01_00301.html)](tag:hws)[[设备远程登录](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_00301.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. @@ -5762,7 +5769,9 @@ def _close_device_tunnel_http_info(self, request): def delete_device_tunnel_async(self, request): """删除设备隧道 - 删除设备隧道接口 + 用户可通过该接口删除某个设备隧道。删除后该通道不存在,无法再次连接。 + - 该API接口在基础版不支持。 + - 具体应用可见“设备远程登录”功能,请参见[[设备远程登录](https://support.huaweicloud.com/usermanual-iothub/iot_01_00301.html)](tag:hws)[[设备远程登录](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_00301.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. @@ -5830,6 +5839,8 @@ def list_device_tunnels_async(self, request): """查询设备所有隧道 用户可通过该接口查询某项目下的所有设备隧道,以实现对设备管理。应用服务器可通过此接口向平台查询设备隧道建立的情况。 + - 该API接口在基础版不支持。 + - 具体应用可见“设备远程登录”功能,请参见[[设备远程登录](https://support.huaweicloud.com/usermanual-iothub/iot_01_00301.html)](tag:hws)[[设备远程登录](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_00301.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. @@ -5897,6 +5908,8 @@ def show_device_tunnel_async(self, request): """查询设备隧道 用户可通过该接口查询某项目中的某个设备隧道,查看该设备隧道的信息与连接情况。应用服务器可调用此接口向平台查询设备隧道建立情况。 + - 该API接口在基础版不支持。 + - 具体应用可见“设备远程登录”功能,请参见[[设备远程登录](https://support.huaweicloud.com/usermanual-iothub/iot_01_00301.html)](tag:hws)[[设备远程登录](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_00301.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py index 561d9b8b4c..190a4c2458 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py @@ -5628,7 +5628,12 @@ def _untag_device_http_info(cls, request): def add_tunnel(self, request): """创建设备隧道 - 创建设备隧道接口 + 用户可以通过该接口创建隧道(WebSocket协议),应用服务器和设备可以通过该隧道进行数据传输。 + + - 该API接口在基础版不支持。 + - 该API调用后平台会向对应的MQTT/MQTTS设备下发隧道地址及密钥,同时给应用服务器也返回隧道地址及密钥,设备可以通过该地址及密钥创建WebSocket协议连接。 + - 一个设备无法创建多个隧道。 + - 具体应用可见“设备远程登录”功能,请参见[[设备远程登录](https://support.huaweicloud.com/usermanual-iothub/iot_01_00301.html)](tag:hws)[[设备远程登录](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_00301.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. @@ -5695,7 +5700,9 @@ def _add_tunnel_http_info(cls, request): def close_device_tunnel(self, request): """关闭设备隧道 - 关闭设备隧道接口 + 应用服务器可通过该接口关闭某个设备隧道。关闭后可以再次连接。 + - 该API接口在基础版不支持。 + - 具体应用可见“设备远程登录”功能,请参见[[设备远程登录](https://support.huaweicloud.com/usermanual-iothub/iot_01_00301.html)](tag:hws)[[设备远程登录](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_00301.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. @@ -5762,7 +5769,9 @@ def _close_device_tunnel_http_info(cls, request): def delete_device_tunnel(self, request): """删除设备隧道 - 删除设备隧道接口 + 用户可通过该接口删除某个设备隧道。删除后该通道不存在,无法再次连接。 + - 该API接口在基础版不支持。 + - 具体应用可见“设备远程登录”功能,请参见[[设备远程登录](https://support.huaweicloud.com/usermanual-iothub/iot_01_00301.html)](tag:hws)[[设备远程登录](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_00301.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. @@ -5830,6 +5839,8 @@ def list_device_tunnels(self, request): """查询设备所有隧道 用户可通过该接口查询某项目下的所有设备隧道,以实现对设备管理。应用服务器可通过此接口向平台查询设备隧道建立的情况。 + - 该API接口在基础版不支持。 + - 具体应用可见“设备远程登录”功能,请参见[[设备远程登录](https://support.huaweicloud.com/usermanual-iothub/iot_01_00301.html)](tag:hws)[[设备远程登录](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_00301.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. @@ -5897,6 +5908,8 @@ def show_device_tunnel(self, request): """查询设备隧道 用户可通过该接口查询某项目中的某个设备隧道,查看该设备隧道的信息与连接情况。应用服务器可调用此接口向平台查询设备隧道建立情况。 + - 该API接口在基础版不支持。 + - 具体应用可见“设备远程登录”功能,请参见[[设备远程登录](https://support.huaweicloud.com/usermanual-iothub/iot_01_00301.html)](tag:hws)[[设备远程登录](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_00301.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_tunnel_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_tunnel_request.py index 9cc4742323..cdd8d64984 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_tunnel_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/add_tunnel_request.py @@ -31,7 +31,7 @@ def __init__(self, instance_id=None, body=None): The model defined in huaweicloud sdk - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param body: Body of the AddTunnelRequest :type body: :class:`huaweicloudsdkiotda.v5.AddTunnelDto` @@ -52,7 +52,7 @@ def __init__(self, instance_id=None, body=None): def instance_id(self): """Gets the instance_id of this AddTunnelRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this AddTunnelRequest. :rtype: str @@ -63,7 +63,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this AddTunnelRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this AddTunnelRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/broadcast_message_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/broadcast_message_request.py index b188766353..4e31e7dd85 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/broadcast_message_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/broadcast_message_request.py @@ -31,7 +31,7 @@ def __init__(self, instance_id=None, body=None): The model defined in huaweicloud sdk - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param body: Body of the BroadcastMessageRequest :type body: :class:`huaweicloudsdkiotda.v5.DeviceBroadcastRequest` @@ -52,7 +52,7 @@ def __init__(self, instance_id=None, body=None): def instance_id(self): """Gets the instance_id of this BroadcastMessageRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this BroadcastMessageRequest. :rtype: str @@ -63,7 +63,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this BroadcastMessageRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this BroadcastMessageRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/close_device_tunnel_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/close_device_tunnel_request.py index 0d20427153..0963b0ed08 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/close_device_tunnel_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/close_device_tunnel_request.py @@ -31,7 +31,7 @@ def __init__(self, instance_id=None, tunnel_id=None): The model defined in huaweicloud sdk - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param tunnel_id: 隧道ID :type tunnel_id: str @@ -51,7 +51,7 @@ def __init__(self, instance_id=None, tunnel_id=None): def instance_id(self): """Gets the instance_id of this CloseDeviceTunnelRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this CloseDeviceTunnelRequest. :rtype: str @@ -62,7 +62,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this CloseDeviceTunnelRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this CloseDeviceTunnelRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_async_command_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_async_command_request.py index 0b8a4a64f5..6fd106021e 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_async_command_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_async_command_request.py @@ -35,7 +35,7 @@ def __init__(self, device_id=None, instance_id=None, body=None): :param device_id: **参数说明**:下发命令的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 :type device_id: str - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param body: Body of the CreateAsyncCommandRequest :type body: :class:`huaweicloudsdkiotda.v5.AsyncDeviceCommandRequest` @@ -80,7 +80,7 @@ def device_id(self, device_id): def instance_id(self): """Gets the instance_id of this CreateAsyncCommandRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this CreateAsyncCommandRequest. :rtype: str @@ -91,7 +91,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this CreateAsyncCommandRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this CreateAsyncCommandRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_command_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_command_request.py index 56c3598cdc..a6ce3a3e1c 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_command_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_command_request.py @@ -35,7 +35,7 @@ def __init__(self, device_id=None, instance_id=None, body=None): :param device_id: **参数说明**:下发消息的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 :type device_id: str - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param body: Body of the CreateCommandRequest :type body: :class:`huaweicloudsdkiotda.v5.DeviceCommandRequest` @@ -80,7 +80,7 @@ def device_id(self, device_id): def instance_id(self): """Gets the instance_id of this CreateCommandRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this CreateCommandRequest. :rtype: str @@ -91,7 +91,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this CreateCommandRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this CreateCommandRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_message_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_message_request.py index 3e29c08f77..6cc7b57b2c 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_message_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_message_request.py @@ -35,7 +35,7 @@ def __init__(self, device_id=None, instance_id=None, body=None): :param device_id: **参数说明**:下发消息的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 :type device_id: str - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param body: Body of the CreateMessageRequest :type body: :class:`huaweicloudsdkiotda.v5.DeviceMessageRequest` @@ -80,7 +80,7 @@ def device_id(self, device_id): def instance_id(self): """Gets the instance_id of this CreateMessageRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this CreateMessageRequest. :rtype: str @@ -91,7 +91,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this CreateMessageRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this CreateMessageRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_tunnel_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_tunnel_request.py index 22cee7ef86..89d6e4da9a 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_tunnel_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_tunnel_request.py @@ -31,7 +31,7 @@ def __init__(self, instance_id=None, tunnel_id=None): The model defined in huaweicloud sdk - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param tunnel_id: 隧道ID :type tunnel_id: str @@ -51,7 +51,7 @@ def __init__(self, instance_id=None, tunnel_id=None): def instance_id(self): """Gets the instance_id of this DeleteDeviceTunnelRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this DeleteDeviceTunnelRequest. :rtype: str @@ -62,7 +62,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this DeleteDeviceTunnelRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this DeleteDeviceTunnelRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_messages_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_messages_request.py index 337a83f9ad..3ff1ed0e46 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_messages_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_messages_request.py @@ -33,7 +33,7 @@ def __init__(self, device_id=None, instance_id=None): :param device_id: **参数说明**:下发消息的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 :type device_id: str - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str """ @@ -73,7 +73,7 @@ def device_id(self, device_id): def instance_id(self): """Gets the instance_id of this ListDeviceMessagesRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this ListDeviceMessagesRequest. :rtype: str @@ -84,7 +84,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this ListDeviceMessagesRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this ListDeviceMessagesRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_tunnels_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_tunnels_request.py index 31942f42fd..df4e0ff198 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_tunnels_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_tunnels_request.py @@ -31,7 +31,7 @@ def __init__(self, instance_id=None, device_id=None): The model defined in huaweicloud sdk - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param device_id: **参数说明**:设备ID :type device_id: str @@ -52,7 +52,7 @@ def __init__(self, instance_id=None, device_id=None): def instance_id(self): """Gets the instance_id of this ListDeviceTunnelsRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this ListDeviceTunnelsRequest. :rtype: str @@ -63,7 +63,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this ListDeviceTunnelsRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this ListDeviceTunnelsRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_properties_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_properties_request.py index cc8b1f31de..0a8ef14d65 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_properties_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_properties_request.py @@ -35,7 +35,7 @@ def __init__(self, device_id=None, instance_id=None, service_id=None): :param device_id: **参数说明**:下发属性的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 :type device_id: str - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param service_id: **参数说明**:设备的服务ID,在设备关联的产品模型中定义。 :type service_id: str @@ -79,7 +79,7 @@ def device_id(self, device_id): def instance_id(self): """Gets the instance_id of this ListPropertiesRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this ListPropertiesRequest. :rtype: str @@ -90,7 +90,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this ListPropertiesRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this ListPropertiesRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_properties_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_properties_response.py index 9ba4187232..9097733fc7 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_properties_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_properties_response.py @@ -18,22 +18,26 @@ class ListPropertiesResponse(SdkResponse): sensitive_list = [] openapi_types = { + 'request_id': 'str', 'response': 'object', 'error_code': 'str', 'error_msg': 'object' } attribute_map = { + 'request_id': 'request_id', 'response': 'response', 'error_code': 'error_code', 'error_msg': 'error_msg' } - def __init__(self, response=None, error_code=None, error_msg=None): + def __init__(self, request_id=None, response=None, error_code=None, error_msg=None): """ListPropertiesResponse The model defined in huaweicloud sdk + :param request_id: 设备属性查询ID,用于唯一标识一条属性查询,在下发查询属性时由物联网平台分配获得。 + :type request_id: str :param response: 设备上报的属性执行结果。Json格式,具体格式需要应用和设备约定。 :type response: object :param error_code: 属性查询异常错误码。 @@ -44,11 +48,14 @@ def __init__(self, response=None, error_code=None, error_msg=None): super(ListPropertiesResponse, self).__init__() + self._request_id = None self._response = None self._error_code = None self._error_msg = None self.discriminator = None + if request_id is not None: + self.request_id = request_id if response is not None: self.response = response if error_code is not None: @@ -56,6 +63,28 @@ def __init__(self, response=None, error_code=None, error_msg=None): if error_msg is not None: self.error_msg = error_msg + @property + def request_id(self): + """Gets the request_id of this ListPropertiesResponse. + + 设备属性查询ID,用于唯一标识一条属性查询,在下发查询属性时由物联网平台分配获得。 + + :return: The request_id of this ListPropertiesResponse. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this ListPropertiesResponse. + + 设备属性查询ID,用于唯一标识一条属性查询,在下发查询属性时由物联网平台分配获得。 + + :param request_id: The request_id of this ListPropertiesResponse. + :type request_id: str + """ + self._request_id = request_id + @property def response(self): """Gets the response of this ListPropertiesResponse. diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_async_device_command_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_async_device_command_request.py index 8ee9a5b887..d3ed64e9af 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_async_device_command_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_async_device_command_request.py @@ -35,7 +35,7 @@ def __init__(self, device_id=None, instance_id=None, command_id=None): :param device_id: **参数说明**:下发命令的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 :type device_id: str - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param command_id: **参数说明**:下发命令的命令id,用于唯一标识一个消息,在下发命令时由物联网平台分配获得。 **取值范围**:长度不超过100,只允许字母、数字、下划线(_)、连接符(-)的组合。 :type command_id: str @@ -79,7 +79,7 @@ def device_id(self, device_id): def instance_id(self): """Gets the instance_id of this ShowAsyncDeviceCommandRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this ShowAsyncDeviceCommandRequest. :rtype: str @@ -90,7 +90,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this ShowAsyncDeviceCommandRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this ShowAsyncDeviceCommandRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_message_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_message_request.py index 31b0172c00..bb6593c4f0 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_message_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_message_request.py @@ -35,7 +35,7 @@ def __init__(self, device_id=None, instance_id=None, message_id=None): :param device_id: **参数说明**:下发消息的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 :type device_id: str - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param message_id: **参数说明**:下发消息的消息ID,用于唯一标识一个消息,在消息下发时由物联网平台分配获得。 **取值范围**:长度不超过100,只允许字母、数字、下划线(_)、连接符(-)的组合。 :type message_id: str @@ -79,7 +79,7 @@ def device_id(self, device_id): def instance_id(self): """Gets the instance_id of this ShowDeviceMessageRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this ShowDeviceMessageRequest. :rtype: str @@ -90,7 +90,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this ShowDeviceMessageRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this ShowDeviceMessageRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_tunnel_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_tunnel_request.py index ff0d38a9e8..f128c00fbe 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_tunnel_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_tunnel_request.py @@ -31,7 +31,7 @@ def __init__(self, instance_id=None, tunnel_id=None): The model defined in huaweicloud sdk - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param tunnel_id: 隧道ID :type tunnel_id: str @@ -51,7 +51,7 @@ def __init__(self, instance_id=None, tunnel_id=None): def instance_id(self): """Gets the instance_id of this ShowDeviceTunnelRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this ShowDeviceTunnelRequest. :rtype: str @@ -62,7 +62,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this ShowDeviceTunnelRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this ShowDeviceTunnelRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_properties_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_properties_request.py index fb2bc83bbd..c5fc3742b9 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_properties_request.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_properties_request.py @@ -35,7 +35,7 @@ def __init__(self, device_id=None, instance_id=None, body=None): :param device_id: **参数说明**:下发属性的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 :type device_id: str - :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :type instance_id: str :param body: Body of the UpdatePropertiesRequest :type body: :class:`huaweicloudsdkiotda.v5.DevicePropertiesRequest` @@ -80,7 +80,7 @@ def device_id(self, device_id): def instance_id(self): """Gets the instance_id of this UpdatePropertiesRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :return: The instance_id of this UpdatePropertiesRequest. :rtype: str @@ -91,7 +91,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this UpdatePropertiesRequest. - **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。 + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 :param instance_id: The instance_id of this UpdatePropertiesRequest. :type instance_id: str diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_properties_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_properties_response.py index bb75b3c213..f3ebeaa677 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_properties_response.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_properties_response.py @@ -18,22 +18,26 @@ class UpdatePropertiesResponse(SdkResponse): sensitive_list = [] openapi_types = { + 'request_id': 'str', 'response': 'object', 'error_code': 'str', 'error_msg': 'object' } attribute_map = { + 'request_id': 'request_id', 'response': 'response', 'error_code': 'error_code', 'error_msg': 'error_msg' } - def __init__(self, response=None, error_code=None, error_msg=None): + def __init__(self, request_id=None, response=None, error_code=None, error_msg=None): """UpdatePropertiesResponse The model defined in huaweicloud sdk + :param request_id: 设备属性更新ID,用于唯一标识一条属性更新,在下发更新属性时由物联网平台分配获得。 + :type request_id: str :param response: 设备上报的属性执行结果。Json格式,具体格式需要应用和设备约定。 :type response: object :param error_code: 属性更新异常错误码。 @@ -44,11 +48,14 @@ def __init__(self, response=None, error_code=None, error_msg=None): super(UpdatePropertiesResponse, self).__init__() + self._request_id = None self._response = None self._error_code = None self._error_msg = None self.discriminator = None + if request_id is not None: + self.request_id = request_id if response is not None: self.response = response if error_code is not None: @@ -56,6 +63,28 @@ def __init__(self, response=None, error_code=None, error_msg=None): if error_msg is not None: self.error_msg = error_msg + @property + def request_id(self): + """Gets the request_id of this UpdatePropertiesResponse. + + 设备属性更新ID,用于唯一标识一条属性更新,在下发更新属性时由物联网平台分配获得。 + + :return: The request_id of this UpdatePropertiesResponse. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this UpdatePropertiesResponse. + + 设备属性更新ID,用于唯一标识一条属性更新,在下发更新属性时由物联网平台分配获得。 + + :param request_id: The request_id of this UpdatePropertiesResponse. + :type request_id: str + """ + self._request_id = request_id + @property def response(self): """Gets the response of this UpdatePropertiesResponse. diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index 090e5543c3..9ef5c6c466 100644 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 50a27a8b55..9ef8fae197 100644 --- a/huaweicloud-sdk-iotedge/setup.py +++ b/huaweicloud-sdk-iotedge/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotedge" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index 0cc49c8f1b..ba92243745 100644 --- a/huaweicloud-sdk-ivs/setup.py +++ b/huaweicloud-sdk-ivs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkivs" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py index 5b9191b8bb..ec20c425e6 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py @@ -53,6 +53,8 @@ class KafkaRegion: "https://dms.tr-west-1.myhuaweicloud.com") AE_AD_1 = Region("ae-ad-1", "https://dms.ae-ad-1.myhuaweicloud.com") + EU_WEST_0 = Region("eu-west-0", + "https://dms.eu-west-0.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -77,6 +79,7 @@ class KafkaRegion: "ap-southeast-4": AP_SOUTHEAST_4, "tr-west-1": TR_WEST_1, "ae-ad-1": AE_AD_1, + "eu-west-0": EU_WEST_0, } @classmethod diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 5d3c603300..fbd8abfc0d 100644 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index a8be5a237f..4ee36cea35 100644 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-koomessage/requirements.txt b/huaweicloud-sdk-koomessage/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-koomessage/requirements.txt +++ b/huaweicloud-sdk-koomessage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-koomessage/setup.py b/huaweicloud-sdk-koomessage/setup.py index 99d1b72dfd..2cf5a7e7a1 100644 --- a/huaweicloud-sdk-koomessage/setup.py +++ b/huaweicloud-sdk-koomessage/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkoomessage" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index ff4086345c..77bf2134f1 100644 --- a/huaweicloud-sdk-kps/setup.py +++ b/huaweicloud-sdk-kps/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkps" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lakeformation/requirements.txt b/huaweicloud-sdk-lakeformation/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-lakeformation/requirements.txt +++ b/huaweicloud-sdk-lakeformation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-lakeformation/setup.py b/huaweicloud-sdk-lakeformation/setup.py index 487fb71c7b..5e4e9d63a7 100644 --- a/huaweicloud-sdk-lakeformation/setup.py +++ b/huaweicloud-sdk-lakeformation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklakeformation" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/__init__.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/__init__.py index f38ede0f9b..313c57212c 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/__init__.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/__init__.py @@ -8,6 +8,7 @@ from huaweicloudsdklive.v1.model.app_quality_info import AppQualityInfo from huaweicloudsdklive.v1.model.batch_show_ip_belongs_request import BatchShowIpBelongsRequest from huaweicloudsdklive.v1.model.batch_show_ip_belongs_response import BatchShowIpBelongsResponse +from huaweicloudsdklive.v1.model.callback_url import CallbackUrl from huaweicloudsdklive.v1.model.cdn_ip import CdnIp from huaweicloudsdklive.v1.model.create_domain_mapping_request import CreateDomainMappingRequest from huaweicloudsdklive.v1.model.create_domain_mapping_response import CreateDomainMappingResponse @@ -25,8 +26,12 @@ from huaweicloudsdklive.v1.model.create_stream_forbidden_response import CreateStreamForbiddenResponse from huaweicloudsdklive.v1.model.create_transcodings_template_request import CreateTranscodingsTemplateRequest from huaweicloudsdklive.v1.model.create_transcodings_template_response import CreateTranscodingsTemplateResponse +from huaweicloudsdklive.v1.model.create_url_authchain_req import CreateUrlAuthchainReq +from huaweicloudsdklive.v1.model.create_url_authchain_request import CreateUrlAuthchainRequest +from huaweicloudsdklive.v1.model.create_url_authchain_response import CreateUrlAuthchainResponse from huaweicloudsdklive.v1.model.decoupled_live_domain_info import DecoupledLiveDomainInfo from huaweicloudsdklive.v1.model.default_record_config import DefaultRecordConfig +from huaweicloudsdklive.v1.model.delay_config import DelayConfig from huaweicloudsdklive.v1.model.delete_domain_https_cert_request import DeleteDomainHttpsCertRequest from huaweicloudsdklive.v1.model.delete_domain_https_cert_response import DeleteDomainHttpsCertResponse from huaweicloudsdklive.v1.model.delete_domain_key_chain_request import DeleteDomainKeyChainRequest @@ -35,6 +40,8 @@ from huaweicloudsdklive.v1.model.delete_domain_mapping_response import DeleteDomainMappingResponse from huaweicloudsdklive.v1.model.delete_domain_request import DeleteDomainRequest from huaweicloudsdklive.v1.model.delete_domain_response import DeleteDomainResponse +from huaweicloudsdklive.v1.model.delete_publish_template_request import DeletePublishTemplateRequest +from huaweicloudsdklive.v1.model.delete_publish_template_response import DeletePublishTemplateResponse from huaweicloudsdklive.v1.model.delete_record_callback_config_request import DeleteRecordCallbackConfigRequest from huaweicloudsdklive.v1.model.delete_record_callback_config_response import DeleteRecordCallbackConfigResponse from huaweicloudsdklive.v1.model.delete_record_rule_request import DeleteRecordRuleRequest @@ -49,12 +56,22 @@ from huaweicloudsdklive.v1.model.domain_ipv6_switch_req import DomainIpv6SwitchReq from huaweicloudsdklive.v1.model.domain_mapping import DomainMapping from huaweicloudsdklive.v1.model.flv_record_config import FLVRecordConfig +from huaweicloudsdklive.v1.model.geo_blocking_config_info import GeoBlockingConfigInfo from huaweicloudsdklive.v1.model.hls_record_config import HLSRecordConfig +from huaweicloudsdklive.v1.model.ip_auth_info import IPAuthInfo from huaweicloudsdklive.v1.model.key_chain_info import KeyChainInfo +from huaweicloudsdklive.v1.model.list_delay_config_request import ListDelayConfigRequest +from huaweicloudsdklive.v1.model.list_delay_config_response import ListDelayConfigResponse +from huaweicloudsdklive.v1.model.list_geo_blocking_config_request import ListGeoBlockingConfigRequest +from huaweicloudsdklive.v1.model.list_geo_blocking_config_response import ListGeoBlockingConfigResponse +from huaweicloudsdklive.v1.model.list_ip_auth_list_request import ListIpAuthListRequest +from huaweicloudsdklive.v1.model.list_ip_auth_list_response import ListIpAuthListResponse from huaweicloudsdklive.v1.model.list_live_sample_logs_request import ListLiveSampleLogsRequest from huaweicloudsdklive.v1.model.list_live_sample_logs_response import ListLiveSampleLogsResponse from huaweicloudsdklive.v1.model.list_live_streams_online_request import ListLiveStreamsOnlineRequest from huaweicloudsdklive.v1.model.list_live_streams_online_response import ListLiveStreamsOnlineResponse +from huaweicloudsdklive.v1.model.list_publish_template_request import ListPublishTemplateRequest +from huaweicloudsdklive.v1.model.list_publish_template_response import ListPublishTemplateResponse from huaweicloudsdklive.v1.model.list_record_callback_configs_request import ListRecordCallbackConfigsRequest from huaweicloudsdklive.v1.model.list_record_callback_configs_response import ListRecordCallbackConfigsResponse from huaweicloudsdklive.v1.model.list_record_contents_request import ListRecordContentsRequest @@ -70,6 +87,8 @@ from huaweicloudsdklive.v1.model.live_snapshot_config import LiveSnapshotConfig from huaweicloudsdklive.v1.model.log_info import LogInfo from huaweicloudsdklive.v1.model.mp4_record_config import MP4RecordConfig +from huaweicloudsdklive.v1.model.modify_delay_config import ModifyDelayConfig +from huaweicloudsdklive.v1.model.modify_pull_sources_config import ModifyPullSourcesConfig from huaweicloudsdklive.v1.model.obs_authority_config_v2 import ObsAuthorityConfigV2 from huaweicloudsdklive.v1.model.obs_file_addr import ObsFileAddr from huaweicloudsdklive.v1.model.online_info import OnlineInfo @@ -90,6 +109,8 @@ from huaweicloudsdklive.v1.model.show_domain_key_chain_response import ShowDomainKeyChainResponse from huaweicloudsdklive.v1.model.show_domain_request import ShowDomainRequest from huaweicloudsdklive.v1.model.show_domain_response import ShowDomainResponse +from huaweicloudsdklive.v1.model.show_pull_sources_config_request import ShowPullSourcesConfigRequest +from huaweicloudsdklive.v1.model.show_pull_sources_config_response import ShowPullSourcesConfigResponse from huaweicloudsdklive.v1.model.show_record_callback_config_request import ShowRecordCallbackConfigRequest from huaweicloudsdklive.v1.model.show_record_callback_config_response import ShowRecordCallbackConfigResponse from huaweicloudsdklive.v1.model.show_record_rule_request import ShowRecordRuleRequest @@ -99,6 +120,8 @@ from huaweicloudsdklive.v1.model.stream_forbidden_list import StreamForbiddenList from huaweicloudsdklive.v1.model.stream_forbidden_setting import StreamForbiddenSetting from huaweicloudsdklive.v1.model.stream_transcoding_template import StreamTranscodingTemplate +from huaweicloudsdklive.v1.model.update_delay_config_request import UpdateDelayConfigRequest +from huaweicloudsdklive.v1.model.update_delay_config_response import UpdateDelayConfigResponse from huaweicloudsdklive.v1.model.update_domain_https_cert_request import UpdateDomainHttpsCertRequest from huaweicloudsdklive.v1.model.update_domain_https_cert_response import UpdateDomainHttpsCertResponse from huaweicloudsdklive.v1.model.update_domain_ip6_switch_request import UpdateDomainIp6SwitchRequest @@ -107,8 +130,16 @@ from huaweicloudsdklive.v1.model.update_domain_key_chain_response import UpdateDomainKeyChainResponse from huaweicloudsdklive.v1.model.update_domain_request import UpdateDomainRequest from huaweicloudsdklive.v1.model.update_domain_response import UpdateDomainResponse +from huaweicloudsdklive.v1.model.update_geo_blocking_config_request import UpdateGeoBlockingConfigRequest +from huaweicloudsdklive.v1.model.update_geo_blocking_config_response import UpdateGeoBlockingConfigResponse +from huaweicloudsdklive.v1.model.update_ip_auth_list_request import UpdateIpAuthListRequest +from huaweicloudsdklive.v1.model.update_ip_auth_list_response import UpdateIpAuthListResponse from huaweicloudsdklive.v1.model.update_obs_bucket_authority_public_request import UpdateObsBucketAuthorityPublicRequest from huaweicloudsdklive.v1.model.update_obs_bucket_authority_public_response import UpdateObsBucketAuthorityPublicResponse +from huaweicloudsdklive.v1.model.update_publish_template_request import UpdatePublishTemplateRequest +from huaweicloudsdklive.v1.model.update_publish_template_response import UpdatePublishTemplateResponse +from huaweicloudsdklive.v1.model.update_pull_sources_config_request import UpdatePullSourcesConfigRequest +from huaweicloudsdklive.v1.model.update_pull_sources_config_response import UpdatePullSourcesConfigResponse from huaweicloudsdklive.v1.model.update_record_callback_config_request import UpdateRecordCallbackConfigRequest from huaweicloudsdklive.v1.model.update_record_callback_config_response import UpdateRecordCallbackConfigResponse from huaweicloudsdklive.v1.model.update_record_rule_request import UpdateRecordRuleRequest diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/live_async_client.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/live_async_client.py index a22d361c51..0045be9e69 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/live_async_client.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/live_async_client.py @@ -618,6 +618,71 @@ def _create_transcodings_template_http_info(self, request): return http_info + def create_url_authchain_async(self, request): + """生成URL鉴权串 + + 生成URL鉴权串 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateUrlAuthchain + :type request: :class:`huaweicloudsdklive.v1.CreateUrlAuthchainRequest` + :rtype: :class:`huaweicloudsdklive.v1.CreateUrlAuthchainResponse` + """ + http_info = self._create_url_authchain_http_info(request) + return self._call_api(**http_info) + + def create_url_authchain_async_invoker(self, request): + http_info = self._create_url_authchain_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_url_authchain_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/auth/chain", + "request_type": request.__class__.__name__, + "response_type": "CreateUrlAuthchainResponse" + } + + 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 = {} + + 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; charset=UTF-8']) + + 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_domain_async(self, request): """删除直播域名 @@ -815,6 +880,71 @@ def _delete_domain_mapping_http_info(self, request): return http_info + def delete_publish_template_async(self, request): + """删除直播推流通知配置 + + 删除直播推流通知配置 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeletePublishTemplate + :type request: :class:`huaweicloudsdklive.v1.DeletePublishTemplateRequest` + :rtype: :class:`huaweicloudsdklive.v1.DeletePublishTemplateResponse` + """ + http_info = self._delete_publish_template_http_info(request) + return self._call_api(**http_info) + + def delete_publish_template_async_invoker(self, request): + http_info = self._delete_publish_template_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_publish_template_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/notifications/publish", + "request_type": request.__class__.__name__, + "response_type": "DeletePublishTemplateResponse" + } + + 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + + 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_record_callback_config_async(self, request): """删除录制回调配置 @@ -1148,31 +1278,31 @@ def _delete_transcodings_template_http_info(self, request): return http_info - def list_live_sample_logs_async(self, request): - """获取直播播放日志 + def list_delay_config_async(self, request): + """查询播放域名延时配置 - 获取直播播放日志,基于域名以5分钟粒度进行打包,日志内容以 \"|\" 进行分隔。 + 查询播放域名延时配置。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListLiveSampleLogs - :type request: :class:`huaweicloudsdklive.v1.ListLiveSampleLogsRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListLiveSampleLogsResponse` + :param request: Request instance for ListDelayConfig + :type request: :class:`huaweicloudsdklive.v1.ListDelayConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListDelayConfigResponse` """ - http_info = self._list_live_sample_logs_http_info(request) + http_info = self._list_delay_config_http_info(request) return self._call_api(**http_info) - def list_live_sample_logs_async_invoker(self, request): - http_info = self._list_live_sample_logs_http_info(request) + def list_delay_config_async_invoker(self, request): + http_info = self._list_delay_config_http_info(request) return AsyncInvoker(self, http_info) - def _list_live_sample_logs_http_info(self, request): + def _list_delay_config_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/logs", + "resource_path": "/v1/{project_id}/domain/delay", "request_type": request.__class__.__name__, - "response_type": "ListLiveSampleLogsResponse" + "response_type": "ListDelayConfigResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1186,10 +1316,6 @@ def _list_live_sample_logs_http_info(self, request): query_params = [] if 'play_domain' in local_var_params: query_params.append(('play_domain', local_var_params['play_domain'])) - 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'])) header_params = {} @@ -1217,31 +1343,31 @@ def _list_live_sample_logs_http_info(self, request): return http_info - def list_live_streams_online_async(self, request): - """查询直播中的流信息 + def list_geo_blocking_config_async(self, request): + """获取地域限制配置列表 - 查询直播中的流信息 + 查询播放域名的地域限制列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListLiveStreamsOnline - :type request: :class:`huaweicloudsdklive.v1.ListLiveStreamsOnlineRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListLiveStreamsOnlineResponse` + :param request: Request instance for ListGeoBlockingConfig + :type request: :class:`huaweicloudsdklive.v1.ListGeoBlockingConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListGeoBlockingConfigResponse` """ - http_info = self._list_live_streams_online_http_info(request) + http_info = self._list_geo_blocking_config_http_info(request) return self._call_api(**http_info) - def list_live_streams_online_async_invoker(self, request): - http_info = self._list_live_streams_online_http_info(request) + def list_geo_blocking_config_async_invoker(self, request): + http_info = self._list_geo_blocking_config_http_info(request) return AsyncInvoker(self, http_info) - def _list_live_streams_online_http_info(self, request): + def _list_geo_blocking_config_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/realtime/streams", + "resource_path": "/v1/{project_id}/domain/geo-blocking", "request_type": request.__class__.__name__, - "response_type": "ListLiveStreamsOnlineResponse" + "response_type": "ListGeoBlockingConfigResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1253,16 +1379,8 @@ def _list_live_streams_online_http_info(self, request): path_params = {} query_params = [] - if 'publish_domain' in local_var_params: - query_params.append(('publish_domain', local_var_params['publish_domain'])) - if 'app' in local_var_params: - query_params.append(('app', local_var_params['app'])) - 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 'stream' in local_var_params: - query_params.append(('stream', local_var_params['stream'])) + if 'play_domain' in local_var_params: + query_params.append(('play_domain', local_var_params['play_domain'])) header_params = {} @@ -1272,7 +1390,7 @@ def _list_live_streams_online_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1290,31 +1408,34 @@ def _list_live_streams_online_http_info(self, request): return http_info - def list_record_callback_configs_async(self, request): - """查询录制回调配置列表 + def list_ip_auth_list_async(self, request): + """查询IP黑/白名单 - 查询录制回调配置列表接口。通过指定条件,查询满足条件的配置列表。 + 查询推流/播放域名的IP黑/白名单。 + - 黑名单模式:禁止指定的IP或网段 + - 白名单模式:仅允许指定的IP或网段 + - 默认:全放通。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListRecordCallbackConfigs - :type request: :class:`huaweicloudsdklive.v1.ListRecordCallbackConfigsRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListRecordCallbackConfigsResponse` + :param request: Request instance for ListIpAuthList + :type request: :class:`huaweicloudsdklive.v1.ListIpAuthListRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListIpAuthListResponse` """ - http_info = self._list_record_callback_configs_http_info(request) + http_info = self._list_ip_auth_list_http_info(request) return self._call_api(**http_info) - def list_record_callback_configs_async_invoker(self, request): - http_info = self._list_record_callback_configs_http_info(request) + def list_ip_auth_list_async_invoker(self, request): + http_info = self._list_ip_auth_list_http_info(request) return AsyncInvoker(self, http_info) - def _list_record_callback_configs_http_info(self, request): + def _list_ip_auth_list_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/record/callbacks", + "resource_path": "/v1/{project_id}/guard/ip", "request_type": request.__class__.__name__, - "response_type": "ListRecordCallbackConfigsResponse" + "response_type": "ListIpAuthListResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1326,14 +1447,8 @@ def _list_record_callback_configs_http_info(self, request): path_params = {} query_params = [] - if 'publish_domain' in local_var_params: - query_params.append(('publish_domain', local_var_params['publish_domain'])) - if 'app' in local_var_params: - query_params.append(('app', local_var_params['app'])) - 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) header_params = {} @@ -1343,7 +1458,7 @@ def _list_record_callback_configs_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1361,31 +1476,31 @@ def _list_record_callback_configs_http_info(self, request): return http_info - def list_record_contents_async(self, request): - """录制完成内容的查询 + def list_live_sample_logs_async(self, request): + """获取直播播放日志 - 录制完成的内容查询 + 获取直播播放日志,基于域名以5分钟粒度进行打包,日志内容以 \"|\" 进行分隔。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListRecordContents - :type request: :class:`huaweicloudsdklive.v1.ListRecordContentsRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListRecordContentsResponse` + :param request: Request instance for ListLiveSampleLogs + :type request: :class:`huaweicloudsdklive.v1.ListLiveSampleLogsRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListLiveSampleLogsResponse` """ - http_info = self._list_record_contents_http_info(request) + http_info = self._list_live_sample_logs_http_info(request) return self._call_api(**http_info) - def list_record_contents_async_invoker(self, request): - http_info = self._list_record_contents_http_info(request) + def list_live_sample_logs_async_invoker(self, request): + http_info = self._list_live_sample_logs_http_info(request) return AsyncInvoker(self, http_info) - def _list_record_contents_http_info(self, request): + def _list_live_sample_logs_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/record/contents", + "resource_path": "/v1/{project_id}/logs", "request_type": request.__class__.__name__, - "response_type": "ListRecordContentsResponse" + "response_type": "ListLiveSampleLogsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1397,22 +1512,12 @@ def _list_record_contents_http_info(self, request): path_params = {} query_params = [] - if 'publish_domain' in local_var_params: - query_params.append(('publish_domain', local_var_params['publish_domain'])) - if 'app' in local_var_params: - query_params.append(('app', local_var_params['app'])) - if 'stream' in local_var_params: - query_params.append(('stream', local_var_params['stream'])) - if 'record_type' in local_var_params: - query_params.append(('record_type', local_var_params['record_type'])) + if 'play_domain' in local_var_params: + query_params.append(('play_domain', local_var_params['play_domain'])) 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 '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'])) header_params = {} @@ -1422,7 +1527,7 @@ def _list_record_contents_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1440,31 +1545,31 @@ def _list_record_contents_http_info(self, request): return http_info - def list_record_rules_async(self, request): - """查询录制规则列表 + def list_live_streams_online_async(self, request): + """查询直播中的流信息 - 查询录制规则列表接口,通过指定条件,查询满足条件的录制规则列表。 + 查询直播中的流信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListRecordRules - :type request: :class:`huaweicloudsdklive.v1.ListRecordRulesRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListRecordRulesResponse` + :param request: Request instance for ListLiveStreamsOnline + :type request: :class:`huaweicloudsdklive.v1.ListLiveStreamsOnlineRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListLiveStreamsOnlineResponse` """ - http_info = self._list_record_rules_http_info(request) + http_info = self._list_live_streams_online_http_info(request) return self._call_api(**http_info) - def list_record_rules_async_invoker(self, request): - http_info = self._list_record_rules_http_info(request) + def list_live_streams_online_async_invoker(self, request): + http_info = self._list_live_streams_online_http_info(request) return AsyncInvoker(self, http_info) - def _list_record_rules_http_info(self, request): + def _list_live_streams_online_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/record/rules", + "resource_path": "/v1/{project_id}/realtime/streams", "request_type": request.__class__.__name__, - "response_type": "ListRecordRulesResponse" + "response_type": "ListLiveStreamsOnlineResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1480,14 +1585,12 @@ def _list_record_rules_http_info(self, request): query_params.append(('publish_domain', local_var_params['publish_domain'])) if 'app' in local_var_params: query_params.append(('app', local_var_params['app'])) - if 'stream' in local_var_params: - query_params.append(('stream', local_var_params['stream'])) - if 'record_type' in local_var_params: - query_params.append(('record_type', local_var_params['record_type'])) 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 'stream' in local_var_params: + query_params.append(('stream', local_var_params['stream'])) header_params = {} @@ -1515,31 +1618,31 @@ def _list_record_rules_http_info(self, request): return http_info - def list_snapshot_configs_async(self, request): - """查询直播截图配置 + def list_publish_template_async(self, request): + """查询直播推流通知配置 - 查询直播截图配置接口 + 查询直播推流通知配置 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListSnapshotConfigs - :type request: :class:`huaweicloudsdklive.v1.ListSnapshotConfigsRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListSnapshotConfigsResponse` + :param request: Request instance for ListPublishTemplate + :type request: :class:`huaweicloudsdklive.v1.ListPublishTemplateRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListPublishTemplateResponse` """ - http_info = self._list_snapshot_configs_http_info(request) + http_info = self._list_publish_template_http_info(request) return self._call_api(**http_info) - def list_snapshot_configs_async_invoker(self, request): - http_info = self._list_snapshot_configs_http_info(request) + def list_publish_template_async_invoker(self, request): + http_info = self._list_publish_template_http_info(request) return AsyncInvoker(self, http_info) - def _list_snapshot_configs_http_info(self, request): + def _list_publish_template_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/stream/snapshot", + "resource_path": "/v1/{project_id}/notifications/publish", "request_type": request.__class__.__name__, - "response_type": "ListSnapshotConfigsResponse" + "response_type": "ListPublishTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1553,12 +1656,231 @@ def _list_snapshot_configs_http_info(self, request): query_params = [] if 'domain' in local_var_params: query_params.append(('domain', local_var_params['domain'])) - if 'app_name' in local_var_params: - query_params.append(('app_name', local_var_params['app_name'])) + + 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_record_callback_configs_async(self, request): + """查询录制回调配置列表 + + 查询录制回调配置列表接口。通过指定条件,查询满足条件的配置列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListRecordCallbackConfigs + :type request: :class:`huaweicloudsdklive.v1.ListRecordCallbackConfigsRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListRecordCallbackConfigsResponse` + """ + http_info = self._list_record_callback_configs_http_info(request) + return self._call_api(**http_info) + + def list_record_callback_configs_async_invoker(self, request): + http_info = self._list_record_callback_configs_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_record_callback_configs_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/record/callbacks", + "request_type": request.__class__.__name__, + "response_type": "ListRecordCallbackConfigsResponse" + } + + 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 'publish_domain' in local_var_params: + query_params.append(('publish_domain', local_var_params['publish_domain'])) + if 'app' in local_var_params: + query_params.append(('app', local_var_params['app'])) + 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'])) + + 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_record_contents_async(self, request): + """录制完成内容的查询 + + 录制完成的内容查询 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListRecordContents + :type request: :class:`huaweicloudsdklive.v1.ListRecordContentsRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListRecordContentsResponse` + """ + http_info = self._list_record_contents_http_info(request) + return self._call_api(**http_info) + + def list_record_contents_async_invoker(self, request): + http_info = self._list_record_contents_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_record_contents_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/record/contents", + "request_type": request.__class__.__name__, + "response_type": "ListRecordContentsResponse" + } + + 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 'publish_domain' in local_var_params: + query_params.append(('publish_domain', local_var_params['publish_domain'])) + if 'app' in local_var_params: + query_params.append(('app', local_var_params['app'])) + if 'stream' in local_var_params: + query_params.append(('stream', local_var_params['stream'])) + if 'record_type' in local_var_params: + query_params.append(('record_type', local_var_params['record_type'])) + 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 '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'])) + + header_params = {} + + 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_record_rules_async(self, request): + """查询录制规则列表 + + 查询录制规则列表接口,通过指定条件,查询满足条件的录制规则列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListRecordRules + :type request: :class:`huaweicloudsdklive.v1.ListRecordRulesRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListRecordRulesResponse` + """ + http_info = self._list_record_rules_http_info(request) + return self._call_api(**http_info) + + def list_record_rules_async_invoker(self, request): + http_info = self._list_record_rules_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_record_rules_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/record/rules", + "request_type": request.__class__.__name__, + "response_type": "ListRecordRulesResponse" + } + + 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 'publish_domain' in local_var_params: + query_params.append(('publish_domain', local_var_params['publish_domain'])) + if 'app' in local_var_params: + query_params.append(('app', local_var_params['app'])) + if 'stream' in local_var_params: + query_params.append(('stream', local_var_params['stream'])) + if 'record_type' in local_var_params: + query_params.append(('record_type', local_var_params['record_type'])) 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'])) header_params = {} @@ -1586,31 +1908,504 @@ def _list_snapshot_configs_http_info(self, request): return http_info - def list_stream_forbidden_async(self, request): - """查询禁止直播推流列表 + def list_snapshot_configs_async(self, request): + """查询直播截图配置 - 查询禁播黑名单列表 + 查询直播截图配置接口 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListStreamForbidden - :type request: :class:`huaweicloudsdklive.v1.ListStreamForbiddenRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListStreamForbiddenResponse` + :param request: Request instance for ListSnapshotConfigs + :type request: :class:`huaweicloudsdklive.v1.ListSnapshotConfigsRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListSnapshotConfigsResponse` """ - http_info = self._list_stream_forbidden_http_info(request) + http_info = self._list_snapshot_configs_http_info(request) + return self._call_api(**http_info) + + def list_snapshot_configs_async_invoker(self, request): + http_info = self._list_snapshot_configs_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_snapshot_configs_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/stream/snapshot", + "request_type": request.__class__.__name__, + "response_type": "ListSnapshotConfigsResponse" + } + + 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'app_name' in local_var_params: + query_params.append(('app_name', local_var_params['app_name'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + 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_stream_forbidden_async(self, request): + """查询禁止直播推流列表 + + 查询禁播黑名单列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListStreamForbidden + :type request: :class:`huaweicloudsdklive.v1.ListStreamForbiddenRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListStreamForbiddenResponse` + """ + http_info = self._list_stream_forbidden_http_info(request) + return self._call_api(**http_info) + + def list_stream_forbidden_async_invoker(self, request): + http_info = self._list_stream_forbidden_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_stream_forbidden_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/stream/blocks", + "request_type": request.__class__.__name__, + "response_type": "ListStreamForbiddenResponse" + } + + 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'app_name' in local_var_params: + query_params.append(('app_name', local_var_params['app_name'])) + if 'stream_name' in local_var_params: + query_params.append(('stream_name', local_var_params['stream_name'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + + 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 run_record_async(self, request): + """提交录制控制命令 + + 对单条流的实时录制控制接口。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RunRecord + :type request: :class:`huaweicloudsdklive.v1.RunRecordRequest` + :rtype: :class:`huaweicloudsdklive.v1.RunRecordResponse` + """ + http_info = self._run_record_http_info(request) + return self._call_api(**http_info) + + def run_record_async_invoker(self, request): + http_info = self._run_record_http_info(request) + return AsyncInvoker(self, http_info) + + def _run_record_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/record/control", + "request_type": request.__class__.__name__, + "response_type": "RunRecordResponse" + } + + 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 'action' in local_var_params: + query_params.append(('action', local_var_params['action'])) + + 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 = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json; charset=UTF-8']) + + 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_domain_async(self, request): + """查询直播域名 + + 查询直播域名 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDomain + :type request: :class:`huaweicloudsdklive.v1.ShowDomainRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowDomainResponse` + """ + http_info = self._show_domain_http_info(request) + return self._call_api(**http_info) + + def show_domain_async_invoker(self, request): + http_info = self._show_domain_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_domain_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/domain", + "request_type": request.__class__.__name__, + "response_type": "ShowDomainResponse" + } + + 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + + 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_domain_key_chain_async(self, request): + """查询指定域名的Key防盗链配置 + + 查询指定域名的Key防盗链配置 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDomainKeyChain + :type request: :class:`huaweicloudsdklive.v1.ShowDomainKeyChainRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowDomainKeyChainResponse` + """ + http_info = self._show_domain_key_chain_http_info(request) + return self._call_api(**http_info) + + def show_domain_key_chain_async_invoker(self, request): + http_info = self._show_domain_key_chain_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_domain_key_chain_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/guard/key-chain", + "request_type": request.__class__.__name__, + "response_type": "ShowDomainKeyChainResponse" + } + + 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + + 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_pull_sources_config_async(self, request): + """查询直播拉流回源配置 + + 查询直播拉流回源配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPullSourcesConfig + :type request: :class:`huaweicloudsdklive.v1.ShowPullSourcesConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowPullSourcesConfigResponse` + """ + http_info = self._show_pull_sources_config_http_info(request) + return self._call_api(**http_info) + + def show_pull_sources_config_async_invoker(self, request): + http_info = self._show_pull_sources_config_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_pull_sources_config_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/domain/pull-sources", + "request_type": request.__class__.__name__, + "response_type": "ShowPullSourcesConfigResponse" + } + + 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 'play_domain' in local_var_params: + query_params.append(('play_domain', local_var_params['play_domain'])) + + 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_record_callback_config_async(self, request): + """查询录制回调配置 + + 查询录制回调配置接口 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowRecordCallbackConfig + :type request: :class:`huaweicloudsdklive.v1.ShowRecordCallbackConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowRecordCallbackConfigResponse` + """ + http_info = self._show_record_callback_config_http_info(request) + return self._call_api(**http_info) + + def show_record_callback_config_async_invoker(self, request): + http_info = self._show_record_callback_config_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_record_callback_config_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/record/callbacks/{id}", + "request_type": request.__class__.__name__, + "response_type": "ShowRecordCallbackConfigResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'id' in local_var_params: + path_params['id'] = local_var_params['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_record_rule_async(self, request): + """查询录制规则配置 + + 查询录制规则接口 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowRecordRule + :type request: :class:`huaweicloudsdklive.v1.ShowRecordRuleRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowRecordRuleResponse` + """ + http_info = self._show_record_rule_http_info(request) return self._call_api(**http_info) - def list_stream_forbidden_async_invoker(self, request): - http_info = self._list_stream_forbidden_http_info(request) + def show_record_rule_async_invoker(self, request): + http_info = self._show_record_rule_http_info(request) return AsyncInvoker(self, http_info) - def _list_stream_forbidden_http_info(self, request): + def _show_record_rule_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/stream/blocks", + "resource_path": "/v1/{project_id}/record/rules/{id}", "request_type": request.__class__.__name__, - "response_type": "ListStreamForbiddenResponse" + "response_type": "ShowRecordRuleResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1620,18 +2415,10 @@ def _list_stream_forbidden_http_info(self, request): collection_formats = {} path_params = {} + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] query_params = [] - if 'domain' in local_var_params: - query_params.append(('domain', local_var_params['domain'])) - if 'app_name' in local_var_params: - query_params.append(('app_name', local_var_params['app_name'])) - if 'stream_name' in local_var_params: - query_params.append(('stream_name', local_var_params['stream_name'])) - if 'page' in local_var_params: - query_params.append(('page', local_var_params['page'])) - if 'size' in local_var_params: - query_params.append(('size', local_var_params['size'])) header_params = {} @@ -1659,31 +2446,31 @@ def _list_stream_forbidden_http_info(self, request): return http_info - def run_record_async(self, request): - """提交录制控制命令 + def show_transcodings_template_async(self, request): + """查询直播转码模板 - 对单条流的实时录制控制接口。 + 查询直播转码模板 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RunRecord - :type request: :class:`huaweicloudsdklive.v1.RunRecordRequest` - :rtype: :class:`huaweicloudsdklive.v1.RunRecordResponse` + :param request: Request instance for ShowTranscodingsTemplate + :type request: :class:`huaweicloudsdklive.v1.ShowTranscodingsTemplateRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowTranscodingsTemplateResponse` """ - http_info = self._run_record_http_info(request) + http_info = self._show_transcodings_template_http_info(request) return self._call_api(**http_info) - def run_record_async_invoker(self, request): - http_info = self._run_record_http_info(request) + def show_transcodings_template_async_invoker(self, request): + http_info = self._show_transcodings_template_http_info(request) return AsyncInvoker(self, http_info) - def _run_record_http_info(self, request): + def _show_transcodings_template_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/record/control", + "method": "GET", + "resource_path": "/v1/{project_id}/template/transcodings", "request_type": request.__class__.__name__, - "response_type": "RunRecordResponse" + "response_type": "ShowTranscodingsTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1695,23 +2482,27 @@ def _run_record_http_info(self, request): path_params = {} query_params = [] - if 'action' in local_var_params: - query_params.append(('action', local_var_params['action'])) + if 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'app_name' in local_var_params: + query_params.append(('app_name', local_var_params['app_name'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) 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 = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json; charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -1726,31 +2517,31 @@ def _run_record_http_info(self, request): return http_info - def show_domain_async(self, request): - """查询直播域名 + def update_delay_config_async(self, request): + """修改播放域名延时配置 - 查询直播域名 + 修改播放域名延时配置。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDomain - :type request: :class:`huaweicloudsdklive.v1.ShowDomainRequest` - :rtype: :class:`huaweicloudsdklive.v1.ShowDomainResponse` + :param request: Request instance for UpdateDelayConfig + :type request: :class:`huaweicloudsdklive.v1.UpdateDelayConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateDelayConfigResponse` """ - http_info = self._show_domain_http_info(request) + http_info = self._update_delay_config_http_info(request) return self._call_api(**http_info) - def show_domain_async_invoker(self, request): - http_info = self._show_domain_http_info(request) + def update_delay_config_async_invoker(self, request): + http_info = self._update_delay_config_http_info(request) return AsyncInvoker(self, http_info) - def _show_domain_http_info(self, request): + def _update_delay_config_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/domain", + "method": "PUT", + "resource_path": "/v1/{project_id}/domain/delay", "request_type": request.__class__.__name__, - "response_type": "ShowDomainResponse" + "response_type": "UpdateDelayConfigResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1762,23 +2553,21 @@ def _show_domain_http_info(self, request): path_params = {} query_params = [] - if 'domain' in local_var_params: - query_params.append(('domain', local_var_params['domain'])) - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) 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']) + ['application/json; charset=UTF-8']) auth_settings = [] @@ -1793,31 +2582,31 @@ def _show_domain_http_info(self, request): return http_info - def show_domain_key_chain_async(self, request): - """查询指定域名的Key防盗链配置 + def update_domain_async(self, request): + """修改直播域名 - 查询指定域名的Key防盗链配置 + 修改直播播放、RTMP推流加速域名相关信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDomainKeyChain - :type request: :class:`huaweicloudsdklive.v1.ShowDomainKeyChainRequest` - :rtype: :class:`huaweicloudsdklive.v1.ShowDomainKeyChainResponse` + :param request: Request instance for UpdateDomain + :type request: :class:`huaweicloudsdklive.v1.UpdateDomainRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainResponse` """ - http_info = self._show_domain_key_chain_http_info(request) + http_info = self._update_domain_http_info(request) return self._call_api(**http_info) - def show_domain_key_chain_async_invoker(self, request): - http_info = self._show_domain_key_chain_http_info(request) + def update_domain_async_invoker(self, request): + http_info = self._update_domain_http_info(request) return AsyncInvoker(self, http_info) - def _show_domain_key_chain_http_info(self, request): + def _update_domain_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/guard/key-chain", + "method": "PUT", + "resource_path": "/v1/{project_id}/domain", "request_type": request.__class__.__name__, - "response_type": "ShowDomainKeyChainResponse" + "response_type": "UpdateDomainResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1829,21 +2618,21 @@ def _show_domain_key_chain_http_info(self, request): path_params = {} query_params = [] - if 'domain' in local_var_params: - query_params.append(('domain', local_var_params['domain'])) 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']) + ['application/json; charset=UTF-8']) auth_settings = [] @@ -1858,31 +2647,31 @@ def _show_domain_key_chain_http_info(self, request): return http_info - def show_record_callback_config_async(self, request): - """查询录制回调配置 + def update_domain_ip6_switch_async(self, request): + """配置域名IPV6开关 - 查询录制回调配置接口 + 配置IPV6开关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowRecordCallbackConfig - :type request: :class:`huaweicloudsdklive.v1.ShowRecordCallbackConfigRequest` - :rtype: :class:`huaweicloudsdklive.v1.ShowRecordCallbackConfigResponse` + :param request: Request instance for UpdateDomainIp6Switch + :type request: :class:`huaweicloudsdklive.v1.UpdateDomainIp6SwitchRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainIp6SwitchResponse` """ - http_info = self._show_record_callback_config_http_info(request) + http_info = self._update_domain_ip6_switch_http_info(request) return self._call_api(**http_info) - def show_record_callback_config_async_invoker(self, request): - http_info = self._show_record_callback_config_http_info(request) + def update_domain_ip6_switch_async_invoker(self, request): + http_info = self._update_domain_ip6_switch_http_info(request) return AsyncInvoker(self, http_info) - def _show_record_callback_config_http_info(self, request): + def _update_domain_ip6_switch_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/record/callbacks/{id}", + "method": "PUT", + "resource_path": "/v1/{project_id}/domain/ipv6-switch", "request_type": request.__class__.__name__, - "response_type": "ShowRecordCallbackConfigResponse" + "response_type": "UpdateDomainIp6SwitchResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1892,8 +2681,6 @@ def _show_record_callback_config_http_info(self, request): collection_formats = {} path_params = {} - if 'id' in local_var_params: - path_params['id'] = local_var_params['id'] query_params = [] @@ -1902,13 +2689,15 @@ def _show_record_callback_config_http_info(self, request): 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']) + ['application/json; charset=UTF-8']) auth_settings = [] @@ -1923,31 +2712,31 @@ def _show_record_callback_config_http_info(self, request): return http_info - def show_record_rule_async(self, request): - """查询录制规则配置 + def update_domain_key_chain_async(self, request): + """更新指定域名的Key防盗链配置 - 查询录制规则接口 + 更新指定域名的Key防盗链配置 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowRecordRule - :type request: :class:`huaweicloudsdklive.v1.ShowRecordRuleRequest` - :rtype: :class:`huaweicloudsdklive.v1.ShowRecordRuleResponse` + :param request: Request instance for UpdateDomainKeyChain + :type request: :class:`huaweicloudsdklive.v1.UpdateDomainKeyChainRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainKeyChainResponse` """ - http_info = self._show_record_rule_http_info(request) + http_info = self._update_domain_key_chain_http_info(request) return self._call_api(**http_info) - def show_record_rule_async_invoker(self, request): - http_info = self._show_record_rule_http_info(request) + def update_domain_key_chain_async_invoker(self, request): + http_info = self._update_domain_key_chain_http_info(request) return AsyncInvoker(self, http_info) - def _show_record_rule_http_info(self, request): + def _update_domain_key_chain_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/record/rules/{id}", + "method": "PUT", + "resource_path": "/v1/{project_id}/guard/key-chain", "request_type": request.__class__.__name__, - "response_type": "ShowRecordRuleResponse" + "response_type": "UpdateDomainKeyChainResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1957,23 +2746,25 @@ def _show_record_rule_http_info(self, request): collection_formats = {} path_params = {} - if 'id' in local_var_params: - path_params['id'] = local_var_params['id'] query_params = [] + if 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) 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']) + ['application/json; charset=UTF-8']) auth_settings = [] @@ -1988,31 +2779,31 @@ def _show_record_rule_http_info(self, request): return http_info - def show_transcodings_template_async(self, request): - """查询直播转码模板 + def update_geo_blocking_config_async(self, request): + """修改地域限制配置 - 查询直播转码模板 + 修改播放域名的地域限制,选中地域允许接入。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowTranscodingsTemplate - :type request: :class:`huaweicloudsdklive.v1.ShowTranscodingsTemplateRequest` - :rtype: :class:`huaweicloudsdklive.v1.ShowTranscodingsTemplateResponse` + :param request: Request instance for UpdateGeoBlockingConfig + :type request: :class:`huaweicloudsdklive.v1.UpdateGeoBlockingConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateGeoBlockingConfigResponse` """ - http_info = self._show_transcodings_template_http_info(request) + http_info = self._update_geo_blocking_config_http_info(request) return self._call_api(**http_info) - def show_transcodings_template_async_invoker(self, request): - http_info = self._show_transcodings_template_http_info(request) + def update_geo_blocking_config_async_invoker(self, request): + http_info = self._update_geo_blocking_config_http_info(request) return AsyncInvoker(self, http_info) - def _show_transcodings_template_http_info(self, request): + def _update_geo_blocking_config_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/template/transcodings", + "method": "PUT", + "resource_path": "/v1/{project_id}/domain/geo-blocking", "request_type": request.__class__.__name__, - "response_type": "ShowTranscodingsTemplateResponse" + "response_type": "UpdateGeoBlockingConfigResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2024,27 +2815,23 @@ def _show_transcodings_template_http_info(self, request): path_params = {} query_params = [] - if 'domain' in local_var_params: - query_params.append(('domain', local_var_params['domain'])) - if 'app_name' in local_var_params: - query_params.append(('app_name', local_var_params['app_name'])) - if 'page' in local_var_params: - query_params.append(('page', local_var_params['page'])) - if 'size' in local_var_params: - query_params.append(('size', local_var_params['size'])) + if 'play_domain' in local_var_params: + query_params.append(('play_domain', local_var_params['play_domain'])) 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 = [] + response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json; charset=UTF-8']) auth_settings = [] @@ -2059,31 +2846,34 @@ def _show_transcodings_template_http_info(self, request): return http_info - def update_domain_async(self, request): - """修改直播域名 + def update_ip_auth_list_async(self, request): + """修改IP黑/白名单 - 修改直播播放、RTMP推流加速域名相关信息 + 修改推流/播放域名的IP黑/白名单,当前仅支持ipv4。 + - 黑名单模式:禁止指定的IP或网段 + - 白名单模式:仅允许指定的IP或网段 + - 默认:全放通。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDomain - :type request: :class:`huaweicloudsdklive.v1.UpdateDomainRequest` - :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainResponse` + :param request: Request instance for UpdateIpAuthList + :type request: :class:`huaweicloudsdklive.v1.UpdateIpAuthListRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateIpAuthListResponse` """ - http_info = self._update_domain_http_info(request) + http_info = self._update_ip_auth_list_http_info(request) return self._call_api(**http_info) - def update_domain_async_invoker(self, request): - http_info = self._update_domain_http_info(request) + def update_ip_auth_list_async_invoker(self, request): + http_info = self._update_ip_auth_list_http_info(request) return AsyncInvoker(self, http_info) - def _update_domain_http_info(self, request): + def _update_ip_auth_list_http_info(self, request): http_info = { "method": "PUT", - "resource_path": "/v1/{project_id}/domain", + "resource_path": "/v1/{project_id}/guard/ip", "request_type": request.__class__.__name__, - "response_type": "UpdateDomainResponse" + "response_type": "UpdateIpAuthListResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2106,7 +2896,7 @@ def _update_domain_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json; charset=UTF-8']) @@ -2124,31 +2914,31 @@ def _update_domain_http_info(self, request): return http_info - def update_domain_ip6_switch_async(self, request): - """配置域名IPV6开关 + def update_publish_template_async(self, request): + """新增、覆盖直播推流通知配置 - 配置IPV6开关 + 新增、覆盖直播推流通知配置 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDomainIp6Switch - :type request: :class:`huaweicloudsdklive.v1.UpdateDomainIp6SwitchRequest` - :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainIp6SwitchResponse` + :param request: Request instance for UpdatePublishTemplate + :type request: :class:`huaweicloudsdklive.v1.UpdatePublishTemplateRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdatePublishTemplateResponse` """ - http_info = self._update_domain_ip6_switch_http_info(request) + http_info = self._update_publish_template_http_info(request) return self._call_api(**http_info) - def update_domain_ip6_switch_async_invoker(self, request): - http_info = self._update_domain_ip6_switch_http_info(request) + def update_publish_template_async_invoker(self, request): + http_info = self._update_publish_template_http_info(request) return AsyncInvoker(self, http_info) - def _update_domain_ip6_switch_http_info(self, request): + def _update_publish_template_http_info(self, request): http_info = { "method": "PUT", - "resource_path": "/v1/{project_id}/domain/ipv6-switch", + "resource_path": "/v1/{project_id}/notifications/publish", "request_type": request.__class__.__name__, - "response_type": "UpdateDomainIp6SwitchResponse" + "response_type": "UpdatePublishTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2160,6 +2950,8 @@ def _update_domain_ip6_switch_http_info(self, request): path_params = {} query_params = [] + if 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) header_params = {} @@ -2189,31 +2981,31 @@ def _update_domain_ip6_switch_http_info(self, request): return http_info - def update_domain_key_chain_async(self, request): - """更新指定域名的Key防盗链配置 + def update_pull_sources_config_async(self, request): + """修改直播拉流回源配置 - 更新指定域名的Key防盗链配置 + 修改直播拉流回源配置。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDomainKeyChain - :type request: :class:`huaweicloudsdklive.v1.UpdateDomainKeyChainRequest` - :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainKeyChainResponse` + :param request: Request instance for UpdatePullSourcesConfig + :type request: :class:`huaweicloudsdklive.v1.UpdatePullSourcesConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdatePullSourcesConfigResponse` """ - http_info = self._update_domain_key_chain_http_info(request) + http_info = self._update_pull_sources_config_http_info(request) return self._call_api(**http_info) - def update_domain_key_chain_async_invoker(self, request): - http_info = self._update_domain_key_chain_http_info(request) + def update_pull_sources_config_async_invoker(self, request): + http_info = self._update_pull_sources_config_http_info(request) return AsyncInvoker(self, http_info) - def _update_domain_key_chain_http_info(self, request): + def _update_pull_sources_config_http_info(self, request): http_info = { "method": "PUT", - "resource_path": "/v1/{project_id}/guard/key-chain", + "resource_path": "/v1/{project_id}/domain/pull-sources", "request_type": request.__class__.__name__, - "response_type": "UpdateDomainKeyChainResponse" + "response_type": "UpdatePullSourcesConfigResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2225,8 +3017,6 @@ def _update_domain_key_chain_http_info(self, request): path_params = {} query_params = [] - if 'domain' in local_var_params: - query_params.append(('domain', local_var_params['domain'])) header_params = {} diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/live_client.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/live_client.py index fd032f3112..ab5fc7b55c 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/live_client.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/live_client.py @@ -618,6 +618,71 @@ def _create_transcodings_template_http_info(cls, request): return http_info + def create_url_authchain(self, request): + """生成URL鉴权串 + + 生成URL鉴权串 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateUrlAuthchain + :type request: :class:`huaweicloudsdklive.v1.CreateUrlAuthchainRequest` + :rtype: :class:`huaweicloudsdklive.v1.CreateUrlAuthchainResponse` + """ + http_info = self._create_url_authchain_http_info(request) + return self._call_api(**http_info) + + def create_url_authchain_invoker(self, request): + http_info = self._create_url_authchain_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_url_authchain_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/auth/chain", + "request_type": request.__class__.__name__, + "response_type": "CreateUrlAuthchainResponse" + } + + 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 = {} + + 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; charset=UTF-8']) + + 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_domain(self, request): """删除直播域名 @@ -815,6 +880,71 @@ def _delete_domain_mapping_http_info(cls, request): return http_info + def delete_publish_template(self, request): + """删除直播推流通知配置 + + 删除直播推流通知配置 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeletePublishTemplate + :type request: :class:`huaweicloudsdklive.v1.DeletePublishTemplateRequest` + :rtype: :class:`huaweicloudsdklive.v1.DeletePublishTemplateResponse` + """ + http_info = self._delete_publish_template_http_info(request) + return self._call_api(**http_info) + + def delete_publish_template_invoker(self, request): + http_info = self._delete_publish_template_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_publish_template_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/notifications/publish", + "request_type": request.__class__.__name__, + "response_type": "DeletePublishTemplateResponse" + } + + 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + + 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_record_callback_config(self, request): """删除录制回调配置 @@ -1148,31 +1278,31 @@ def _delete_transcodings_template_http_info(cls, request): return http_info - def list_live_sample_logs(self, request): - """获取直播播放日志 + def list_delay_config(self, request): + """查询播放域名延时配置 - 获取直播播放日志,基于域名以5分钟粒度进行打包,日志内容以 \"|\" 进行分隔。 + 查询播放域名延时配置。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListLiveSampleLogs - :type request: :class:`huaweicloudsdklive.v1.ListLiveSampleLogsRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListLiveSampleLogsResponse` + :param request: Request instance for ListDelayConfig + :type request: :class:`huaweicloudsdklive.v1.ListDelayConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListDelayConfigResponse` """ - http_info = self._list_live_sample_logs_http_info(request) + http_info = self._list_delay_config_http_info(request) return self._call_api(**http_info) - def list_live_sample_logs_invoker(self, request): - http_info = self._list_live_sample_logs_http_info(request) + def list_delay_config_invoker(self, request): + http_info = self._list_delay_config_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_live_sample_logs_http_info(cls, request): + def _list_delay_config_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/logs", + "resource_path": "/v1/{project_id}/domain/delay", "request_type": request.__class__.__name__, - "response_type": "ListLiveSampleLogsResponse" + "response_type": "ListDelayConfigResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1186,10 +1316,6 @@ def _list_live_sample_logs_http_info(cls, request): query_params = [] if 'play_domain' in local_var_params: query_params.append(('play_domain', local_var_params['play_domain'])) - 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'])) header_params = {} @@ -1217,31 +1343,31 @@ def _list_live_sample_logs_http_info(cls, request): return http_info - def list_live_streams_online(self, request): - """查询直播中的流信息 + def list_geo_blocking_config(self, request): + """获取地域限制配置列表 - 查询直播中的流信息 + 查询播放域名的地域限制列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListLiveStreamsOnline - :type request: :class:`huaweicloudsdklive.v1.ListLiveStreamsOnlineRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListLiveStreamsOnlineResponse` + :param request: Request instance for ListGeoBlockingConfig + :type request: :class:`huaweicloudsdklive.v1.ListGeoBlockingConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListGeoBlockingConfigResponse` """ - http_info = self._list_live_streams_online_http_info(request) + http_info = self._list_geo_blocking_config_http_info(request) return self._call_api(**http_info) - def list_live_streams_online_invoker(self, request): - http_info = self._list_live_streams_online_http_info(request) + def list_geo_blocking_config_invoker(self, request): + http_info = self._list_geo_blocking_config_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_live_streams_online_http_info(cls, request): + def _list_geo_blocking_config_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/realtime/streams", + "resource_path": "/v1/{project_id}/domain/geo-blocking", "request_type": request.__class__.__name__, - "response_type": "ListLiveStreamsOnlineResponse" + "response_type": "ListGeoBlockingConfigResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1253,16 +1379,8 @@ def _list_live_streams_online_http_info(cls, request): path_params = {} query_params = [] - if 'publish_domain' in local_var_params: - query_params.append(('publish_domain', local_var_params['publish_domain'])) - if 'app' in local_var_params: - query_params.append(('app', local_var_params['app'])) - 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 'stream' in local_var_params: - query_params.append(('stream', local_var_params['stream'])) + if 'play_domain' in local_var_params: + query_params.append(('play_domain', local_var_params['play_domain'])) header_params = {} @@ -1272,7 +1390,7 @@ def _list_live_streams_online_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1290,31 +1408,34 @@ def _list_live_streams_online_http_info(cls, request): return http_info - def list_record_callback_configs(self, request): - """查询录制回调配置列表 + def list_ip_auth_list(self, request): + """查询IP黑/白名单 - 查询录制回调配置列表接口。通过指定条件,查询满足条件的配置列表。 + 查询推流/播放域名的IP黑/白名单。 + - 黑名单模式:禁止指定的IP或网段 + - 白名单模式:仅允许指定的IP或网段 + - 默认:全放通。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListRecordCallbackConfigs - :type request: :class:`huaweicloudsdklive.v1.ListRecordCallbackConfigsRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListRecordCallbackConfigsResponse` + :param request: Request instance for ListIpAuthList + :type request: :class:`huaweicloudsdklive.v1.ListIpAuthListRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListIpAuthListResponse` """ - http_info = self._list_record_callback_configs_http_info(request) + http_info = self._list_ip_auth_list_http_info(request) return self._call_api(**http_info) - def list_record_callback_configs_invoker(self, request): - http_info = self._list_record_callback_configs_http_info(request) + def list_ip_auth_list_invoker(self, request): + http_info = self._list_ip_auth_list_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_record_callback_configs_http_info(cls, request): + def _list_ip_auth_list_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/record/callbacks", + "resource_path": "/v1/{project_id}/guard/ip", "request_type": request.__class__.__name__, - "response_type": "ListRecordCallbackConfigsResponse" + "response_type": "ListIpAuthListResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1326,14 +1447,8 @@ def _list_record_callback_configs_http_info(cls, request): path_params = {} query_params = [] - if 'publish_domain' in local_var_params: - query_params.append(('publish_domain', local_var_params['publish_domain'])) - if 'app' in local_var_params: - query_params.append(('app', local_var_params['app'])) - 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) header_params = {} @@ -1343,7 +1458,7 @@ def _list_record_callback_configs_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1361,31 +1476,31 @@ def _list_record_callback_configs_http_info(cls, request): return http_info - def list_record_contents(self, request): - """录制完成内容的查询 + def list_live_sample_logs(self, request): + """获取直播播放日志 - 录制完成的内容查询 + 获取直播播放日志,基于域名以5分钟粒度进行打包,日志内容以 \"|\" 进行分隔。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListRecordContents - :type request: :class:`huaweicloudsdklive.v1.ListRecordContentsRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListRecordContentsResponse` + :param request: Request instance for ListLiveSampleLogs + :type request: :class:`huaweicloudsdklive.v1.ListLiveSampleLogsRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListLiveSampleLogsResponse` """ - http_info = self._list_record_contents_http_info(request) + http_info = self._list_live_sample_logs_http_info(request) return self._call_api(**http_info) - def list_record_contents_invoker(self, request): - http_info = self._list_record_contents_http_info(request) + def list_live_sample_logs_invoker(self, request): + http_info = self._list_live_sample_logs_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_record_contents_http_info(cls, request): + def _list_live_sample_logs_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/record/contents", + "resource_path": "/v1/{project_id}/logs", "request_type": request.__class__.__name__, - "response_type": "ListRecordContentsResponse" + "response_type": "ListLiveSampleLogsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1397,22 +1512,12 @@ def _list_record_contents_http_info(cls, request): path_params = {} query_params = [] - if 'publish_domain' in local_var_params: - query_params.append(('publish_domain', local_var_params['publish_domain'])) - if 'app' in local_var_params: - query_params.append(('app', local_var_params['app'])) - if 'stream' in local_var_params: - query_params.append(('stream', local_var_params['stream'])) - if 'record_type' in local_var_params: - query_params.append(('record_type', local_var_params['record_type'])) + if 'play_domain' in local_var_params: + query_params.append(('play_domain', local_var_params['play_domain'])) 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 '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'])) header_params = {} @@ -1422,7 +1527,7 @@ def _list_record_contents_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1440,31 +1545,31 @@ def _list_record_contents_http_info(cls, request): return http_info - def list_record_rules(self, request): - """查询录制规则列表 + def list_live_streams_online(self, request): + """查询直播中的流信息 - 查询录制规则列表接口,通过指定条件,查询满足条件的录制规则列表。 + 查询直播中的流信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListRecordRules - :type request: :class:`huaweicloudsdklive.v1.ListRecordRulesRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListRecordRulesResponse` + :param request: Request instance for ListLiveStreamsOnline + :type request: :class:`huaweicloudsdklive.v1.ListLiveStreamsOnlineRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListLiveStreamsOnlineResponse` """ - http_info = self._list_record_rules_http_info(request) + http_info = self._list_live_streams_online_http_info(request) return self._call_api(**http_info) - def list_record_rules_invoker(self, request): - http_info = self._list_record_rules_http_info(request) + def list_live_streams_online_invoker(self, request): + http_info = self._list_live_streams_online_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_record_rules_http_info(cls, request): + def _list_live_streams_online_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/record/rules", + "resource_path": "/v1/{project_id}/realtime/streams", "request_type": request.__class__.__name__, - "response_type": "ListRecordRulesResponse" + "response_type": "ListLiveStreamsOnlineResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1480,14 +1585,12 @@ def _list_record_rules_http_info(cls, request): query_params.append(('publish_domain', local_var_params['publish_domain'])) if 'app' in local_var_params: query_params.append(('app', local_var_params['app'])) - if 'stream' in local_var_params: - query_params.append(('stream', local_var_params['stream'])) - if 'record_type' in local_var_params: - query_params.append(('record_type', local_var_params['record_type'])) 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 'stream' in local_var_params: + query_params.append(('stream', local_var_params['stream'])) header_params = {} @@ -1515,31 +1618,31 @@ def _list_record_rules_http_info(cls, request): return http_info - def list_snapshot_configs(self, request): - """查询直播截图配置 + def list_publish_template(self, request): + """查询直播推流通知配置 - 查询直播截图配置接口 + 查询直播推流通知配置 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListSnapshotConfigs - :type request: :class:`huaweicloudsdklive.v1.ListSnapshotConfigsRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListSnapshotConfigsResponse` + :param request: Request instance for ListPublishTemplate + :type request: :class:`huaweicloudsdklive.v1.ListPublishTemplateRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListPublishTemplateResponse` """ - http_info = self._list_snapshot_configs_http_info(request) + http_info = self._list_publish_template_http_info(request) return self._call_api(**http_info) - def list_snapshot_configs_invoker(self, request): - http_info = self._list_snapshot_configs_http_info(request) + def list_publish_template_invoker(self, request): + http_info = self._list_publish_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_snapshot_configs_http_info(cls, request): + def _list_publish_template_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/stream/snapshot", + "resource_path": "/v1/{project_id}/notifications/publish", "request_type": request.__class__.__name__, - "response_type": "ListSnapshotConfigsResponse" + "response_type": "ListPublishTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1553,12 +1656,231 @@ def _list_snapshot_configs_http_info(cls, request): query_params = [] if 'domain' in local_var_params: query_params.append(('domain', local_var_params['domain'])) - if 'app_name' in local_var_params: - query_params.append(('app_name', local_var_params['app_name'])) + + 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_record_callback_configs(self, request): + """查询录制回调配置列表 + + 查询录制回调配置列表接口。通过指定条件,查询满足条件的配置列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListRecordCallbackConfigs + :type request: :class:`huaweicloudsdklive.v1.ListRecordCallbackConfigsRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListRecordCallbackConfigsResponse` + """ + http_info = self._list_record_callback_configs_http_info(request) + return self._call_api(**http_info) + + def list_record_callback_configs_invoker(self, request): + http_info = self._list_record_callback_configs_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_record_callback_configs_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/record/callbacks", + "request_type": request.__class__.__name__, + "response_type": "ListRecordCallbackConfigsResponse" + } + + 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 'publish_domain' in local_var_params: + query_params.append(('publish_domain', local_var_params['publish_domain'])) + if 'app' in local_var_params: + query_params.append(('app', local_var_params['app'])) + 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'])) + + 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_record_contents(self, request): + """录制完成内容的查询 + + 录制完成的内容查询 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListRecordContents + :type request: :class:`huaweicloudsdklive.v1.ListRecordContentsRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListRecordContentsResponse` + """ + http_info = self._list_record_contents_http_info(request) + return self._call_api(**http_info) + + def list_record_contents_invoker(self, request): + http_info = self._list_record_contents_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_record_contents_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/record/contents", + "request_type": request.__class__.__name__, + "response_type": "ListRecordContentsResponse" + } + + 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 'publish_domain' in local_var_params: + query_params.append(('publish_domain', local_var_params['publish_domain'])) + if 'app' in local_var_params: + query_params.append(('app', local_var_params['app'])) + if 'stream' in local_var_params: + query_params.append(('stream', local_var_params['stream'])) + if 'record_type' in local_var_params: + query_params.append(('record_type', local_var_params['record_type'])) + 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 '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'])) + + header_params = {} + + 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_record_rules(self, request): + """查询录制规则列表 + + 查询录制规则列表接口,通过指定条件,查询满足条件的录制规则列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListRecordRules + :type request: :class:`huaweicloudsdklive.v1.ListRecordRulesRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListRecordRulesResponse` + """ + http_info = self._list_record_rules_http_info(request) + return self._call_api(**http_info) + + def list_record_rules_invoker(self, request): + http_info = self._list_record_rules_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_record_rules_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/record/rules", + "request_type": request.__class__.__name__, + "response_type": "ListRecordRulesResponse" + } + + 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 'publish_domain' in local_var_params: + query_params.append(('publish_domain', local_var_params['publish_domain'])) + if 'app' in local_var_params: + query_params.append(('app', local_var_params['app'])) + if 'stream' in local_var_params: + query_params.append(('stream', local_var_params['stream'])) + if 'record_type' in local_var_params: + query_params.append(('record_type', local_var_params['record_type'])) 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'])) header_params = {} @@ -1586,31 +1908,504 @@ def _list_snapshot_configs_http_info(cls, request): return http_info - def list_stream_forbidden(self, request): - """查询禁止直播推流列表 + def list_snapshot_configs(self, request): + """查询直播截图配置 - 查询禁播黑名单列表 + 查询直播截图配置接口 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListStreamForbidden - :type request: :class:`huaweicloudsdklive.v1.ListStreamForbiddenRequest` - :rtype: :class:`huaweicloudsdklive.v1.ListStreamForbiddenResponse` + :param request: Request instance for ListSnapshotConfigs + :type request: :class:`huaweicloudsdklive.v1.ListSnapshotConfigsRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListSnapshotConfigsResponse` """ - http_info = self._list_stream_forbidden_http_info(request) + http_info = self._list_snapshot_configs_http_info(request) + return self._call_api(**http_info) + + def list_snapshot_configs_invoker(self, request): + http_info = self._list_snapshot_configs_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_snapshot_configs_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/stream/snapshot", + "request_type": request.__class__.__name__, + "response_type": "ListSnapshotConfigsResponse" + } + + 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'app_name' in local_var_params: + query_params.append(('app_name', local_var_params['app_name'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + 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_stream_forbidden(self, request): + """查询禁止直播推流列表 + + 查询禁播黑名单列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListStreamForbidden + :type request: :class:`huaweicloudsdklive.v1.ListStreamForbiddenRequest` + :rtype: :class:`huaweicloudsdklive.v1.ListStreamForbiddenResponse` + """ + http_info = self._list_stream_forbidden_http_info(request) + return self._call_api(**http_info) + + def list_stream_forbidden_invoker(self, request): + http_info = self._list_stream_forbidden_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_stream_forbidden_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/stream/blocks", + "request_type": request.__class__.__name__, + "response_type": "ListStreamForbiddenResponse" + } + + 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'app_name' in local_var_params: + query_params.append(('app_name', local_var_params['app_name'])) + if 'stream_name' in local_var_params: + query_params.append(('stream_name', local_var_params['stream_name'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) + + 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 run_record(self, request): + """提交录制控制命令 + + 对单条流的实时录制控制接口。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RunRecord + :type request: :class:`huaweicloudsdklive.v1.RunRecordRequest` + :rtype: :class:`huaweicloudsdklive.v1.RunRecordResponse` + """ + http_info = self._run_record_http_info(request) + return self._call_api(**http_info) + + def run_record_invoker(self, request): + http_info = self._run_record_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _run_record_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/record/control", + "request_type": request.__class__.__name__, + "response_type": "RunRecordResponse" + } + + 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 'action' in local_var_params: + query_params.append(('action', local_var_params['action'])) + + 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 = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json; charset=UTF-8']) + + 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_domain(self, request): + """查询直播域名 + + 查询直播域名 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDomain + :type request: :class:`huaweicloudsdklive.v1.ShowDomainRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowDomainResponse` + """ + http_info = self._show_domain_http_info(request) + return self._call_api(**http_info) + + def show_domain_invoker(self, request): + http_info = self._show_domain_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_domain_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/domain", + "request_type": request.__class__.__name__, + "response_type": "ShowDomainResponse" + } + + 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + + 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_domain_key_chain(self, request): + """查询指定域名的Key防盗链配置 + + 查询指定域名的Key防盗链配置 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDomainKeyChain + :type request: :class:`huaweicloudsdklive.v1.ShowDomainKeyChainRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowDomainKeyChainResponse` + """ + http_info = self._show_domain_key_chain_http_info(request) + return self._call_api(**http_info) + + def show_domain_key_chain_invoker(self, request): + http_info = self._show_domain_key_chain_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_domain_key_chain_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/guard/key-chain", + "request_type": request.__class__.__name__, + "response_type": "ShowDomainKeyChainResponse" + } + + 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 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + + 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_pull_sources_config(self, request): + """查询直播拉流回源配置 + + 查询直播拉流回源配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPullSourcesConfig + :type request: :class:`huaweicloudsdklive.v1.ShowPullSourcesConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowPullSourcesConfigResponse` + """ + http_info = self._show_pull_sources_config_http_info(request) + return self._call_api(**http_info) + + def show_pull_sources_config_invoker(self, request): + http_info = self._show_pull_sources_config_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_pull_sources_config_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/domain/pull-sources", + "request_type": request.__class__.__name__, + "response_type": "ShowPullSourcesConfigResponse" + } + + 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 'play_domain' in local_var_params: + query_params.append(('play_domain', local_var_params['play_domain'])) + + 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_record_callback_config(self, request): + """查询录制回调配置 + + 查询录制回调配置接口 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowRecordCallbackConfig + :type request: :class:`huaweicloudsdklive.v1.ShowRecordCallbackConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowRecordCallbackConfigResponse` + """ + http_info = self._show_record_callback_config_http_info(request) + return self._call_api(**http_info) + + def show_record_callback_config_invoker(self, request): + http_info = self._show_record_callback_config_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_record_callback_config_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/record/callbacks/{id}", + "request_type": request.__class__.__name__, + "response_type": "ShowRecordCallbackConfigResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'id' in local_var_params: + path_params['id'] = local_var_params['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_record_rule(self, request): + """查询录制规则配置 + + 查询录制规则接口 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowRecordRule + :type request: :class:`huaweicloudsdklive.v1.ShowRecordRuleRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowRecordRuleResponse` + """ + http_info = self._show_record_rule_http_info(request) return self._call_api(**http_info) - def list_stream_forbidden_invoker(self, request): - http_info = self._list_stream_forbidden_http_info(request) + def show_record_rule_invoker(self, request): + http_info = self._show_record_rule_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_stream_forbidden_http_info(cls, request): + def _show_record_rule_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/stream/blocks", + "resource_path": "/v1/{project_id}/record/rules/{id}", "request_type": request.__class__.__name__, - "response_type": "ListStreamForbiddenResponse" + "response_type": "ShowRecordRuleResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1620,18 +2415,10 @@ def _list_stream_forbidden_http_info(cls, request): collection_formats = {} path_params = {} + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] query_params = [] - if 'domain' in local_var_params: - query_params.append(('domain', local_var_params['domain'])) - if 'app_name' in local_var_params: - query_params.append(('app_name', local_var_params['app_name'])) - if 'stream_name' in local_var_params: - query_params.append(('stream_name', local_var_params['stream_name'])) - if 'page' in local_var_params: - query_params.append(('page', local_var_params['page'])) - if 'size' in local_var_params: - query_params.append(('size', local_var_params['size'])) header_params = {} @@ -1659,31 +2446,31 @@ def _list_stream_forbidden_http_info(cls, request): return http_info - def run_record(self, request): - """提交录制控制命令 + def show_transcodings_template(self, request): + """查询直播转码模板 - 对单条流的实时录制控制接口。 + 查询直播转码模板 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for RunRecord - :type request: :class:`huaweicloudsdklive.v1.RunRecordRequest` - :rtype: :class:`huaweicloudsdklive.v1.RunRecordResponse` + :param request: Request instance for ShowTranscodingsTemplate + :type request: :class:`huaweicloudsdklive.v1.ShowTranscodingsTemplateRequest` + :rtype: :class:`huaweicloudsdklive.v1.ShowTranscodingsTemplateResponse` """ - http_info = self._run_record_http_info(request) + http_info = self._show_transcodings_template_http_info(request) return self._call_api(**http_info) - def run_record_invoker(self, request): - http_info = self._run_record_http_info(request) + def show_transcodings_template_invoker(self, request): + http_info = self._show_transcodings_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _run_record_http_info(cls, request): + def _show_transcodings_template_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/record/control", + "method": "GET", + "resource_path": "/v1/{project_id}/template/transcodings", "request_type": request.__class__.__name__, - "response_type": "RunRecordResponse" + "response_type": "ShowTranscodingsTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1695,23 +2482,27 @@ def _run_record_http_info(cls, request): path_params = {} query_params = [] - if 'action' in local_var_params: - query_params.append(('action', local_var_params['action'])) + if 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) + if 'app_name' in local_var_params: + query_params.append(('app_name', local_var_params['app_name'])) + if 'page' in local_var_params: + query_params.append(('page', local_var_params['page'])) + if 'size' in local_var_params: + query_params.append(('size', local_var_params['size'])) 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 = ["X-Request-Id", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json; charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -1726,31 +2517,31 @@ def _run_record_http_info(cls, request): return http_info - def show_domain(self, request): - """查询直播域名 + def update_delay_config(self, request): + """修改播放域名延时配置 - 查询直播域名 + 修改播放域名延时配置。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDomain - :type request: :class:`huaweicloudsdklive.v1.ShowDomainRequest` - :rtype: :class:`huaweicloudsdklive.v1.ShowDomainResponse` + :param request: Request instance for UpdateDelayConfig + :type request: :class:`huaweicloudsdklive.v1.UpdateDelayConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateDelayConfigResponse` """ - http_info = self._show_domain_http_info(request) + http_info = self._update_delay_config_http_info(request) return self._call_api(**http_info) - def show_domain_invoker(self, request): - http_info = self._show_domain_http_info(request) + def update_delay_config_invoker(self, request): + http_info = self._update_delay_config_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_domain_http_info(cls, request): + def _update_delay_config_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/domain", + "method": "PUT", + "resource_path": "/v1/{project_id}/domain/delay", "request_type": request.__class__.__name__, - "response_type": "ShowDomainResponse" + "response_type": "UpdateDelayConfigResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1762,23 +2553,21 @@ def _show_domain_http_info(cls, request): path_params = {} query_params = [] - if 'domain' in local_var_params: - query_params.append(('domain', local_var_params['domain'])) - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) 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']) + ['application/json; charset=UTF-8']) auth_settings = [] @@ -1793,31 +2582,31 @@ def _show_domain_http_info(cls, request): return http_info - def show_domain_key_chain(self, request): - """查询指定域名的Key防盗链配置 + def update_domain(self, request): + """修改直播域名 - 查询指定域名的Key防盗链配置 + 修改直播播放、RTMP推流加速域名相关信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDomainKeyChain - :type request: :class:`huaweicloudsdklive.v1.ShowDomainKeyChainRequest` - :rtype: :class:`huaweicloudsdklive.v1.ShowDomainKeyChainResponse` + :param request: Request instance for UpdateDomain + :type request: :class:`huaweicloudsdklive.v1.UpdateDomainRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainResponse` """ - http_info = self._show_domain_key_chain_http_info(request) + http_info = self._update_domain_http_info(request) return self._call_api(**http_info) - def show_domain_key_chain_invoker(self, request): - http_info = self._show_domain_key_chain_http_info(request) + def update_domain_invoker(self, request): + http_info = self._update_domain_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_domain_key_chain_http_info(cls, request): + def _update_domain_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/guard/key-chain", + "method": "PUT", + "resource_path": "/v1/{project_id}/domain", "request_type": request.__class__.__name__, - "response_type": "ShowDomainKeyChainResponse" + "response_type": "UpdateDomainResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1829,21 +2618,21 @@ def _show_domain_key_chain_http_info(cls, request): path_params = {} query_params = [] - if 'domain' in local_var_params: - query_params.append(('domain', local_var_params['domain'])) 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']) + ['application/json; charset=UTF-8']) auth_settings = [] @@ -1858,31 +2647,31 @@ def _show_domain_key_chain_http_info(cls, request): return http_info - def show_record_callback_config(self, request): - """查询录制回调配置 + def update_domain_ip6_switch(self, request): + """配置域名IPV6开关 - 查询录制回调配置接口 + 配置IPV6开关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowRecordCallbackConfig - :type request: :class:`huaweicloudsdklive.v1.ShowRecordCallbackConfigRequest` - :rtype: :class:`huaweicloudsdklive.v1.ShowRecordCallbackConfigResponse` + :param request: Request instance for UpdateDomainIp6Switch + :type request: :class:`huaweicloudsdklive.v1.UpdateDomainIp6SwitchRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainIp6SwitchResponse` """ - http_info = self._show_record_callback_config_http_info(request) + http_info = self._update_domain_ip6_switch_http_info(request) return self._call_api(**http_info) - def show_record_callback_config_invoker(self, request): - http_info = self._show_record_callback_config_http_info(request) + def update_domain_ip6_switch_invoker(self, request): + http_info = self._update_domain_ip6_switch_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_record_callback_config_http_info(cls, request): + def _update_domain_ip6_switch_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/record/callbacks/{id}", + "method": "PUT", + "resource_path": "/v1/{project_id}/domain/ipv6-switch", "request_type": request.__class__.__name__, - "response_type": "ShowRecordCallbackConfigResponse" + "response_type": "UpdateDomainIp6SwitchResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1892,8 +2681,6 @@ def _show_record_callback_config_http_info(cls, request): collection_formats = {} path_params = {} - if 'id' in local_var_params: - path_params['id'] = local_var_params['id'] query_params = [] @@ -1902,13 +2689,15 @@ def _show_record_callback_config_http_info(cls, request): 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']) + ['application/json; charset=UTF-8']) auth_settings = [] @@ -1923,31 +2712,31 @@ def _show_record_callback_config_http_info(cls, request): return http_info - def show_record_rule(self, request): - """查询录制规则配置 + def update_domain_key_chain(self, request): + """更新指定域名的Key防盗链配置 - 查询录制规则接口 + 更新指定域名的Key防盗链配置 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowRecordRule - :type request: :class:`huaweicloudsdklive.v1.ShowRecordRuleRequest` - :rtype: :class:`huaweicloudsdklive.v1.ShowRecordRuleResponse` + :param request: Request instance for UpdateDomainKeyChain + :type request: :class:`huaweicloudsdklive.v1.UpdateDomainKeyChainRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainKeyChainResponse` """ - http_info = self._show_record_rule_http_info(request) + http_info = self._update_domain_key_chain_http_info(request) return self._call_api(**http_info) - def show_record_rule_invoker(self, request): - http_info = self._show_record_rule_http_info(request) + def update_domain_key_chain_invoker(self, request): + http_info = self._update_domain_key_chain_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_record_rule_http_info(cls, request): + def _update_domain_key_chain_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/record/rules/{id}", + "method": "PUT", + "resource_path": "/v1/{project_id}/guard/key-chain", "request_type": request.__class__.__name__, - "response_type": "ShowRecordRuleResponse" + "response_type": "UpdateDomainKeyChainResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1957,23 +2746,25 @@ def _show_record_rule_http_info(cls, request): collection_formats = {} path_params = {} - if 'id' in local_var_params: - path_params['id'] = local_var_params['id'] query_params = [] + if 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) 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']) + ['application/json; charset=UTF-8']) auth_settings = [] @@ -1988,31 +2779,31 @@ def _show_record_rule_http_info(cls, request): return http_info - def show_transcodings_template(self, request): - """查询直播转码模板 + def update_geo_blocking_config(self, request): + """修改地域限制配置 - 查询直播转码模板 + 修改播放域名的地域限制,选中地域允许接入。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowTranscodingsTemplate - :type request: :class:`huaweicloudsdklive.v1.ShowTranscodingsTemplateRequest` - :rtype: :class:`huaweicloudsdklive.v1.ShowTranscodingsTemplateResponse` + :param request: Request instance for UpdateGeoBlockingConfig + :type request: :class:`huaweicloudsdklive.v1.UpdateGeoBlockingConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateGeoBlockingConfigResponse` """ - http_info = self._show_transcodings_template_http_info(request) + http_info = self._update_geo_blocking_config_http_info(request) return self._call_api(**http_info) - def show_transcodings_template_invoker(self, request): - http_info = self._show_transcodings_template_http_info(request) + def update_geo_blocking_config_invoker(self, request): + http_info = self._update_geo_blocking_config_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_transcodings_template_http_info(cls, request): + def _update_geo_blocking_config_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/template/transcodings", + "method": "PUT", + "resource_path": "/v1/{project_id}/domain/geo-blocking", "request_type": request.__class__.__name__, - "response_type": "ShowTranscodingsTemplateResponse" + "response_type": "UpdateGeoBlockingConfigResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2024,27 +2815,23 @@ def _show_transcodings_template_http_info(cls, request): path_params = {} query_params = [] - if 'domain' in local_var_params: - query_params.append(('domain', local_var_params['domain'])) - if 'app_name' in local_var_params: - query_params.append(('app_name', local_var_params['app_name'])) - if 'page' in local_var_params: - query_params.append(('page', local_var_params['page'])) - if 'size' in local_var_params: - query_params.append(('size', local_var_params['size'])) + if 'play_domain' in local_var_params: + query_params.append(('play_domain', local_var_params['play_domain'])) 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 = [] + response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json; charset=UTF-8']) auth_settings = [] @@ -2059,31 +2846,34 @@ def _show_transcodings_template_http_info(cls, request): return http_info - def update_domain(self, request): - """修改直播域名 + def update_ip_auth_list(self, request): + """修改IP黑/白名单 - 修改直播播放、RTMP推流加速域名相关信息 + 修改推流/播放域名的IP黑/白名单,当前仅支持ipv4。 + - 黑名单模式:禁止指定的IP或网段 + - 白名单模式:仅允许指定的IP或网段 + - 默认:全放通。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDomain - :type request: :class:`huaweicloudsdklive.v1.UpdateDomainRequest` - :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainResponse` + :param request: Request instance for UpdateIpAuthList + :type request: :class:`huaweicloudsdklive.v1.UpdateIpAuthListRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdateIpAuthListResponse` """ - http_info = self._update_domain_http_info(request) + http_info = self._update_ip_auth_list_http_info(request) return self._call_api(**http_info) - def update_domain_invoker(self, request): - http_info = self._update_domain_http_info(request) + def update_ip_auth_list_invoker(self, request): + http_info = self._update_ip_auth_list_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_domain_http_info(cls, request): + def _update_ip_auth_list_http_info(cls, request): http_info = { "method": "PUT", - "resource_path": "/v1/{project_id}/domain", + "resource_path": "/v1/{project_id}/guard/ip", "request_type": request.__class__.__name__, - "response_type": "UpdateDomainResponse" + "response_type": "UpdateIpAuthListResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2106,7 +2896,7 @@ def _update_domain_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json; charset=UTF-8']) @@ -2124,31 +2914,31 @@ def _update_domain_http_info(cls, request): return http_info - def update_domain_ip6_switch(self, request): - """配置域名IPV6开关 + def update_publish_template(self, request): + """新增、覆盖直播推流通知配置 - 配置IPV6开关 + 新增、覆盖直播推流通知配置 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDomainIp6Switch - :type request: :class:`huaweicloudsdklive.v1.UpdateDomainIp6SwitchRequest` - :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainIp6SwitchResponse` + :param request: Request instance for UpdatePublishTemplate + :type request: :class:`huaweicloudsdklive.v1.UpdatePublishTemplateRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdatePublishTemplateResponse` """ - http_info = self._update_domain_ip6_switch_http_info(request) + http_info = self._update_publish_template_http_info(request) return self._call_api(**http_info) - def update_domain_ip6_switch_invoker(self, request): - http_info = self._update_domain_ip6_switch_http_info(request) + def update_publish_template_invoker(self, request): + http_info = self._update_publish_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_domain_ip6_switch_http_info(cls, request): + def _update_publish_template_http_info(cls, request): http_info = { "method": "PUT", - "resource_path": "/v1/{project_id}/domain/ipv6-switch", + "resource_path": "/v1/{project_id}/notifications/publish", "request_type": request.__class__.__name__, - "response_type": "UpdateDomainIp6SwitchResponse" + "response_type": "UpdatePublishTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2160,6 +2950,8 @@ def _update_domain_ip6_switch_http_info(cls, request): path_params = {} query_params = [] + if 'domain' in local_var_params: + query_params.append(('domain', local_var_params['domain'])) header_params = {} @@ -2189,31 +2981,31 @@ def _update_domain_ip6_switch_http_info(cls, request): return http_info - def update_domain_key_chain(self, request): - """更新指定域名的Key防盗链配置 + def update_pull_sources_config(self, request): + """修改直播拉流回源配置 - 更新指定域名的Key防盗链配置 + 修改直播拉流回源配置。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDomainKeyChain - :type request: :class:`huaweicloudsdklive.v1.UpdateDomainKeyChainRequest` - :rtype: :class:`huaweicloudsdklive.v1.UpdateDomainKeyChainResponse` + :param request: Request instance for UpdatePullSourcesConfig + :type request: :class:`huaweicloudsdklive.v1.UpdatePullSourcesConfigRequest` + :rtype: :class:`huaweicloudsdklive.v1.UpdatePullSourcesConfigResponse` """ - http_info = self._update_domain_key_chain_http_info(request) + http_info = self._update_pull_sources_config_http_info(request) return self._call_api(**http_info) - def update_domain_key_chain_invoker(self, request): - http_info = self._update_domain_key_chain_http_info(request) + def update_pull_sources_config_invoker(self, request): + http_info = self._update_pull_sources_config_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_domain_key_chain_http_info(cls, request): + def _update_pull_sources_config_http_info(cls, request): http_info = { "method": "PUT", - "resource_path": "/v1/{project_id}/guard/key-chain", + "resource_path": "/v1/{project_id}/domain/pull-sources", "request_type": request.__class__.__name__, - "response_type": "UpdateDomainKeyChainResponse" + "response_type": "UpdatePullSourcesConfigResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2225,8 +3017,6 @@ def _update_domain_key_chain_http_info(cls, request): path_params = {} query_params = [] - if 'domain' in local_var_params: - query_params.append(('domain', local_var_params['domain'])) header_params = {} diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/__init__.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/__init__.py index 3825dfe51f..1ed6e93f00 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/__init__.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/__init__.py @@ -6,6 +6,7 @@ from huaweicloudsdklive.v1.model.app_quality_info import AppQualityInfo from huaweicloudsdklive.v1.model.batch_show_ip_belongs_request import BatchShowIpBelongsRequest from huaweicloudsdklive.v1.model.batch_show_ip_belongs_response import BatchShowIpBelongsResponse +from huaweicloudsdklive.v1.model.callback_url import CallbackUrl from huaweicloudsdklive.v1.model.cdn_ip import CdnIp from huaweicloudsdklive.v1.model.create_domain_mapping_request import CreateDomainMappingRequest from huaweicloudsdklive.v1.model.create_domain_mapping_response import CreateDomainMappingResponse @@ -23,8 +24,12 @@ from huaweicloudsdklive.v1.model.create_stream_forbidden_response import CreateStreamForbiddenResponse from huaweicloudsdklive.v1.model.create_transcodings_template_request import CreateTranscodingsTemplateRequest from huaweicloudsdklive.v1.model.create_transcodings_template_response import CreateTranscodingsTemplateResponse +from huaweicloudsdklive.v1.model.create_url_authchain_req import CreateUrlAuthchainReq +from huaweicloudsdklive.v1.model.create_url_authchain_request import CreateUrlAuthchainRequest +from huaweicloudsdklive.v1.model.create_url_authchain_response import CreateUrlAuthchainResponse from huaweicloudsdklive.v1.model.decoupled_live_domain_info import DecoupledLiveDomainInfo from huaweicloudsdklive.v1.model.default_record_config import DefaultRecordConfig +from huaweicloudsdklive.v1.model.delay_config import DelayConfig from huaweicloudsdklive.v1.model.delete_domain_https_cert_request import DeleteDomainHttpsCertRequest from huaweicloudsdklive.v1.model.delete_domain_https_cert_response import DeleteDomainHttpsCertResponse from huaweicloudsdklive.v1.model.delete_domain_key_chain_request import DeleteDomainKeyChainRequest @@ -33,6 +38,8 @@ from huaweicloudsdklive.v1.model.delete_domain_mapping_response import DeleteDomainMappingResponse from huaweicloudsdklive.v1.model.delete_domain_request import DeleteDomainRequest from huaweicloudsdklive.v1.model.delete_domain_response import DeleteDomainResponse +from huaweicloudsdklive.v1.model.delete_publish_template_request import DeletePublishTemplateRequest +from huaweicloudsdklive.v1.model.delete_publish_template_response import DeletePublishTemplateResponse from huaweicloudsdklive.v1.model.delete_record_callback_config_request import DeleteRecordCallbackConfigRequest from huaweicloudsdklive.v1.model.delete_record_callback_config_response import DeleteRecordCallbackConfigResponse from huaweicloudsdklive.v1.model.delete_record_rule_request import DeleteRecordRuleRequest @@ -47,12 +54,22 @@ from huaweicloudsdklive.v1.model.domain_ipv6_switch_req import DomainIpv6SwitchReq from huaweicloudsdklive.v1.model.domain_mapping import DomainMapping from huaweicloudsdklive.v1.model.flv_record_config import FLVRecordConfig +from huaweicloudsdklive.v1.model.geo_blocking_config_info import GeoBlockingConfigInfo from huaweicloudsdklive.v1.model.hls_record_config import HLSRecordConfig +from huaweicloudsdklive.v1.model.ip_auth_info import IPAuthInfo from huaweicloudsdklive.v1.model.key_chain_info import KeyChainInfo +from huaweicloudsdklive.v1.model.list_delay_config_request import ListDelayConfigRequest +from huaweicloudsdklive.v1.model.list_delay_config_response import ListDelayConfigResponse +from huaweicloudsdklive.v1.model.list_geo_blocking_config_request import ListGeoBlockingConfigRequest +from huaweicloudsdklive.v1.model.list_geo_blocking_config_response import ListGeoBlockingConfigResponse +from huaweicloudsdklive.v1.model.list_ip_auth_list_request import ListIpAuthListRequest +from huaweicloudsdklive.v1.model.list_ip_auth_list_response import ListIpAuthListResponse from huaweicloudsdklive.v1.model.list_live_sample_logs_request import ListLiveSampleLogsRequest from huaweicloudsdklive.v1.model.list_live_sample_logs_response import ListLiveSampleLogsResponse from huaweicloudsdklive.v1.model.list_live_streams_online_request import ListLiveStreamsOnlineRequest from huaweicloudsdklive.v1.model.list_live_streams_online_response import ListLiveStreamsOnlineResponse +from huaweicloudsdklive.v1.model.list_publish_template_request import ListPublishTemplateRequest +from huaweicloudsdklive.v1.model.list_publish_template_response import ListPublishTemplateResponse from huaweicloudsdklive.v1.model.list_record_callback_configs_request import ListRecordCallbackConfigsRequest from huaweicloudsdklive.v1.model.list_record_callback_configs_response import ListRecordCallbackConfigsResponse from huaweicloudsdklive.v1.model.list_record_contents_request import ListRecordContentsRequest @@ -68,6 +85,8 @@ from huaweicloudsdklive.v1.model.live_snapshot_config import LiveSnapshotConfig from huaweicloudsdklive.v1.model.log_info import LogInfo from huaweicloudsdklive.v1.model.mp4_record_config import MP4RecordConfig +from huaweicloudsdklive.v1.model.modify_delay_config import ModifyDelayConfig +from huaweicloudsdklive.v1.model.modify_pull_sources_config import ModifyPullSourcesConfig from huaweicloudsdklive.v1.model.obs_authority_config_v2 import ObsAuthorityConfigV2 from huaweicloudsdklive.v1.model.obs_file_addr import ObsFileAddr from huaweicloudsdklive.v1.model.online_info import OnlineInfo @@ -88,6 +107,8 @@ from huaweicloudsdklive.v1.model.show_domain_key_chain_response import ShowDomainKeyChainResponse from huaweicloudsdklive.v1.model.show_domain_request import ShowDomainRequest from huaweicloudsdklive.v1.model.show_domain_response import ShowDomainResponse +from huaweicloudsdklive.v1.model.show_pull_sources_config_request import ShowPullSourcesConfigRequest +from huaweicloudsdklive.v1.model.show_pull_sources_config_response import ShowPullSourcesConfigResponse from huaweicloudsdklive.v1.model.show_record_callback_config_request import ShowRecordCallbackConfigRequest from huaweicloudsdklive.v1.model.show_record_callback_config_response import ShowRecordCallbackConfigResponse from huaweicloudsdklive.v1.model.show_record_rule_request import ShowRecordRuleRequest @@ -97,6 +118,8 @@ from huaweicloudsdklive.v1.model.stream_forbidden_list import StreamForbiddenList from huaweicloudsdklive.v1.model.stream_forbidden_setting import StreamForbiddenSetting from huaweicloudsdklive.v1.model.stream_transcoding_template import StreamTranscodingTemplate +from huaweicloudsdklive.v1.model.update_delay_config_request import UpdateDelayConfigRequest +from huaweicloudsdklive.v1.model.update_delay_config_response import UpdateDelayConfigResponse from huaweicloudsdklive.v1.model.update_domain_https_cert_request import UpdateDomainHttpsCertRequest from huaweicloudsdklive.v1.model.update_domain_https_cert_response import UpdateDomainHttpsCertResponse from huaweicloudsdklive.v1.model.update_domain_ip6_switch_request import UpdateDomainIp6SwitchRequest @@ -105,8 +128,16 @@ from huaweicloudsdklive.v1.model.update_domain_key_chain_response import UpdateDomainKeyChainResponse from huaweicloudsdklive.v1.model.update_domain_request import UpdateDomainRequest from huaweicloudsdklive.v1.model.update_domain_response import UpdateDomainResponse +from huaweicloudsdklive.v1.model.update_geo_blocking_config_request import UpdateGeoBlockingConfigRequest +from huaweicloudsdklive.v1.model.update_geo_blocking_config_response import UpdateGeoBlockingConfigResponse +from huaweicloudsdklive.v1.model.update_ip_auth_list_request import UpdateIpAuthListRequest +from huaweicloudsdklive.v1.model.update_ip_auth_list_response import UpdateIpAuthListResponse from huaweicloudsdklive.v1.model.update_obs_bucket_authority_public_request import UpdateObsBucketAuthorityPublicRequest from huaweicloudsdklive.v1.model.update_obs_bucket_authority_public_response import UpdateObsBucketAuthorityPublicResponse +from huaweicloudsdklive.v1.model.update_publish_template_request import UpdatePublishTemplateRequest +from huaweicloudsdklive.v1.model.update_publish_template_response import UpdatePublishTemplateResponse +from huaweicloudsdklive.v1.model.update_pull_sources_config_request import UpdatePullSourcesConfigRequest +from huaweicloudsdklive.v1.model.update_pull_sources_config_response import UpdatePullSourcesConfigResponse from huaweicloudsdklive.v1.model.update_record_callback_config_request import UpdateRecordCallbackConfigRequest from huaweicloudsdklive.v1.model.update_record_callback_config_response import UpdateRecordCallbackConfigResponse from huaweicloudsdklive.v1.model.update_record_rule_request import UpdateRecordRuleRequest diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/callback_url.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/callback_url.py new file mode 100644 index 0000000000..c510c8d8d7 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/callback_url.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CallbackUrl: + + """ + 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 = { + 'url': 'str', + 'auth_sign_key': 'str', + 'call_back_area': 'str' + } + + attribute_map = { + 'url': 'url', + 'auth_sign_key': 'auth_sign_key', + 'call_back_area': 'call_back_area' + } + + def __init__(self, url=None, auth_sign_key=None, call_back_area=None): + """CallbackUrl + + The model defined in huaweicloud sdk + + :param url: 回调地址 + :type url: str + :param auth_sign_key: 鉴权密钥 + :type auth_sign_key: str + :param call_back_area: 接收回调通知服务器所在区域。 包含如下取值: - mainland_china:中国大陆区域。 - outside_mainland_china:中国大陆以外区域。 + :type call_back_area: str + """ + + + + self._url = None + self._auth_sign_key = None + self._call_back_area = None + self.discriminator = None + + self.url = url + if auth_sign_key is not None: + self.auth_sign_key = auth_sign_key + if call_back_area is not None: + self.call_back_area = call_back_area + + @property + def url(self): + """Gets the url of this CallbackUrl. + + 回调地址 + + :return: The url of this CallbackUrl. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CallbackUrl. + + 回调地址 + + :param url: The url of this CallbackUrl. + :type url: str + """ + self._url = url + + @property + def auth_sign_key(self): + """Gets the auth_sign_key of this CallbackUrl. + + 鉴权密钥 + + :return: The auth_sign_key of this CallbackUrl. + :rtype: str + """ + return self._auth_sign_key + + @auth_sign_key.setter + def auth_sign_key(self, auth_sign_key): + """Sets the auth_sign_key of this CallbackUrl. + + 鉴权密钥 + + :param auth_sign_key: The auth_sign_key of this CallbackUrl. + :type auth_sign_key: str + """ + self._auth_sign_key = auth_sign_key + + @property + def call_back_area(self): + """Gets the call_back_area of this CallbackUrl. + + 接收回调通知服务器所在区域。 包含如下取值: - mainland_china:中国大陆区域。 - outside_mainland_china:中国大陆以外区域。 + + :return: The call_back_area of this CallbackUrl. + :rtype: str + """ + return self._call_back_area + + @call_back_area.setter + def call_back_area(self, call_back_area): + """Sets the call_back_area of this CallbackUrl. + + 接收回调通知服务器所在区域。 包含如下取值: - mainland_china:中国大陆区域。 - outside_mainland_china:中国大陆以外区域。 + + :param call_back_area: The call_back_area of this CallbackUrl. + :type call_back_area: str + """ + self._call_back_area = call_back_area + + 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, CallbackUrl): + 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-live/huaweicloudsdklive/v1/model/create_url_authchain_req.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/create_url_authchain_req.py new file mode 100644 index 0000000000..dcf59059a2 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/create_url_authchain_req.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateUrlAuthchainReq: + + """ + 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 = { + 'domain': 'str', + 'domain_type': 'str', + 'stream': 'str', + 'app': 'str', + 'check_level': 'int', + 'start_time': 'str' + } + + attribute_map = { + 'domain': 'domain', + 'domain_type': 'domain_type', + 'stream': 'stream', + 'app': 'app', + 'check_level': 'check_level', + 'start_time': 'start_time' + } + + def __init__(self, domain=None, domain_type=None, stream=None, app=None, check_level=None, start_time=None): + """CreateUrlAuthchainReq + + The model defined in huaweicloud sdk + + :param domain: 播放域名或推流域名 + :type domain: str + :param domain_type: 域名类型 + :type domain_type: str + :param stream: 流名称,与推流或播放地址中的StreamName一致。 + :type stream: str + :param app: 应用名称,与推流或播放地址中的AppName一致。 + :type app: str + :param check_level: 鉴权方式C必选。 检查级别。LiveID由AppName和StreamName组成,即\"<app_name>/<stream_name>\"。 包含如下取值: - 3:只检查LiveID是否匹配,不检查鉴权URL是否过期。 - 5:检查LiveID是否匹配,Timestamp是否超时。 + :type check_level: int + :param start_time: 用户定义的有效访问时间起始点;例如:2006-01-02T15:04:05Z07:00 不传或为空表示当前时间 + :type start_time: str + """ + + + + self._domain = None + self._domain_type = None + self._stream = None + self._app = None + self._check_level = None + self._start_time = None + self.discriminator = None + + self.domain = domain + self.domain_type = domain_type + self.stream = stream + self.app = app + if check_level is not None: + self.check_level = check_level + if start_time is not None: + self.start_time = start_time + + @property + def domain(self): + """Gets the domain of this CreateUrlAuthchainReq. + + 播放域名或推流域名 + + :return: The domain of this CreateUrlAuthchainReq. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this CreateUrlAuthchainReq. + + 播放域名或推流域名 + + :param domain: The domain of this CreateUrlAuthchainReq. + :type domain: str + """ + self._domain = domain + + @property + def domain_type(self): + """Gets the domain_type of this CreateUrlAuthchainReq. + + 域名类型 + + :return: The domain_type of this CreateUrlAuthchainReq. + :rtype: str + """ + return self._domain_type + + @domain_type.setter + def domain_type(self, domain_type): + """Sets the domain_type of this CreateUrlAuthchainReq. + + 域名类型 + + :param domain_type: The domain_type of this CreateUrlAuthchainReq. + :type domain_type: str + """ + self._domain_type = domain_type + + @property + def stream(self): + """Gets the stream of this CreateUrlAuthchainReq. + + 流名称,与推流或播放地址中的StreamName一致。 + + :return: The stream of this CreateUrlAuthchainReq. + :rtype: str + """ + return self._stream + + @stream.setter + def stream(self, stream): + """Sets the stream of this CreateUrlAuthchainReq. + + 流名称,与推流或播放地址中的StreamName一致。 + + :param stream: The stream of this CreateUrlAuthchainReq. + :type stream: str + """ + self._stream = stream + + @property + def app(self): + """Gets the app of this CreateUrlAuthchainReq. + + 应用名称,与推流或播放地址中的AppName一致。 + + :return: The app of this CreateUrlAuthchainReq. + :rtype: str + """ + return self._app + + @app.setter + def app(self, app): + """Sets the app of this CreateUrlAuthchainReq. + + 应用名称,与推流或播放地址中的AppName一致。 + + :param app: The app of this CreateUrlAuthchainReq. + :type app: str + """ + self._app = app + + @property + def check_level(self): + """Gets the check_level of this CreateUrlAuthchainReq. + + 鉴权方式C必选。 检查级别。LiveID由AppName和StreamName组成,即\"/\"。 包含如下取值: - 3:只检查LiveID是否匹配,不检查鉴权URL是否过期。 - 5:检查LiveID是否匹配,Timestamp是否超时。 + + :return: The check_level of this CreateUrlAuthchainReq. + :rtype: int + """ + return self._check_level + + @check_level.setter + def check_level(self, check_level): + """Sets the check_level of this CreateUrlAuthchainReq. + + 鉴权方式C必选。 检查级别。LiveID由AppName和StreamName组成,即\"/\"。 包含如下取值: - 3:只检查LiveID是否匹配,不检查鉴权URL是否过期。 - 5:检查LiveID是否匹配,Timestamp是否超时。 + + :param check_level: The check_level of this CreateUrlAuthchainReq. + :type check_level: int + """ + self._check_level = check_level + + @property + def start_time(self): + """Gets the start_time of this CreateUrlAuthchainReq. + + 用户定义的有效访问时间起始点;例如:2006-01-02T15:04:05Z07:00 不传或为空表示当前时间 + + :return: The start_time of this CreateUrlAuthchainReq. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this CreateUrlAuthchainReq. + + 用户定义的有效访问时间起始点;例如:2006-01-02T15:04:05Z07:00 不传或为空表示当前时间 + + :param start_time: The start_time of this CreateUrlAuthchainReq. + :type start_time: str + """ + self._start_time = start_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, CreateUrlAuthchainReq): + 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-live/huaweicloudsdklive/v1/model/create_url_authchain_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/create_url_authchain_request.py new file mode 100644 index 0000000000..73d9d69563 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/create_url_authchain_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateUrlAuthchainRequest: + + """ + 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': 'CreateUrlAuthchainReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateUrlAuthchainRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateUrlAuthchainRequest + :type body: :class:`huaweicloudsdklive.v1.CreateUrlAuthchainReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateUrlAuthchainRequest. + + :return: The body of this CreateUrlAuthchainRequest. + :rtype: :class:`huaweicloudsdklive.v1.CreateUrlAuthchainReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateUrlAuthchainRequest. + + :param body: The body of this CreateUrlAuthchainRequest. + :type body: :class:`huaweicloudsdklive.v1.CreateUrlAuthchainReq` + """ + 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, CreateUrlAuthchainRequest): + 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-live/huaweicloudsdklive/v1/model/create_url_authchain_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/create_url_authchain_response.py new file mode 100644 index 0000000000..9f0b74f44e --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/create_url_authchain_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 CreateUrlAuthchainResponse(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 = { + 'keychain': 'list[str]' + } + + attribute_map = { + 'keychain': 'keychain' + } + + def __init__(self, keychain=None): + """CreateUrlAuthchainResponse + + The model defined in huaweicloud sdk + + :param keychain: 生成的鉴权串列表 + :type keychain: list[str] + """ + + super(CreateUrlAuthchainResponse, self).__init__() + + self._keychain = None + self.discriminator = None + + if keychain is not None: + self.keychain = keychain + + @property + def keychain(self): + """Gets the keychain of this CreateUrlAuthchainResponse. + + 生成的鉴权串列表 + + :return: The keychain of this CreateUrlAuthchainResponse. + :rtype: list[str] + """ + return self._keychain + + @keychain.setter + def keychain(self, keychain): + """Sets the keychain of this CreateUrlAuthchainResponse. + + 生成的鉴权串列表 + + :param keychain: The keychain of this CreateUrlAuthchainResponse. + :type keychain: list[str] + """ + self._keychain = keychain + + 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, CreateUrlAuthchainResponse): + 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-live/huaweicloudsdklive/v1/model/delay_config.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/delay_config.py new file mode 100644 index 0000000000..b1b57160f2 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/delay_config.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DelayConfig: + + """ + 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 = { + 'app': 'str', + 'delay': 'int' + } + + attribute_map = { + 'app': 'app', + 'delay': 'delay' + } + + def __init__(self, app=None, delay=None): + """DelayConfig + + The model defined in huaweicloud sdk + + :param app: 应用名,默认为live + :type app: str + :param delay: 延时时间,单位:ms。 包含如下取值: - 2000(低)。 - 4000(中)。 - 6000(高)。 + :type delay: int + """ + + + + self._app = None + self._delay = None + self.discriminator = None + + if app is not None: + self.app = app + if delay is not None: + self.delay = delay + + @property + def app(self): + """Gets the app of this DelayConfig. + + 应用名,默认为live + + :return: The app of this DelayConfig. + :rtype: str + """ + return self._app + + @app.setter + def app(self, app): + """Sets the app of this DelayConfig. + + 应用名,默认为live + + :param app: The app of this DelayConfig. + :type app: str + """ + self._app = app + + @property + def delay(self): + """Gets the delay of this DelayConfig. + + 延时时间,单位:ms。 包含如下取值: - 2000(低)。 - 4000(中)。 - 6000(高)。 + + :return: The delay of this DelayConfig. + :rtype: int + """ + return self._delay + + @delay.setter + def delay(self, delay): + """Sets the delay of this DelayConfig. + + 延时时间,单位:ms。 包含如下取值: - 2000(低)。 - 4000(中)。 - 6000(高)。 + + :param delay: The delay of this DelayConfig. + :type delay: int + """ + self._delay = delay + + 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, DelayConfig): + 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-live/huaweicloudsdklive/v1/model/delete_publish_template_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/delete_publish_template_request.py new file mode 100644 index 0000000000..9d9fe5b2f3 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/delete_publish_template_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePublishTemplateRequest: + + """ + 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 = { + 'domain': 'str' + } + + attribute_map = { + 'domain': 'domain' + } + + def __init__(self, domain=None): + """DeletePublishTemplateRequest + + The model defined in huaweicloud sdk + + :param domain: 推流域名 + :type domain: str + """ + + + + self._domain = None + self.discriminator = None + + self.domain = domain + + @property + def domain(self): + """Gets the domain of this DeletePublishTemplateRequest. + + 推流域名 + + :return: The domain of this DeletePublishTemplateRequest. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this DeletePublishTemplateRequest. + + 推流域名 + + :param domain: The domain of this DeletePublishTemplateRequest. + :type domain: str + """ + self._domain = domain + + 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, DeletePublishTemplateRequest): + 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-live/huaweicloudsdklive/v1/model/delete_publish_template_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/delete_publish_template_response.py new file mode 100644 index 0000000000..33d8d9d1f9 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/delete_publish_template_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 DeletePublishTemplateResponse(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): + """DeletePublishTemplateResponse + + The model defined in huaweicloud sdk + + """ + + super(DeletePublishTemplateResponse, 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, DeletePublishTemplateResponse): + 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-live/huaweicloudsdklive/v1/model/geo_blocking_config_info.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/geo_blocking_config_info.py new file mode 100644 index 0000000000..754f7fad17 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/geo_blocking_config_info.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GeoBlockingConfigInfo: + + """ + 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 = { + 'app': 'str', + 'area_whitelist': 'list[str]' + } + + attribute_map = { + 'app': 'app', + 'area_whitelist': 'area_whitelist' + } + + def __init__(self, app=None, area_whitelist=None): + """GeoBlockingConfigInfo + + The model defined in huaweicloud sdk + + :param app: 应用名 + :type app: str + :param area_whitelist: 限制区域列表, 空列表表示不限制。 除中国以外,其他地区代码,2位字母大写。代码格式参阅[ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#search/code/) 包含如下部分取值: - CN-IN:中国大陆 - CN-HK:中国香港 - CN-MO:中国澳门 - CN-TW:中国台湾 - BR:巴西 + :type area_whitelist: list[str] + """ + + + + self._app = None + self._area_whitelist = None + self.discriminator = None + + self.app = app + if area_whitelist is not None: + self.area_whitelist = area_whitelist + + @property + def app(self): + """Gets the app of this GeoBlockingConfigInfo. + + 应用名 + + :return: The app of this GeoBlockingConfigInfo. + :rtype: str + """ + return self._app + + @app.setter + def app(self, app): + """Sets the app of this GeoBlockingConfigInfo. + + 应用名 + + :param app: The app of this GeoBlockingConfigInfo. + :type app: str + """ + self._app = app + + @property + def area_whitelist(self): + """Gets the area_whitelist of this GeoBlockingConfigInfo. + + 限制区域列表, 空列表表示不限制。 除中国以外,其他地区代码,2位字母大写。代码格式参阅[ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#search/code/) 包含如下部分取值: - CN-IN:中国大陆 - CN-HK:中国香港 - CN-MO:中国澳门 - CN-TW:中国台湾 - BR:巴西 + + :return: The area_whitelist of this GeoBlockingConfigInfo. + :rtype: list[str] + """ + return self._area_whitelist + + @area_whitelist.setter + def area_whitelist(self, area_whitelist): + """Sets the area_whitelist of this GeoBlockingConfigInfo. + + 限制区域列表, 空列表表示不限制。 除中国以外,其他地区代码,2位字母大写。代码格式参阅[ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#search/code/) 包含如下部分取值: - CN-IN:中国大陆 - CN-HK:中国香港 - CN-MO:中国澳门 - CN-TW:中国台湾 - BR:巴西 + + :param area_whitelist: The area_whitelist of this GeoBlockingConfigInfo. + :type area_whitelist: list[str] + """ + self._area_whitelist = area_whitelist + + 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, GeoBlockingConfigInfo): + 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-live/huaweicloudsdklive/v1/model/ip_auth_info.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/ip_auth_info.py new file mode 100644 index 0000000000..4981ec03f1 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/ip_auth_info.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IPAuthInfo: + + """ + 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 = { + 'domain': 'str', + 'auth_type': 'str', + 'ip_auth_list': 'str' + } + + attribute_map = { + 'domain': 'domain', + 'auth_type': 'auth_type', + 'ip_auth_list': 'ip_auth_list' + } + + def __init__(self, domain=None, auth_type=None, ip_auth_list=None): + """IPAuthInfo + + The model defined in huaweicloud sdk + + :param domain: 推流域名或播放域名 + :type domain: str + :param auth_type: 鉴权类型。 包含如下取值: - WHITE:IP白名单鉴权。 - BLACK:IP黑名单鉴权。 - NONE:不鉴权。 + :type auth_type: str + :param ip_auth_list: IP黑名单列表,IP之间用;分隔,如192.168.0.0;192.168.0.8,最多支持配置100个IP。支持IP网段添加,例如127.0.0.1/24表示采用子网掩码中的前24位为有效位,即用32-24=8bit来表示主机号,该子网可以容纳2^8 - 2 = 254 台主机。故127.0.0.1/24 表示IP网段范围是:127.0.0.1~127.0.0.255 + :type ip_auth_list: str + """ + + + + self._domain = None + self._auth_type = None + self._ip_auth_list = None + self.discriminator = None + + self.domain = domain + self.auth_type = auth_type + self.ip_auth_list = ip_auth_list + + @property + def domain(self): + """Gets the domain of this IPAuthInfo. + + 推流域名或播放域名 + + :return: The domain of this IPAuthInfo. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this IPAuthInfo. + + 推流域名或播放域名 + + :param domain: The domain of this IPAuthInfo. + :type domain: str + """ + self._domain = domain + + @property + def auth_type(self): + """Gets the auth_type of this IPAuthInfo. + + 鉴权类型。 包含如下取值: - WHITE:IP白名单鉴权。 - BLACK:IP黑名单鉴权。 - NONE:不鉴权。 + + :return: The auth_type of this IPAuthInfo. + :rtype: str + """ + return self._auth_type + + @auth_type.setter + def auth_type(self, auth_type): + """Sets the auth_type of this IPAuthInfo. + + 鉴权类型。 包含如下取值: - WHITE:IP白名单鉴权。 - BLACK:IP黑名单鉴权。 - NONE:不鉴权。 + + :param auth_type: The auth_type of this IPAuthInfo. + :type auth_type: str + """ + self._auth_type = auth_type + + @property + def ip_auth_list(self): + """Gets the ip_auth_list of this IPAuthInfo. + + IP黑名单列表,IP之间用;分隔,如192.168.0.0;192.168.0.8,最多支持配置100个IP。支持IP网段添加,例如127.0.0.1/24表示采用子网掩码中的前24位为有效位,即用32-24=8bit来表示主机号,该子网可以容纳2^8 - 2 = 254 台主机。故127.0.0.1/24 表示IP网段范围是:127.0.0.1~127.0.0.255 + + :return: The ip_auth_list of this IPAuthInfo. + :rtype: str + """ + return self._ip_auth_list + + @ip_auth_list.setter + def ip_auth_list(self, ip_auth_list): + """Sets the ip_auth_list of this IPAuthInfo. + + IP黑名单列表,IP之间用;分隔,如192.168.0.0;192.168.0.8,最多支持配置100个IP。支持IP网段添加,例如127.0.0.1/24表示采用子网掩码中的前24位为有效位,即用32-24=8bit来表示主机号,该子网可以容纳2^8 - 2 = 254 台主机。故127.0.0.1/24 表示IP网段范围是:127.0.0.1~127.0.0.255 + + :param ip_auth_list: The ip_auth_list of this IPAuthInfo. + :type ip_auth_list: str + """ + self._ip_auth_list = ip_auth_list + + 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, IPAuthInfo): + 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-live/huaweicloudsdklive/v1/model/list_delay_config_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_delay_config_request.py new file mode 100644 index 0000000000..a61cde4786 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_delay_config_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDelayConfigRequest: + + """ + 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 = { + 'play_domain': 'str' + } + + attribute_map = { + 'play_domain': 'play_domain' + } + + def __init__(self, play_domain=None): + """ListDelayConfigRequest + + The model defined in huaweicloud sdk + + :param play_domain: 播放域名 + :type play_domain: str + """ + + + + self._play_domain = None + self.discriminator = None + + self.play_domain = play_domain + + @property + def play_domain(self): + """Gets the play_domain of this ListDelayConfigRequest. + + 播放域名 + + :return: The play_domain of this ListDelayConfigRequest. + :rtype: str + """ + return self._play_domain + + @play_domain.setter + def play_domain(self, play_domain): + """Sets the play_domain of this ListDelayConfigRequest. + + 播放域名 + + :param play_domain: The play_domain of this ListDelayConfigRequest. + :type play_domain: str + """ + self._play_domain = play_domain + + 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, ListDelayConfigRequest): + 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-live/huaweicloudsdklive/v1/model/list_delay_config_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_delay_config_response.py new file mode 100644 index 0000000000..8b4596996c --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_delay_config_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 ListDelayConfigResponse(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 = { + 'play_domain': 'str', + 'delay_config': 'list[DelayConfig]' + } + + attribute_map = { + 'play_domain': 'play_domain', + 'delay_config': 'delay_config' + } + + def __init__(self, play_domain=None, delay_config=None): + """ListDelayConfigResponse + + The model defined in huaweicloud sdk + + :param play_domain: 播放域名 + :type play_domain: str + :param delay_config: 直播延时配置 + :type delay_config: list[:class:`huaweicloudsdklive.v1.DelayConfig`] + """ + + super(ListDelayConfigResponse, self).__init__() + + self._play_domain = None + self._delay_config = None + self.discriminator = None + + if play_domain is not None: + self.play_domain = play_domain + if delay_config is not None: + self.delay_config = delay_config + + @property + def play_domain(self): + """Gets the play_domain of this ListDelayConfigResponse. + + 播放域名 + + :return: The play_domain of this ListDelayConfigResponse. + :rtype: str + """ + return self._play_domain + + @play_domain.setter + def play_domain(self, play_domain): + """Sets the play_domain of this ListDelayConfigResponse. + + 播放域名 + + :param play_domain: The play_domain of this ListDelayConfigResponse. + :type play_domain: str + """ + self._play_domain = play_domain + + @property + def delay_config(self): + """Gets the delay_config of this ListDelayConfigResponse. + + 直播延时配置 + + :return: The delay_config of this ListDelayConfigResponse. + :rtype: list[:class:`huaweicloudsdklive.v1.DelayConfig`] + """ + return self._delay_config + + @delay_config.setter + def delay_config(self, delay_config): + """Sets the delay_config of this ListDelayConfigResponse. + + 直播延时配置 + + :param delay_config: The delay_config of this ListDelayConfigResponse. + :type delay_config: list[:class:`huaweicloudsdklive.v1.DelayConfig`] + """ + self._delay_config = delay_config + + 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, ListDelayConfigResponse): + 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-live/huaweicloudsdklive/v1/model/list_geo_blocking_config_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_geo_blocking_config_request.py new file mode 100644 index 0000000000..45c79c399c --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_geo_blocking_config_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListGeoBlockingConfigRequest: + + """ + 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 = { + 'play_domain': 'str' + } + + attribute_map = { + 'play_domain': 'play_domain' + } + + def __init__(self, play_domain=None): + """ListGeoBlockingConfigRequest + + The model defined in huaweicloud sdk + + :param play_domain: 播放域名 + :type play_domain: str + """ + + + + self._play_domain = None + self.discriminator = None + + self.play_domain = play_domain + + @property + def play_domain(self): + """Gets the play_domain of this ListGeoBlockingConfigRequest. + + 播放域名 + + :return: The play_domain of this ListGeoBlockingConfigRequest. + :rtype: str + """ + return self._play_domain + + @play_domain.setter + def play_domain(self, play_domain): + """Sets the play_domain of this ListGeoBlockingConfigRequest. + + 播放域名 + + :param play_domain: The play_domain of this ListGeoBlockingConfigRequest. + :type play_domain: str + """ + self._play_domain = play_domain + + 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, ListGeoBlockingConfigRequest): + 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-live/huaweicloudsdklive/v1/model/list_geo_blocking_config_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_geo_blocking_config_response.py new file mode 100644 index 0000000000..e9d7b38d72 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_geo_blocking_config_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 ListGeoBlockingConfigResponse(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 = { + 'play_domain': 'str', + 'apps': 'list[GeoBlockingConfigInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'play_domain': 'play_domain', + 'apps': 'apps', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, play_domain=None, apps=None, x_request_id=None): + """ListGeoBlockingConfigResponse + + The model defined in huaweicloud sdk + + :param play_domain: 直播播放域名 + :type play_domain: str + :param apps: 应用列表 + :type apps: list[:class:`huaweicloudsdklive.v1.GeoBlockingConfigInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListGeoBlockingConfigResponse, self).__init__() + + self._play_domain = None + self._apps = None + self._x_request_id = None + self.discriminator = None + + if play_domain is not None: + self.play_domain = play_domain + if apps is not None: + self.apps = apps + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def play_domain(self): + """Gets the play_domain of this ListGeoBlockingConfigResponse. + + 直播播放域名 + + :return: The play_domain of this ListGeoBlockingConfigResponse. + :rtype: str + """ + return self._play_domain + + @play_domain.setter + def play_domain(self, play_domain): + """Sets the play_domain of this ListGeoBlockingConfigResponse. + + 直播播放域名 + + :param play_domain: The play_domain of this ListGeoBlockingConfigResponse. + :type play_domain: str + """ + self._play_domain = play_domain + + @property + def apps(self): + """Gets the apps of this ListGeoBlockingConfigResponse. + + 应用列表 + + :return: The apps of this ListGeoBlockingConfigResponse. + :rtype: list[:class:`huaweicloudsdklive.v1.GeoBlockingConfigInfo`] + """ + return self._apps + + @apps.setter + def apps(self, apps): + """Sets the apps of this ListGeoBlockingConfigResponse. + + 应用列表 + + :param apps: The apps of this ListGeoBlockingConfigResponse. + :type apps: list[:class:`huaweicloudsdklive.v1.GeoBlockingConfigInfo`] + """ + self._apps = apps + + @property + def x_request_id(self): + """Gets the x_request_id of this ListGeoBlockingConfigResponse. + + :return: The x_request_id of this ListGeoBlockingConfigResponse. + :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 ListGeoBlockingConfigResponse. + + :param x_request_id: The x_request_id of this ListGeoBlockingConfigResponse. + :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, ListGeoBlockingConfigResponse): + 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-live/huaweicloudsdklive/v1/model/list_ip_auth_list_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_ip_auth_list_request.py new file mode 100644 index 0000000000..0196fa3c3e --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_ip_auth_list_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListIpAuthListRequest: + + """ + 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 = { + 'domain': 'str' + } + + attribute_map = { + 'domain': 'domain' + } + + def __init__(self, domain=None): + """ListIpAuthListRequest + + The model defined in huaweicloud sdk + + :param domain: 推流域名或播放域名 + :type domain: str + """ + + + + self._domain = None + self.discriminator = None + + self.domain = domain + + @property + def domain(self): + """Gets the domain of this ListIpAuthListRequest. + + 推流域名或播放域名 + + :return: The domain of this ListIpAuthListRequest. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this ListIpAuthListRequest. + + 推流域名或播放域名 + + :param domain: The domain of this ListIpAuthListRequest. + :type domain: str + """ + self._domain = domain + + 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, ListIpAuthListRequest): + 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-live/huaweicloudsdklive/v1/model/list_ip_auth_list_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_ip_auth_list_response.py new file mode 100644 index 0000000000..5496b8e740 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_ip_auth_list_response.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListIpAuthListResponse(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 = { + 'domain': 'str', + 'auth_type': 'str', + 'ip_auth_list': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'domain': 'domain', + 'auth_type': 'auth_type', + 'ip_auth_list': 'ip_auth_list', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, domain=None, auth_type=None, ip_auth_list=None, x_request_id=None): + """ListIpAuthListResponse + + The model defined in huaweicloud sdk + + :param domain: 推流域名或播放域名 + :type domain: str + :param auth_type: 鉴权类型。 包含如下取值: - WHITE:IP白名单鉴权。 - BLACK:IP黑名单鉴权。 - NONE:不鉴权。 + :type auth_type: str + :param ip_auth_list: IP黑名单列表,IP之间用;分隔,如192.168.0.0;192.168.0.8,最多支持配置100个IP。支持IP网段添加,例如127.0.0.1/24表示采用子网掩码中的前24位为有效位,即用32-24=8bit来表示主机号,该子网可以容纳2^8 - 2 = 254 台主机。故127.0.0.1/24 表示IP网段范围是:127.0.0.1~127.0.0.255 + :type ip_auth_list: str + :param x_request_id: + :type x_request_id: str + """ + + super(ListIpAuthListResponse, self).__init__() + + self._domain = None + self._auth_type = None + self._ip_auth_list = None + self._x_request_id = None + self.discriminator = None + + if domain is not None: + self.domain = domain + if auth_type is not None: + self.auth_type = auth_type + if ip_auth_list is not None: + self.ip_auth_list = ip_auth_list + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def domain(self): + """Gets the domain of this ListIpAuthListResponse. + + 推流域名或播放域名 + + :return: The domain of this ListIpAuthListResponse. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this ListIpAuthListResponse. + + 推流域名或播放域名 + + :param domain: The domain of this ListIpAuthListResponse. + :type domain: str + """ + self._domain = domain + + @property + def auth_type(self): + """Gets the auth_type of this ListIpAuthListResponse. + + 鉴权类型。 包含如下取值: - WHITE:IP白名单鉴权。 - BLACK:IP黑名单鉴权。 - NONE:不鉴权。 + + :return: The auth_type of this ListIpAuthListResponse. + :rtype: str + """ + return self._auth_type + + @auth_type.setter + def auth_type(self, auth_type): + """Sets the auth_type of this ListIpAuthListResponse. + + 鉴权类型。 包含如下取值: - WHITE:IP白名单鉴权。 - BLACK:IP黑名单鉴权。 - NONE:不鉴权。 + + :param auth_type: The auth_type of this ListIpAuthListResponse. + :type auth_type: str + """ + self._auth_type = auth_type + + @property + def ip_auth_list(self): + """Gets the ip_auth_list of this ListIpAuthListResponse. + + IP黑名单列表,IP之间用;分隔,如192.168.0.0;192.168.0.8,最多支持配置100个IP。支持IP网段添加,例如127.0.0.1/24表示采用子网掩码中的前24位为有效位,即用32-24=8bit来表示主机号,该子网可以容纳2^8 - 2 = 254 台主机。故127.0.0.1/24 表示IP网段范围是:127.0.0.1~127.0.0.255 + + :return: The ip_auth_list of this ListIpAuthListResponse. + :rtype: str + """ + return self._ip_auth_list + + @ip_auth_list.setter + def ip_auth_list(self, ip_auth_list): + """Sets the ip_auth_list of this ListIpAuthListResponse. + + IP黑名单列表,IP之间用;分隔,如192.168.0.0;192.168.0.8,最多支持配置100个IP。支持IP网段添加,例如127.0.0.1/24表示采用子网掩码中的前24位为有效位,即用32-24=8bit来表示主机号,该子网可以容纳2^8 - 2 = 254 台主机。故127.0.0.1/24 表示IP网段范围是:127.0.0.1~127.0.0.255 + + :param ip_auth_list: The ip_auth_list of this ListIpAuthListResponse. + :type ip_auth_list: str + """ + self._ip_auth_list = ip_auth_list + + @property + def x_request_id(self): + """Gets the x_request_id of this ListIpAuthListResponse. + + :return: The x_request_id of this ListIpAuthListResponse. + :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 ListIpAuthListResponse. + + :param x_request_id: The x_request_id of this ListIpAuthListResponse. + :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, ListIpAuthListResponse): + 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-live/huaweicloudsdklive/v1/model/list_publish_template_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_publish_template_request.py new file mode 100644 index 0000000000..69cf92aa3e --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_publish_template_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPublishTemplateRequest: + + """ + 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 = { + 'domain': 'str' + } + + attribute_map = { + 'domain': 'domain' + } + + def __init__(self, domain=None): + """ListPublishTemplateRequest + + The model defined in huaweicloud sdk + + :param domain: 推流域名 + :type domain: str + """ + + + + self._domain = None + self.discriminator = None + + self.domain = domain + + @property + def domain(self): + """Gets the domain of this ListPublishTemplateRequest. + + 推流域名 + + :return: The domain of this ListPublishTemplateRequest. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this ListPublishTemplateRequest. + + 推流域名 + + :param domain: The domain of this ListPublishTemplateRequest. + :type domain: str + """ + self._domain = domain + + 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, ListPublishTemplateRequest): + 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-live/huaweicloudsdklive/v1/model/list_publish_template_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_publish_template_response.py new file mode 100644 index 0000000000..225370ee56 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_publish_template_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 ListPublishTemplateResponse(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 = { + 'url': 'str', + 'auth_sign_key': 'str', + 'call_back_area': 'str' + } + + attribute_map = { + 'url': 'url', + 'auth_sign_key': 'auth_sign_key', + 'call_back_area': 'call_back_area' + } + + def __init__(self, url=None, auth_sign_key=None, call_back_area=None): + """ListPublishTemplateResponse + + The model defined in huaweicloud sdk + + :param url: 回调地址 + :type url: str + :param auth_sign_key: 鉴权密钥 + :type auth_sign_key: str + :param call_back_area: 接收回调通知服务器所在区域。 包含如下取值: - mainland_china:中国大陆区域。 - outside_mainland_china:中国大陆以外区域。 + :type call_back_area: str + """ + + super(ListPublishTemplateResponse, self).__init__() + + self._url = None + self._auth_sign_key = None + self._call_back_area = None + self.discriminator = None + + if url is not None: + self.url = url + if auth_sign_key is not None: + self.auth_sign_key = auth_sign_key + if call_back_area is not None: + self.call_back_area = call_back_area + + @property + def url(self): + """Gets the url of this ListPublishTemplateResponse. + + 回调地址 + + :return: The url of this ListPublishTemplateResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ListPublishTemplateResponse. + + 回调地址 + + :param url: The url of this ListPublishTemplateResponse. + :type url: str + """ + self._url = url + + @property + def auth_sign_key(self): + """Gets the auth_sign_key of this ListPublishTemplateResponse. + + 鉴权密钥 + + :return: The auth_sign_key of this ListPublishTemplateResponse. + :rtype: str + """ + return self._auth_sign_key + + @auth_sign_key.setter + def auth_sign_key(self, auth_sign_key): + """Sets the auth_sign_key of this ListPublishTemplateResponse. + + 鉴权密钥 + + :param auth_sign_key: The auth_sign_key of this ListPublishTemplateResponse. + :type auth_sign_key: str + """ + self._auth_sign_key = auth_sign_key + + @property + def call_back_area(self): + """Gets the call_back_area of this ListPublishTemplateResponse. + + 接收回调通知服务器所在区域。 包含如下取值: - mainland_china:中国大陆区域。 - outside_mainland_china:中国大陆以外区域。 + + :return: The call_back_area of this ListPublishTemplateResponse. + :rtype: str + """ + return self._call_back_area + + @call_back_area.setter + def call_back_area(self, call_back_area): + """Sets the call_back_area of this ListPublishTemplateResponse. + + 接收回调通知服务器所在区域。 包含如下取值: - mainland_china:中国大陆区域。 - outside_mainland_china:中国大陆以外区域。 + + :param call_back_area: The call_back_area of this ListPublishTemplateResponse. + :type call_back_area: str + """ + self._call_back_area = call_back_area + + 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, ListPublishTemplateResponse): + 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-live/huaweicloudsdklive/v1/model/list_record_contents_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_record_contents_request.py index 9f3363331e..37f2e8d17f 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_record_contents_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/list_record_contents_request.py @@ -43,13 +43,13 @@ def __init__(self, publish_domain=None, app=None, stream=None, record_type=None, The model defined in huaweicloud sdk - :param publish_domain: 直播推流放域名 + :param publish_domain: 直播推流域名 :type publish_domain: str :param app: 流应用名称 :type app: str :param stream: 流名称 :type stream: str - :param record_type: 录制类型,包括:CONTINUOUS_RECORD,COMMAND_RECORD,PLAN_RECORD,ON_DEMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 - PLAN_RECORD:计划录制,在该规则类型配置后,推的流如果在计划录制的时间区间则触发录制。 - ON_DEMAND_RECORD:按需录制,在该规则类型配置后,录制系统收到推流后,需要调用租户提供的接口查询录制规则,并根据规则录制。 + :param record_type: 录制类型,包括:CONTINUOUS_RECORD,COMMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 :type record_type: str :param start_time: 开始时间,格式为:yyyy-mm-ddThh:mm:ssZ,UTC时间 :type start_time: str @@ -93,7 +93,7 @@ def __init__(self, publish_domain=None, app=None, stream=None, record_type=None, def publish_domain(self): """Gets the publish_domain of this ListRecordContentsRequest. - 直播推流放域名 + 直播推流域名 :return: The publish_domain of this ListRecordContentsRequest. :rtype: str @@ -104,7 +104,7 @@ def publish_domain(self): def publish_domain(self, publish_domain): """Sets the publish_domain of this ListRecordContentsRequest. - 直播推流放域名 + 直播推流域名 :param publish_domain: The publish_domain of this ListRecordContentsRequest. :type publish_domain: str @@ -159,7 +159,7 @@ def stream(self, stream): def record_type(self): """Gets the record_type of this ListRecordContentsRequest. - 录制类型,包括:CONTINUOUS_RECORD,COMMAND_RECORD,PLAN_RECORD,ON_DEMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 - PLAN_RECORD:计划录制,在该规则类型配置后,推的流如果在计划录制的时间区间则触发录制。 - ON_DEMAND_RECORD:按需录制,在该规则类型配置后,录制系统收到推流后,需要调用租户提供的接口查询录制规则,并根据规则录制。 + 录制类型,包括:CONTINUOUS_RECORD,COMMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 :return: The record_type of this ListRecordContentsRequest. :rtype: str @@ -170,7 +170,7 @@ def record_type(self): def record_type(self, record_type): """Sets the record_type of this ListRecordContentsRequest. - 录制类型,包括:CONTINUOUS_RECORD,COMMAND_RECORD,PLAN_RECORD,ON_DEMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 - PLAN_RECORD:计划录制,在该规则类型配置后,推的流如果在计划录制的时间区间则触发录制。 - ON_DEMAND_RECORD:按需录制,在该规则类型配置后,录制系统收到推流后,需要调用租户提供的接口查询录制规则,并根据规则录制。 + 录制类型,包括:CONTINUOUS_RECORD,COMMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 :param record_type: The record_type of this ListRecordContentsRequest. :type record_type: str diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/modify_delay_config.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/modify_delay_config.py new file mode 100644 index 0000000000..6ff829416b --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/modify_delay_config.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyDelayConfig: + + """ + 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 = { + 'play_domain': 'str', + 'app': 'str', + 'delay': 'int' + } + + attribute_map = { + 'play_domain': 'play_domain', + 'app': 'app', + 'delay': 'delay' + } + + def __init__(self, play_domain=None, app=None, delay=None): + """ModifyDelayConfig + + The model defined in huaweicloud sdk + + :param play_domain: 播放域名 + :type play_domain: str + :param app: 应用名称,默认为live + :type app: str + :param delay: 延时时间,单位:ms。 包含如下取值: - 2000(低)。 - 4000(中)。 - 6000(高)。 + :type delay: int + """ + + + + self._play_domain = None + self._app = None + self._delay = None + self.discriminator = None + + self.play_domain = play_domain + if app is not None: + self.app = app + self.delay = delay + + @property + def play_domain(self): + """Gets the play_domain of this ModifyDelayConfig. + + 播放域名 + + :return: The play_domain of this ModifyDelayConfig. + :rtype: str + """ + return self._play_domain + + @play_domain.setter + def play_domain(self, play_domain): + """Sets the play_domain of this ModifyDelayConfig. + + 播放域名 + + :param play_domain: The play_domain of this ModifyDelayConfig. + :type play_domain: str + """ + self._play_domain = play_domain + + @property + def app(self): + """Gets the app of this ModifyDelayConfig. + + 应用名称,默认为live + + :return: The app of this ModifyDelayConfig. + :rtype: str + """ + return self._app + + @app.setter + def app(self, app): + """Sets the app of this ModifyDelayConfig. + + 应用名称,默认为live + + :param app: The app of this ModifyDelayConfig. + :type app: str + """ + self._app = app + + @property + def delay(self): + """Gets the delay of this ModifyDelayConfig. + + 延时时间,单位:ms。 包含如下取值: - 2000(低)。 - 4000(中)。 - 6000(高)。 + + :return: The delay of this ModifyDelayConfig. + :rtype: int + """ + return self._delay + + @delay.setter + def delay(self, delay): + """Sets the delay of this ModifyDelayConfig. + + 延时时间,单位:ms。 包含如下取值: - 2000(低)。 - 4000(中)。 - 6000(高)。 + + :param delay: The delay of this ModifyDelayConfig. + :type delay: int + """ + self._delay = delay + + 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, ModifyDelayConfig): + 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-live/huaweicloudsdklive/v1/model/modify_pull_sources_config.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/modify_pull_sources_config.py new file mode 100644 index 0000000000..1631296307 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/modify_pull_sources_config.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyPullSourcesConfig: + + """ + 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 = { + 'play_domain': 'str', + 'source_type': 'str', + 'sources': 'list[str]', + 'sources_ip': 'list[str]', + 'scheme': 'str', + 'additional_args': 'dict(str, str)' + } + + attribute_map = { + 'play_domain': 'play_domain', + 'source_type': 'source_type', + 'sources': 'sources', + 'sources_ip': 'sources_ip', + 'scheme': 'scheme', + 'additional_args': 'additional_args' + } + + def __init__(self, play_domain=None, source_type=None, sources=None, sources_ip=None, scheme=None, additional_args=None): + """ModifyPullSourcesConfig + + The model defined in huaweicloud sdk + + :param play_domain: 直播播放域名 + :type play_domain: str + :param source_type: 回源方式。 包含如下取值: - domain: 回源客户源站,源站地址是域名格式。回源域名,可配置多个,如果回源失败,将按照配置顺序进行轮循。 - ipaddr: 回源客户源站,源站地址是IP格式。回源IP,可配置多个,如果回源失败,将按照配置顺序进行轮循。同时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl字段填该域名,否则按当前IP作为HOST。 - huawei: 回源华为源站,域名创建后的默认值。 + :type source_type: str + :param sources: 回源域名列表,最多可配置10个。 - 当回源方式是“domain”时,此参数必选,域名配置多个时,如果回源失败,将按照配置顺序进行轮循。 - 当回源方式是“ipaddr”时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl 字段填该域名,否则按当前IP作为HOST。 + :type sources: list[str] + :param sources_ip: 回源IP地址列表,最多可配置10个。当回源方式是“ipaddr”时,此参数必选,IP配置多个时,如果回源失败,将按照配置顺序进行轮循。 + :type sources_ip: list[str] + :param scheme: 回源协议,回源方式非“huawei”时必选。 包含如下取值: - http - rtmp + :type scheme: str + :param additional_args: 回源客户源站时在URL携带的参数。 + :type additional_args: dict(str, str) + """ + + + + self._play_domain = None + self._source_type = None + self._sources = None + self._sources_ip = None + self._scheme = None + self._additional_args = None + self.discriminator = None + + self.play_domain = play_domain + self.source_type = source_type + if sources is not None: + self.sources = sources + if sources_ip is not None: + self.sources_ip = sources_ip + if scheme is not None: + self.scheme = scheme + if additional_args is not None: + self.additional_args = additional_args + + @property + def play_domain(self): + """Gets the play_domain of this ModifyPullSourcesConfig. + + 直播播放域名 + + :return: The play_domain of this ModifyPullSourcesConfig. + :rtype: str + """ + return self._play_domain + + @play_domain.setter + def play_domain(self, play_domain): + """Sets the play_domain of this ModifyPullSourcesConfig. + + 直播播放域名 + + :param play_domain: The play_domain of this ModifyPullSourcesConfig. + :type play_domain: str + """ + self._play_domain = play_domain + + @property + def source_type(self): + """Gets the source_type of this ModifyPullSourcesConfig. + + 回源方式。 包含如下取值: - domain: 回源客户源站,源站地址是域名格式。回源域名,可配置多个,如果回源失败,将按照配置顺序进行轮循。 - ipaddr: 回源客户源站,源站地址是IP格式。回源IP,可配置多个,如果回源失败,将按照配置顺序进行轮循。同时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl字段填该域名,否则按当前IP作为HOST。 - huawei: 回源华为源站,域名创建后的默认值。 + + :return: The source_type of this ModifyPullSourcesConfig. + :rtype: str + """ + return self._source_type + + @source_type.setter + def source_type(self, source_type): + """Sets the source_type of this ModifyPullSourcesConfig. + + 回源方式。 包含如下取值: - domain: 回源客户源站,源站地址是域名格式。回源域名,可配置多个,如果回源失败,将按照配置顺序进行轮循。 - ipaddr: 回源客户源站,源站地址是IP格式。回源IP,可配置多个,如果回源失败,将按照配置顺序进行轮循。同时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl字段填该域名,否则按当前IP作为HOST。 - huawei: 回源华为源站,域名创建后的默认值。 + + :param source_type: The source_type of this ModifyPullSourcesConfig. + :type source_type: str + """ + self._source_type = source_type + + @property + def sources(self): + """Gets the sources of this ModifyPullSourcesConfig. + + 回源域名列表,最多可配置10个。 - 当回源方式是“domain”时,此参数必选,域名配置多个时,如果回源失败,将按照配置顺序进行轮循。 - 当回源方式是“ipaddr”时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl 字段填该域名,否则按当前IP作为HOST。 + + :return: The sources of this ModifyPullSourcesConfig. + :rtype: list[str] + """ + return self._sources + + @sources.setter + def sources(self, sources): + """Sets the sources of this ModifyPullSourcesConfig. + + 回源域名列表,最多可配置10个。 - 当回源方式是“domain”时,此参数必选,域名配置多个时,如果回源失败,将按照配置顺序进行轮循。 - 当回源方式是“ipaddr”时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl 字段填该域名,否则按当前IP作为HOST。 + + :param sources: The sources of this ModifyPullSourcesConfig. + :type sources: list[str] + """ + self._sources = sources + + @property + def sources_ip(self): + """Gets the sources_ip of this ModifyPullSourcesConfig. + + 回源IP地址列表,最多可配置10个。当回源方式是“ipaddr”时,此参数必选,IP配置多个时,如果回源失败,将按照配置顺序进行轮循。 + + :return: The sources_ip of this ModifyPullSourcesConfig. + :rtype: list[str] + """ + return self._sources_ip + + @sources_ip.setter + def sources_ip(self, sources_ip): + """Sets the sources_ip of this ModifyPullSourcesConfig. + + 回源IP地址列表,最多可配置10个。当回源方式是“ipaddr”时,此参数必选,IP配置多个时,如果回源失败,将按照配置顺序进行轮循。 + + :param sources_ip: The sources_ip of this ModifyPullSourcesConfig. + :type sources_ip: list[str] + """ + self._sources_ip = sources_ip + + @property + def scheme(self): + """Gets the scheme of this ModifyPullSourcesConfig. + + 回源协议,回源方式非“huawei”时必选。 包含如下取值: - http - rtmp + + :return: The scheme of this ModifyPullSourcesConfig. + :rtype: str + """ + return self._scheme + + @scheme.setter + def scheme(self, scheme): + """Sets the scheme of this ModifyPullSourcesConfig. + + 回源协议,回源方式非“huawei”时必选。 包含如下取值: - http - rtmp + + :param scheme: The scheme of this ModifyPullSourcesConfig. + :type scheme: str + """ + self._scheme = scheme + + @property + def additional_args(self): + """Gets the additional_args of this ModifyPullSourcesConfig. + + 回源客户源站时在URL携带的参数。 + + :return: The additional_args of this ModifyPullSourcesConfig. + :rtype: dict(str, str) + """ + return self._additional_args + + @additional_args.setter + def additional_args(self, additional_args): + """Sets the additional_args of this ModifyPullSourcesConfig. + + 回源客户源站时在URL携带的参数。 + + :param additional_args: The additional_args of this ModifyPullSourcesConfig. + :type additional_args: dict(str, str) + """ + self._additional_args = additional_args + + 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, ModifyPullSourcesConfig): + 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-live/huaweicloudsdklive/v1/model/record_content_info_v2.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_content_info_v2.py index 7ea621cd51..405d67a1f5 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_content_info_v2.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_content_info_v2.py @@ -61,7 +61,7 @@ def __init__(self, publish_domain=None, file_name=None, app=None, stream=None, r :type stream: str :param record_format: 录制格式flv,hls,mp4 :type record_format: str - :param record_type: 录制类型,CONTINUOUS_RECORD,COMMAND_RECORD,PLAN_RECORD, ON_DEMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 - PLAN_RECORD:计划录制,在该规则类型配置后,推的流如果在计划录制的时间区间则触发录制。 - ON_DEMAND_RECORD:按需录制,在该规则类型配置后,录制系统收到推流后,需要调用租户提供的接口查询录制规则,并根据规则录制。 + :param record_type: 录制类型,CONTINUOUS_RECORD,COMMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 :type record_type: str :param obs_addr: :type obs_addr: :class:`huaweicloudsdklive.v1.RecordObsFileAddr` @@ -232,7 +232,7 @@ def record_format(self, record_format): def record_type(self): """Gets the record_type of this RecordContentInfoV2. - 录制类型,CONTINUOUS_RECORD,COMMAND_RECORD,PLAN_RECORD, ON_DEMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 - PLAN_RECORD:计划录制,在该规则类型配置后,推的流如果在计划录制的时间区间则触发录制。 - ON_DEMAND_RECORD:按需录制,在该规则类型配置后,录制系统收到推流后,需要调用租户提供的接口查询录制规则,并根据规则录制。 + 录制类型,CONTINUOUS_RECORD,COMMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 :return: The record_type of this RecordContentInfoV2. :rtype: str @@ -243,7 +243,7 @@ def record_type(self): def record_type(self, record_type): """Sets the record_type of this RecordContentInfoV2. - 录制类型,CONTINUOUS_RECORD,COMMAND_RECORD,PLAN_RECORD, ON_DEMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 - PLAN_RECORD:计划录制,在该规则类型配置后,推的流如果在计划录制的时间区间则触发录制。 - ON_DEMAND_RECORD:按需录制,在该规则类型配置后,录制系统收到推流后,需要调用租户提供的接口查询录制规则,并根据规则录制。 + 录制类型,CONTINUOUS_RECORD,COMMAND_RECORD。默认CONTINUOUS_RECORD。 - CONTINUOUS_RECORD:持续录制,在该规则类型配置后,只要有流到推送到录制系统,就触发录制。 - COMMAND_RECORD:命令录制,在该规则类型配置后,在流推送到录制系统后,租户需要通过命令控制该流的录制开始和结束。 :param record_type: The record_type of this RecordContentInfoV2. :type record_type: str diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_pull_sources_config_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_pull_sources_config_request.py new file mode 100644 index 0000000000..cb500e50c0 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_pull_sources_config_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPullSourcesConfigRequest: + + """ + 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 = { + 'play_domain': 'str' + } + + attribute_map = { + 'play_domain': 'play_domain' + } + + def __init__(self, play_domain=None): + """ShowPullSourcesConfigRequest + + The model defined in huaweicloud sdk + + :param play_domain: 播放域名 + :type play_domain: str + """ + + + + self._play_domain = None + self.discriminator = None + + self.play_domain = play_domain + + @property + def play_domain(self): + """Gets the play_domain of this ShowPullSourcesConfigRequest. + + 播放域名 + + :return: The play_domain of this ShowPullSourcesConfigRequest. + :rtype: str + """ + return self._play_domain + + @play_domain.setter + def play_domain(self, play_domain): + """Sets the play_domain of this ShowPullSourcesConfigRequest. + + 播放域名 + + :param play_domain: The play_domain of this ShowPullSourcesConfigRequest. + :type play_domain: str + """ + self._play_domain = play_domain + + 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, ShowPullSourcesConfigRequest): + 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-live/huaweicloudsdklive/v1/model/show_pull_sources_config_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_pull_sources_config_response.py new file mode 100644 index 0000000000..3d3e5ffccb --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_pull_sources_config_response.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPullSourcesConfigResponse(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 = { + 'play_domain': 'str', + 'source_type': 'str', + 'sources': 'list[str]', + 'sources_ip': 'list[str]', + 'scheme': 'str', + 'additional_args': 'dict(str, str)' + } + + attribute_map = { + 'play_domain': 'play_domain', + 'source_type': 'source_type', + 'sources': 'sources', + 'sources_ip': 'sources_ip', + 'scheme': 'scheme', + 'additional_args': 'additional_args' + } + + def __init__(self, play_domain=None, source_type=None, sources=None, sources_ip=None, scheme=None, additional_args=None): + """ShowPullSourcesConfigResponse + + The model defined in huaweicloud sdk + + :param play_domain: 播放域名 + :type play_domain: str + :param source_type: 回源方式。 - domain: 回源客户源站,源站地址是域名格式。回源域名,可配置多个,如果回源失败,将按照配置顺序进行轮循。 - ipaddr: 回源客户源站,源站地址是IP格式。回源IP,可配置多个,如果回源失败,将按照配置顺序进行轮循。同时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl字段填该域名,否则按当前IP作为HOST。 - huawei: 回源华为源站,域名创建后的默认值。 + :type source_type: str + :param sources: 回源域名列表,最多可配置10个。 - 当回源方式是“domain”时,此参数必选,域名配置多个时,如果回源失败,将按照配置顺序进行轮循。 - 当回源方式是“ipaddr”时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl 字段填该域名,否则按当前IP作为HOST。 + :type sources: list[str] + :param sources_ip: 回源IP地址列表,最多可配置10个。当回源方式是“ipaddr”时,此参数必选,IP配置多个时,如果回源失败,将按照配置顺序进行轮循。 + :type sources_ip: list[str] + :param scheme: 回源协议,回源方式非“huawei”时必选。 + :type scheme: str + :param additional_args: 回源客户源站时在URL携带的参数。 + :type additional_args: dict(str, str) + """ + + super(ShowPullSourcesConfigResponse, self).__init__() + + self._play_domain = None + self._source_type = None + self._sources = None + self._sources_ip = None + self._scheme = None + self._additional_args = None + self.discriminator = None + + if play_domain is not None: + self.play_domain = play_domain + if source_type is not None: + self.source_type = source_type + if sources is not None: + self.sources = sources + if sources_ip is not None: + self.sources_ip = sources_ip + if scheme is not None: + self.scheme = scheme + if additional_args is not None: + self.additional_args = additional_args + + @property + def play_domain(self): + """Gets the play_domain of this ShowPullSourcesConfigResponse. + + 播放域名 + + :return: The play_domain of this ShowPullSourcesConfigResponse. + :rtype: str + """ + return self._play_domain + + @play_domain.setter + def play_domain(self, play_domain): + """Sets the play_domain of this ShowPullSourcesConfigResponse. + + 播放域名 + + :param play_domain: The play_domain of this ShowPullSourcesConfigResponse. + :type play_domain: str + """ + self._play_domain = play_domain + + @property + def source_type(self): + """Gets the source_type of this ShowPullSourcesConfigResponse. + + 回源方式。 - domain: 回源客户源站,源站地址是域名格式。回源域名,可配置多个,如果回源失败,将按照配置顺序进行轮循。 - ipaddr: 回源客户源站,源站地址是IP格式。回源IP,可配置多个,如果回源失败,将按照配置顺序进行轮循。同时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl字段填该域名,否则按当前IP作为HOST。 - huawei: 回源华为源站,域名创建后的默认值。 + + :return: The source_type of this ShowPullSourcesConfigResponse. + :rtype: str + """ + return self._source_type + + @source_type.setter + def source_type(self, source_type): + """Sets the source_type of this ShowPullSourcesConfigResponse. + + 回源方式。 - domain: 回源客户源站,源站地址是域名格式。回源域名,可配置多个,如果回源失败,将按照配置顺序进行轮循。 - ipaddr: 回源客户源站,源站地址是IP格式。回源IP,可配置多个,如果回源失败,将按照配置顺序进行轮循。同时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl字段填该域名,否则按当前IP作为HOST。 - huawei: 回源华为源站,域名创建后的默认值。 + + :param source_type: The source_type of this ShowPullSourcesConfigResponse. + :type source_type: str + """ + self._source_type = source_type + + @property + def sources(self): + """Gets the sources of this ShowPullSourcesConfigResponse. + + 回源域名列表,最多可配置10个。 - 当回源方式是“domain”时,此参数必选,域名配置多个时,如果回源失败,将按照配置顺序进行轮循。 - 当回源方式是“ipaddr”时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl 字段填该域名,否则按当前IP作为HOST。 + + :return: The sources of this ShowPullSourcesConfigResponse. + :rtype: list[str] + """ + return self._sources + + @sources.setter + def sources(self, sources): + """Sets the sources of this ShowPullSourcesConfigResponse. + + 回源域名列表,最多可配置10个。 - 当回源方式是“domain”时,此参数必选,域名配置多个时,如果回源失败,将按照配置顺序进行轮循。 - 当回源方式是“ipaddr”时,最多可以配置一个回源域名,如果配置,回源时httpflv HOST头填该域名,RTMP tcurl 字段填该域名,否则按当前IP作为HOST。 + + :param sources: The sources of this ShowPullSourcesConfigResponse. + :type sources: list[str] + """ + self._sources = sources + + @property + def sources_ip(self): + """Gets the sources_ip of this ShowPullSourcesConfigResponse. + + 回源IP地址列表,最多可配置10个。当回源方式是“ipaddr”时,此参数必选,IP配置多个时,如果回源失败,将按照配置顺序进行轮循。 + + :return: The sources_ip of this ShowPullSourcesConfigResponse. + :rtype: list[str] + """ + return self._sources_ip + + @sources_ip.setter + def sources_ip(self, sources_ip): + """Sets the sources_ip of this ShowPullSourcesConfigResponse. + + 回源IP地址列表,最多可配置10个。当回源方式是“ipaddr”时,此参数必选,IP配置多个时,如果回源失败,将按照配置顺序进行轮循。 + + :param sources_ip: The sources_ip of this ShowPullSourcesConfigResponse. + :type sources_ip: list[str] + """ + self._sources_ip = sources_ip + + @property + def scheme(self): + """Gets the scheme of this ShowPullSourcesConfigResponse. + + 回源协议,回源方式非“huawei”时必选。 + + :return: The scheme of this ShowPullSourcesConfigResponse. + :rtype: str + """ + return self._scheme + + @scheme.setter + def scheme(self, scheme): + """Sets the scheme of this ShowPullSourcesConfigResponse. + + 回源协议,回源方式非“huawei”时必选。 + + :param scheme: The scheme of this ShowPullSourcesConfigResponse. + :type scheme: str + """ + self._scheme = scheme + + @property + def additional_args(self): + """Gets the additional_args of this ShowPullSourcesConfigResponse. + + 回源客户源站时在URL携带的参数。 + + :return: The additional_args of this ShowPullSourcesConfigResponse. + :rtype: dict(str, str) + """ + return self._additional_args + + @additional_args.setter + def additional_args(self, additional_args): + """Sets the additional_args of this ShowPullSourcesConfigResponse. + + 回源客户源站时在URL携带的参数。 + + :param additional_args: The additional_args of this ShowPullSourcesConfigResponse. + :type additional_args: dict(str, str) + """ + self._additional_args = additional_args + + 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, ShowPullSourcesConfigResponse): + 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-live/huaweicloudsdklive/v1/model/update_delay_config_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_delay_config_request.py new file mode 100644 index 0000000000..0f8ebe9238 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_delay_config_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateDelayConfigRequest: + + """ + 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': 'ModifyDelayConfig' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateDelayConfigRequest + + The model defined in huaweicloud sdk + + :param body: Body of the UpdateDelayConfigRequest + :type body: :class:`huaweicloudsdklive.v1.ModifyDelayConfig` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateDelayConfigRequest. + + :return: The body of this UpdateDelayConfigRequest. + :rtype: :class:`huaweicloudsdklive.v1.ModifyDelayConfig` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateDelayConfigRequest. + + :param body: The body of this UpdateDelayConfigRequest. + :type body: :class:`huaweicloudsdklive.v1.ModifyDelayConfig` + """ + 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, UpdateDelayConfigRequest): + 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-live/huaweicloudsdklive/v1/model/update_delay_config_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_delay_config_response.py new file mode 100644 index 0000000000..b426e448ba --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_delay_config_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 UpdateDelayConfigResponse(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): + """UpdateDelayConfigResponse + + The model defined in huaweicloud sdk + + """ + + super(UpdateDelayConfigResponse, 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, UpdateDelayConfigResponse): + 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-live/huaweicloudsdklive/v1/model/update_geo_blocking_config_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_geo_blocking_config_request.py new file mode 100644 index 0000000000..657d7c1188 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_geo_blocking_config_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateGeoBlockingConfigRequest: + + """ + 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 = { + 'play_domain': 'str', + 'body': 'GeoBlockingConfigInfo' + } + + attribute_map = { + 'play_domain': 'play_domain', + 'body': 'body' + } + + def __init__(self, play_domain=None, body=None): + """UpdateGeoBlockingConfigRequest + + The model defined in huaweicloud sdk + + :param play_domain: 播放域名 + :type play_domain: str + :param body: Body of the UpdateGeoBlockingConfigRequest + :type body: :class:`huaweicloudsdklive.v1.GeoBlockingConfigInfo` + """ + + + + self._play_domain = None + self._body = None + self.discriminator = None + + self.play_domain = play_domain + if body is not None: + self.body = body + + @property + def play_domain(self): + """Gets the play_domain of this UpdateGeoBlockingConfigRequest. + + 播放域名 + + :return: The play_domain of this UpdateGeoBlockingConfigRequest. + :rtype: str + """ + return self._play_domain + + @play_domain.setter + def play_domain(self, play_domain): + """Sets the play_domain of this UpdateGeoBlockingConfigRequest. + + 播放域名 + + :param play_domain: The play_domain of this UpdateGeoBlockingConfigRequest. + :type play_domain: str + """ + self._play_domain = play_domain + + @property + def body(self): + """Gets the body of this UpdateGeoBlockingConfigRequest. + + :return: The body of this UpdateGeoBlockingConfigRequest. + :rtype: :class:`huaweicloudsdklive.v1.GeoBlockingConfigInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateGeoBlockingConfigRequest. + + :param body: The body of this UpdateGeoBlockingConfigRequest. + :type body: :class:`huaweicloudsdklive.v1.GeoBlockingConfigInfo` + """ + 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, UpdateGeoBlockingConfigRequest): + 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-live/huaweicloudsdklive/v1/model/update_geo_blocking_config_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_geo_blocking_config_response.py new file mode 100644 index 0000000000..3888f13198 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_geo_blocking_config_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 UpdateGeoBlockingConfigResponse(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): + """UpdateGeoBlockingConfigResponse + + The model defined in huaweicloud sdk + + :param x_request_id: + :type x_request_id: str + """ + + super(UpdateGeoBlockingConfigResponse, 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 UpdateGeoBlockingConfigResponse. + + :return: The x_request_id of this UpdateGeoBlockingConfigResponse. + :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 UpdateGeoBlockingConfigResponse. + + :param x_request_id: The x_request_id of this UpdateGeoBlockingConfigResponse. + :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, UpdateGeoBlockingConfigResponse): + 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-live/huaweicloudsdklive/v1/model/update_ip_auth_list_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_ip_auth_list_request.py new file mode 100644 index 0000000000..80a4a0e040 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_ip_auth_list_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateIpAuthListRequest: + + """ + 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': 'IPAuthInfo' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateIpAuthListRequest + + The model defined in huaweicloud sdk + + :param body: Body of the UpdateIpAuthListRequest + :type body: :class:`huaweicloudsdklive.v1.IPAuthInfo` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateIpAuthListRequest. + + :return: The body of this UpdateIpAuthListRequest. + :rtype: :class:`huaweicloudsdklive.v1.IPAuthInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateIpAuthListRequest. + + :param body: The body of this UpdateIpAuthListRequest. + :type body: :class:`huaweicloudsdklive.v1.IPAuthInfo` + """ + 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, UpdateIpAuthListRequest): + 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-live/huaweicloudsdklive/v1/model/update_ip_auth_list_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_ip_auth_list_response.py new file mode 100644 index 0000000000..cc61e619fc --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_ip_auth_list_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 UpdateIpAuthListResponse(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): + """UpdateIpAuthListResponse + + The model defined in huaweicloud sdk + + :param x_request_id: + :type x_request_id: str + """ + + super(UpdateIpAuthListResponse, 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 UpdateIpAuthListResponse. + + :return: The x_request_id of this UpdateIpAuthListResponse. + :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 UpdateIpAuthListResponse. + + :param x_request_id: The x_request_id of this UpdateIpAuthListResponse. + :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, UpdateIpAuthListResponse): + 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-live/huaweicloudsdklive/v1/model/update_publish_template_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_publish_template_request.py new file mode 100644 index 0000000000..ed540dc5d2 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_publish_template_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePublishTemplateRequest: + + """ + 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 = { + 'domain': 'str', + 'body': 'CallbackUrl' + } + + attribute_map = { + 'domain': 'domain', + 'body': 'body' + } + + def __init__(self, domain=None, body=None): + """UpdatePublishTemplateRequest + + The model defined in huaweicloud sdk + + :param domain: 推流域名 + :type domain: str + :param body: Body of the UpdatePublishTemplateRequest + :type body: :class:`huaweicloudsdklive.v1.CallbackUrl` + """ + + + + self._domain = None + self._body = None + self.discriminator = None + + self.domain = domain + if body is not None: + self.body = body + + @property + def domain(self): + """Gets the domain of this UpdatePublishTemplateRequest. + + 推流域名 + + :return: The domain of this UpdatePublishTemplateRequest. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this UpdatePublishTemplateRequest. + + 推流域名 + + :param domain: The domain of this UpdatePublishTemplateRequest. + :type domain: str + """ + self._domain = domain + + @property + def body(self): + """Gets the body of this UpdatePublishTemplateRequest. + + :return: The body of this UpdatePublishTemplateRequest. + :rtype: :class:`huaweicloudsdklive.v1.CallbackUrl` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePublishTemplateRequest. + + :param body: The body of this UpdatePublishTemplateRequest. + :type body: :class:`huaweicloudsdklive.v1.CallbackUrl` + """ + 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, UpdatePublishTemplateRequest): + 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-live/huaweicloudsdklive/v1/model/update_publish_template_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_publish_template_response.py new file mode 100644 index 0000000000..12940da76e --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_publish_template_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 UpdatePublishTemplateResponse(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): + """UpdatePublishTemplateResponse + + The model defined in huaweicloud sdk + + """ + + super(UpdatePublishTemplateResponse, 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, UpdatePublishTemplateResponse): + 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-live/huaweicloudsdklive/v1/model/update_pull_sources_config_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_pull_sources_config_request.py new file mode 100644 index 0000000000..add8231c57 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_pull_sources_config_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePullSourcesConfigRequest: + + """ + 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': 'ModifyPullSourcesConfig' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdatePullSourcesConfigRequest + + The model defined in huaweicloud sdk + + :param body: Body of the UpdatePullSourcesConfigRequest + :type body: :class:`huaweicloudsdklive.v1.ModifyPullSourcesConfig` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdatePullSourcesConfigRequest. + + :return: The body of this UpdatePullSourcesConfigRequest. + :rtype: :class:`huaweicloudsdklive.v1.ModifyPullSourcesConfig` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePullSourcesConfigRequest. + + :param body: The body of this UpdatePullSourcesConfigRequest. + :type body: :class:`huaweicloudsdklive.v1.ModifyPullSourcesConfig` + """ + 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, UpdatePullSourcesConfigRequest): + 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-live/huaweicloudsdklive/v1/model/update_pull_sources_config_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_pull_sources_config_response.py new file mode 100644 index 0000000000..591ce39c4f --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_pull_sources_config_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 UpdatePullSourcesConfigResponse(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): + """UpdatePullSourcesConfigResponse + + The model defined in huaweicloud sdk + + """ + + super(UpdatePullSourcesConfigResponse, 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, UpdatePullSourcesConfigResponse): + 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-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index db9b51532e..b4d6c308c5 100644 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/__init__.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/__init__.py index a25c10c9c3..c85d8a6569 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/__init__.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/__init__.py @@ -36,6 +36,8 @@ from huaweicloudsdklts.v2.model.create_access_config_request import CreateAccessConfigRequest from huaweicloudsdklts.v2.model.create_access_config_request_body import CreateAccessConfigRequestBody from huaweicloudsdklts.v2.model.create_access_config_response import CreateAccessConfigResponse +from huaweicloudsdklts.v2.model.create_agency_access_request import CreateAgencyAccessRequest +from huaweicloudsdklts.v2.model.create_agency_access_response import CreateAgencyAccessResponse from huaweicloudsdklts.v2.model.create_aom_mapping_rules_request import CreateAomMappingRulesRequest from huaweicloudsdklts.v2.model.create_aom_mapping_rules_response import CreateAomMappingRulesResponse from huaweicloudsdklts.v2.model.create_dash_board_req_body import CreateDashBoardReqBody @@ -65,6 +67,7 @@ from huaweicloudsdklts.v2.model.create_search_criterias_body import CreateSearchCriteriasBody from huaweicloudsdklts.v2.model.create_search_criterias_request import CreateSearchCriteriasRequest from huaweicloudsdklts.v2.model.create_search_criterias_response import CreateSearchCriteriasResponse +from huaweicloudsdklts.v2.model.create_sql_alarm_rule_frequency import CreateSqlAlarmRuleFrequency from huaweicloudsdklts.v2.model.create_sql_alarm_rule_request import CreateSqlAlarmRuleRequest from huaweicloudsdklts.v2.model.create_sql_alarm_rule_request_body import CreateSqlAlarmRuleRequestBody from huaweicloudsdklts.v2.model.create_sql_alarm_rule_response import CreateSqlAlarmRuleResponse @@ -131,6 +134,7 @@ from huaweicloudsdklts.v2.model.events import Events from huaweicloudsdklts.v2.model.field_model import FieldModel from huaweicloudsdklts.v2.model.frequency import Frequency +from huaweicloudsdklts.v2.model.frequency_resp_body import FrequencyRespBody from huaweicloudsdklts.v2.model.get_access_config_list_request_body import GetAccessConfigListRequestBody from huaweicloudsdklts.v2.model.get_host_group_info import GetHostGroupInfo from huaweicloudsdklts.v2.model.get_host_group_list_filter import GetHostGroupListFilter @@ -143,6 +147,8 @@ from huaweicloudsdklts.v2.model.host_group_tag import HostGroupTag from huaweicloudsdklts.v2.model.keywords_alarm_rule_resp_list import KeywordsAlarmRuleRespList from huaweicloudsdklts.v2.model.keywords_request import KeywordsRequest +from huaweicloudsdklts.v2.model.keywords_res_body import KeywordsResBody +from huaweicloudsdklts.v2.model.lts_access_config_info_respon200 import LTSAccessConfigInfoRespon200 from huaweicloudsdklts.v2.model.list_access_config_request import ListAccessConfigRequest from huaweicloudsdklts.v2.model.list_access_config_response import ListAccessConfigResponse from huaweicloudsdklts.v2.model.list_active_or_history_alarms_request import ListActiveOrHistoryAlarmsRequest @@ -206,6 +212,8 @@ from huaweicloudsdklts.v2.model.metadata import Metadata from huaweicloudsdklts.v2.model.notification_template import NotificationTemplate from huaweicloudsdklts.v2.model.page_info import PageInfo +from huaweicloudsdklts.v2.model.preview_agency_log_access_req_body import PreviewAgencyLogAccessReqBody +from huaweicloudsdklts.v2.model.preview_agency_log_access_req_list_body import PreviewAgencyLogAccessReqListBody from huaweicloudsdklts.v2.model.preview_template_body import PreviewTemplateBody from huaweicloudsdklts.v2.model.quert_history_sql_results_body import QuertHistorySQLResultsBody from huaweicloudsdklts.v2.model.query_log_key_word_count_request_body import QueryLogKeyWordCountRequestBody diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_async_client.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_async_client.py index 79eb4cc625..b1b8acd4fa 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_async_client.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_async_client.py @@ -97,6 +97,71 @@ def _create_access_config_http_info(self, request): return http_info + def create_agency_access_async(self, request): + """新建跨账号日志接入 + + 新建跨账号日志接入 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateAgencyAccess + :type request: :class:`huaweicloudsdklts.v2.CreateAgencyAccessRequest` + :rtype: :class:`huaweicloudsdklts.v2.CreateAgencyAccessResponse` + """ + http_info = self._create_agency_access_http_info(request) + return self._call_api(**http_info) + + def create_agency_access_async_invoker(self, request): + http_info = self._create_agency_access_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_agency_access_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2.0/{project_id}/lts/createAgencyAccess", + "request_type": request.__class__.__name__, + "response_type": "CreateAgencyAccessResponse" + } + + 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 = {} + + 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;charset=UTF-8']) + + 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_dash_board_async(self, request): """创建仪表盘 diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_client.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_client.py index cd51645fb9..8a066518f0 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_client.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_client.py @@ -97,6 +97,71 @@ def _create_access_config_http_info(cls, request): return http_info + def create_agency_access(self, request): + """新建跨账号日志接入 + + 新建跨账号日志接入 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateAgencyAccess + :type request: :class:`huaweicloudsdklts.v2.CreateAgencyAccessRequest` + :rtype: :class:`huaweicloudsdklts.v2.CreateAgencyAccessResponse` + """ + http_info = self._create_agency_access_http_info(request) + return self._call_api(**http_info) + + def create_agency_access_invoker(self, request): + http_info = self._create_agency_access_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_agency_access_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2.0/{project_id}/lts/createAgencyAccess", + "request_type": request.__class__.__name__, + "response_type": "CreateAgencyAccessResponse" + } + + 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 = {} + + 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;charset=UTF-8']) + + 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_dash_board(self, request): """创建仪表盘 diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/__init__.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/__init__.py index 5e0282813a..dbd3bd858b 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/__init__.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/__init__.py @@ -34,6 +34,8 @@ from huaweicloudsdklts.v2.model.create_access_config_request import CreateAccessConfigRequest from huaweicloudsdklts.v2.model.create_access_config_request_body import CreateAccessConfigRequestBody from huaweicloudsdklts.v2.model.create_access_config_response import CreateAccessConfigResponse +from huaweicloudsdklts.v2.model.create_agency_access_request import CreateAgencyAccessRequest +from huaweicloudsdklts.v2.model.create_agency_access_response import CreateAgencyAccessResponse from huaweicloudsdklts.v2.model.create_aom_mapping_rules_request import CreateAomMappingRulesRequest from huaweicloudsdklts.v2.model.create_aom_mapping_rules_response import CreateAomMappingRulesResponse from huaweicloudsdklts.v2.model.create_dash_board_req_body import CreateDashBoardReqBody @@ -63,6 +65,7 @@ from huaweicloudsdklts.v2.model.create_search_criterias_body import CreateSearchCriteriasBody from huaweicloudsdklts.v2.model.create_search_criterias_request import CreateSearchCriteriasRequest from huaweicloudsdklts.v2.model.create_search_criterias_response import CreateSearchCriteriasResponse +from huaweicloudsdklts.v2.model.create_sql_alarm_rule_frequency import CreateSqlAlarmRuleFrequency from huaweicloudsdklts.v2.model.create_sql_alarm_rule_request import CreateSqlAlarmRuleRequest from huaweicloudsdklts.v2.model.create_sql_alarm_rule_request_body import CreateSqlAlarmRuleRequestBody from huaweicloudsdklts.v2.model.create_sql_alarm_rule_response import CreateSqlAlarmRuleResponse @@ -129,6 +132,7 @@ from huaweicloudsdklts.v2.model.events import Events from huaweicloudsdklts.v2.model.field_model import FieldModel from huaweicloudsdklts.v2.model.frequency import Frequency +from huaweicloudsdklts.v2.model.frequency_resp_body import FrequencyRespBody from huaweicloudsdklts.v2.model.get_access_config_list_request_body import GetAccessConfigListRequestBody from huaweicloudsdklts.v2.model.get_host_group_info import GetHostGroupInfo from huaweicloudsdklts.v2.model.get_host_group_list_filter import GetHostGroupListFilter @@ -141,6 +145,8 @@ from huaweicloudsdklts.v2.model.host_group_tag import HostGroupTag from huaweicloudsdklts.v2.model.keywords_alarm_rule_resp_list import KeywordsAlarmRuleRespList from huaweicloudsdklts.v2.model.keywords_request import KeywordsRequest +from huaweicloudsdklts.v2.model.keywords_res_body import KeywordsResBody +from huaweicloudsdklts.v2.model.lts_access_config_info_respon200 import LTSAccessConfigInfoRespon200 from huaweicloudsdklts.v2.model.list_access_config_request import ListAccessConfigRequest from huaweicloudsdklts.v2.model.list_access_config_response import ListAccessConfigResponse from huaweicloudsdklts.v2.model.list_active_or_history_alarms_request import ListActiveOrHistoryAlarmsRequest @@ -204,6 +210,8 @@ from huaweicloudsdklts.v2.model.metadata import Metadata from huaweicloudsdklts.v2.model.notification_template import NotificationTemplate from huaweicloudsdklts.v2.model.page_info import PageInfo +from huaweicloudsdklts.v2.model.preview_agency_log_access_req_body import PreviewAgencyLogAccessReqBody +from huaweicloudsdklts.v2.model.preview_agency_log_access_req_list_body import PreviewAgencyLogAccessReqListBody from huaweicloudsdklts.v2.model.preview_template_body import PreviewTemplateBody from huaweicloudsdklts.v2.model.quert_history_sql_results_body import QuertHistorySQLResultsBody from huaweicloudsdklts.v2.model.query_log_key_word_count_request_body import QueryLogKeyWordCountRequestBody diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_agency_access_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_agency_access_request.py new file mode 100644 index 0000000000..db60263681 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_agency_access_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAgencyAccessRequest: + + """ + 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': 'PreviewAgencyLogAccessReqListBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateAgencyAccessRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateAgencyAccessRequest + :type body: :class:`huaweicloudsdklts.v2.PreviewAgencyLogAccessReqListBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateAgencyAccessRequest. + + :return: The body of this CreateAgencyAccessRequest. + :rtype: :class:`huaweicloudsdklts.v2.PreviewAgencyLogAccessReqListBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAgencyAccessRequest. + + :param body: The body of this CreateAgencyAccessRequest. + :type body: :class:`huaweicloudsdklts.v2.PreviewAgencyLogAccessReqListBody` + """ + 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, CreateAgencyAccessRequest): + 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-lts/huaweicloudsdklts/v2/model/create_agency_access_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_agency_access_response.py new file mode 100644 index 0000000000..fc784c1b99 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_agency_access_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 CreateAgencyAccessResponse(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': 'list[LTSAccessConfigInfoRespon200]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateAgencyAccessResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: list[:class:`huaweicloudsdklts.v2.LTSAccessConfigInfoRespon200`] + """ + + super(CreateAgencyAccessResponse, 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 CreateAgencyAccessResponse. + + :return: The body of this CreateAgencyAccessResponse. + :rtype: list[:class:`huaweicloudsdklts.v2.LTSAccessConfigInfoRespon200`] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAgencyAccessResponse. + + :param body: The body of this CreateAgencyAccessResponse. + :type body: list[:class:`huaweicloudsdklts.v2.LTSAccessConfigInfoRespon200`] + """ + 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, CreateAgencyAccessResponse): + 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-lts/huaweicloudsdklts/v2/model/create_keywords_alarm_rule_request_body.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_keywords_alarm_rule_request_body.py index f4a3a83af8..b5bcc2dfef 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_keywords_alarm_rule_request_body.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_keywords_alarm_rule_request_body.py @@ -28,7 +28,9 @@ class CreateKeywordsAlarmRuleRequestBody: 'trigger_condition_count': 'int', 'trigger_condition_frequency': 'int', 'whether_recovery_policy': 'bool', - 'recovery_policy': 'int' + 'recovery_policy': 'int', + 'notification_frequency': 'int', + 'alarm_action_rule_name': 'str' } attribute_map = { @@ -43,15 +45,17 @@ class CreateKeywordsAlarmRuleRequestBody: 'trigger_condition_count': 'trigger_condition_count', 'trigger_condition_frequency': 'trigger_condition_frequency', 'whether_recovery_policy': 'whether_recovery_policy', - 'recovery_policy': 'recovery_policy' + 'recovery_policy': 'recovery_policy', + 'notification_frequency': 'notification_frequency', + 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, keywords_alarm_rule_name=None, keywords_alarm_rule_description=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None): + def __init__(self, keywords_alarm_rule_name=None, keywords_alarm_rule_description=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None, notification_frequency=None, alarm_action_rule_name=None): """CreateKeywordsAlarmRuleRequestBody The model defined in huaweicloud sdk - :param keywords_alarm_rule_name: 关键词告警名称 + :param keywords_alarm_rule_name: 关键词告警名称 >不能以点和下划线开头或以点结尾。 :type keywords_alarm_rule_name: str :param keywords_alarm_rule_description: 关键词告警信息描述 :type keywords_alarm_rule_description: str @@ -75,6 +79,10 @@ def __init__(self, keywords_alarm_rule_name=None, keywords_alarm_rule_descriptio :type whether_recovery_policy: bool :param recovery_policy: 恢复策略周期;默认为3 :type recovery_policy: int + :param notification_frequency: 通知频率,单位(分钟) + :type notification_frequency: int + :param alarm_action_rule_name: 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + :type alarm_action_rule_name: str """ @@ -91,6 +99,8 @@ def __init__(self, keywords_alarm_rule_name=None, keywords_alarm_rule_descriptio self._trigger_condition_frequency = None self._whether_recovery_policy = None self._recovery_policy = None + self._notification_frequency = None + self._alarm_action_rule_name = None self.discriminator = None self.keywords_alarm_rule_name = keywords_alarm_rule_name @@ -111,12 +121,15 @@ def __init__(self, keywords_alarm_rule_name=None, keywords_alarm_rule_descriptio self.whether_recovery_policy = whether_recovery_policy if recovery_policy is not None: self.recovery_policy = recovery_policy + self.notification_frequency = notification_frequency + if alarm_action_rule_name is not None: + self.alarm_action_rule_name = alarm_action_rule_name @property def keywords_alarm_rule_name(self): """Gets the keywords_alarm_rule_name of this CreateKeywordsAlarmRuleRequestBody. - 关键词告警名称 + 关键词告警名称 >不能以点和下划线开头或以点结尾。 :return: The keywords_alarm_rule_name of this CreateKeywordsAlarmRuleRequestBody. :rtype: str @@ -127,7 +140,7 @@ def keywords_alarm_rule_name(self): def keywords_alarm_rule_name(self, keywords_alarm_rule_name): """Sets the keywords_alarm_rule_name of this CreateKeywordsAlarmRuleRequestBody. - 关键词告警名称 + 关键词告警名称 >不能以点和下划线开头或以点结尾。 :param keywords_alarm_rule_name: The keywords_alarm_rule_name of this CreateKeywordsAlarmRuleRequestBody. :type keywords_alarm_rule_name: str @@ -368,6 +381,50 @@ def recovery_policy(self, recovery_policy): """ self._recovery_policy = recovery_policy + @property + def notification_frequency(self): + """Gets the notification_frequency of this CreateKeywordsAlarmRuleRequestBody. + + 通知频率,单位(分钟) + + :return: The notification_frequency of this CreateKeywordsAlarmRuleRequestBody. + :rtype: int + """ + return self._notification_frequency + + @notification_frequency.setter + def notification_frequency(self, notification_frequency): + """Sets the notification_frequency of this CreateKeywordsAlarmRuleRequestBody. + + 通知频率,单位(分钟) + + :param notification_frequency: The notification_frequency of this CreateKeywordsAlarmRuleRequestBody. + :type notification_frequency: int + """ + self._notification_frequency = notification_frequency + + @property + def alarm_action_rule_name(self): + """Gets the alarm_action_rule_name of this CreateKeywordsAlarmRuleRequestBody. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :return: The alarm_action_rule_name of this CreateKeywordsAlarmRuleRequestBody. + :rtype: str + """ + return self._alarm_action_rule_name + + @alarm_action_rule_name.setter + def alarm_action_rule_name(self, alarm_action_rule_name): + """Sets the alarm_action_rule_name of this CreateKeywordsAlarmRuleRequestBody. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :param alarm_action_rule_name: The alarm_action_rule_name of this CreateKeywordsAlarmRuleRequestBody. + :type alarm_action_rule_name: str + """ + self._alarm_action_rule_name = alarm_action_rule_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_sql_alarm_rule_frequency.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_sql_alarm_rule_frequency.py new file mode 100644 index 0000000000..6c0b664377 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_sql_alarm_rule_frequency.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSqlAlarmRuleFrequency: + + """ + 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', + 'cron_expr': 'str', + 'hour_of_day': 'int', + 'day_of_week': 'int', + 'fixed_rate': 'int', + 'fixed_rate_unit': 'str' + } + + attribute_map = { + 'type': 'type', + 'cron_expr': 'cron_expr', + 'hour_of_day': 'hour_of_day', + 'day_of_week': 'day_of_week', + 'fixed_rate': 'fixed_rate', + 'fixed_rate_unit': 'fixed_rate_unit' + } + + def __init__(self, type=None, cron_expr=None, hour_of_day=None, day_of_week=None, fixed_rate=None, fixed_rate_unit=None): + """CreateSqlAlarmRuleFrequency + + The model defined in huaweicloud sdk + + :param type: 时间类型。 + :type type: str + :param cron_expr: 当字段type为\"CRON\"时取该字段。 + :type cron_expr: str + :param hour_of_day: 当字段type为\"DAILY\"或者\"WEEKLY\"时取该字段。 DAILY:最小值:0,最大值:23 WEEKLY:最小值:0,最大值:23 + :type hour_of_day: int + :param day_of_week: 当字段type为\"WEEKLY\"时取该字段(周日~周六)。 + :type day_of_week: int + :param fixed_rate: 当字段type为\"FIXED_RATE\"时取该字段(当fixed_rate_unit单位为minute,最大值60;当fixed_rate_unit单位为hour,最大值24)。 + :type fixed_rate: int + :param fixed_rate_unit: 时间单位。 + :type fixed_rate_unit: str + """ + + + + self._type = None + self._cron_expr = None + self._hour_of_day = None + self._day_of_week = None + self._fixed_rate = None + self._fixed_rate_unit = None + self.discriminator = None + + self.type = type + if cron_expr is not None: + self.cron_expr = cron_expr + if hour_of_day is not None: + self.hour_of_day = hour_of_day + if day_of_week is not None: + self.day_of_week = day_of_week + if fixed_rate is not None: + self.fixed_rate = fixed_rate + if fixed_rate_unit is not None: + self.fixed_rate_unit = fixed_rate_unit + + @property + def type(self): + """Gets the type of this CreateSqlAlarmRuleFrequency. + + 时间类型。 + + :return: The type of this CreateSqlAlarmRuleFrequency. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateSqlAlarmRuleFrequency. + + 时间类型。 + + :param type: The type of this CreateSqlAlarmRuleFrequency. + :type type: str + """ + self._type = type + + @property + def cron_expr(self): + """Gets the cron_expr of this CreateSqlAlarmRuleFrequency. + + 当字段type为\"CRON\"时取该字段。 + + :return: The cron_expr of this CreateSqlAlarmRuleFrequency. + :rtype: str + """ + return self._cron_expr + + @cron_expr.setter + def cron_expr(self, cron_expr): + """Sets the cron_expr of this CreateSqlAlarmRuleFrequency. + + 当字段type为\"CRON\"时取该字段。 + + :param cron_expr: The cron_expr of this CreateSqlAlarmRuleFrequency. + :type cron_expr: str + """ + self._cron_expr = cron_expr + + @property + def hour_of_day(self): + """Gets the hour_of_day of this CreateSqlAlarmRuleFrequency. + + 当字段type为\"DAILY\"或者\"WEEKLY\"时取该字段。 DAILY:最小值:0,最大值:23 WEEKLY:最小值:0,最大值:23 + + :return: The hour_of_day of this CreateSqlAlarmRuleFrequency. + :rtype: int + """ + return self._hour_of_day + + @hour_of_day.setter + def hour_of_day(self, hour_of_day): + """Sets the hour_of_day of this CreateSqlAlarmRuleFrequency. + + 当字段type为\"DAILY\"或者\"WEEKLY\"时取该字段。 DAILY:最小值:0,最大值:23 WEEKLY:最小值:0,最大值:23 + + :param hour_of_day: The hour_of_day of this CreateSqlAlarmRuleFrequency. + :type hour_of_day: int + """ + self._hour_of_day = hour_of_day + + @property + def day_of_week(self): + """Gets the day_of_week of this CreateSqlAlarmRuleFrequency. + + 当字段type为\"WEEKLY\"时取该字段(周日~周六)。 + + :return: The day_of_week of this CreateSqlAlarmRuleFrequency. + :rtype: int + """ + return self._day_of_week + + @day_of_week.setter + def day_of_week(self, day_of_week): + """Sets the day_of_week of this CreateSqlAlarmRuleFrequency. + + 当字段type为\"WEEKLY\"时取该字段(周日~周六)。 + + :param day_of_week: The day_of_week of this CreateSqlAlarmRuleFrequency. + :type day_of_week: int + """ + self._day_of_week = day_of_week + + @property + def fixed_rate(self): + """Gets the fixed_rate of this CreateSqlAlarmRuleFrequency. + + 当字段type为\"FIXED_RATE\"时取该字段(当fixed_rate_unit单位为minute,最大值60;当fixed_rate_unit单位为hour,最大值24)。 + + :return: The fixed_rate of this CreateSqlAlarmRuleFrequency. + :rtype: int + """ + return self._fixed_rate + + @fixed_rate.setter + def fixed_rate(self, fixed_rate): + """Sets the fixed_rate of this CreateSqlAlarmRuleFrequency. + + 当字段type为\"FIXED_RATE\"时取该字段(当fixed_rate_unit单位为minute,最大值60;当fixed_rate_unit单位为hour,最大值24)。 + + :param fixed_rate: The fixed_rate of this CreateSqlAlarmRuleFrequency. + :type fixed_rate: int + """ + self._fixed_rate = fixed_rate + + @property + def fixed_rate_unit(self): + """Gets the fixed_rate_unit of this CreateSqlAlarmRuleFrequency. + + 时间单位。 + + :return: The fixed_rate_unit of this CreateSqlAlarmRuleFrequency. + :rtype: str + """ + return self._fixed_rate_unit + + @fixed_rate_unit.setter + def fixed_rate_unit(self, fixed_rate_unit): + """Sets the fixed_rate_unit of this CreateSqlAlarmRuleFrequency. + + 时间单位。 + + :param fixed_rate_unit: The fixed_rate_unit of this CreateSqlAlarmRuleFrequency. + :type fixed_rate_unit: str + """ + self._fixed_rate_unit = fixed_rate_unit + + 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, CreateSqlAlarmRuleFrequency): + 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-lts/huaweicloudsdklts/v2/model/create_sql_alarm_rule_request_body.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_sql_alarm_rule_request_body.py index 5b23279ccd..50c9046f41 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_sql_alarm_rule_request_body.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_sql_alarm_rule_request_body.py @@ -18,9 +18,10 @@ class CreateSqlAlarmRuleRequestBody: openapi_types = { 'sql_alarm_rule_name': 'str', + 'is_css_sql': 'bool', 'sql_alarm_rule_description': 'str', 'sql_requests': 'list[SqlRequest]', - 'frequency': 'Frequency', + 'frequency': 'CreateSqlAlarmRuleFrequency', 'condition_expression': 'str', 'sql_alarm_level': 'str', 'sql_alarm_send': 'bool', @@ -29,11 +30,14 @@ class CreateSqlAlarmRuleRequestBody: 'trigger_condition_count': 'int', 'trigger_condition_frequency': 'int', 'whether_recovery_policy': 'bool', - 'recovery_policy': 'int' + 'recovery_policy': 'int', + 'notification_frequency': 'int', + 'alarm_action_rule_name': 'str' } attribute_map = { 'sql_alarm_rule_name': 'sql_alarm_rule_name', + 'is_css_sql': 'is_css_sql', 'sql_alarm_rule_description': 'sql_alarm_rule_description', 'sql_requests': 'sql_requests', 'frequency': 'frequency', @@ -45,22 +49,26 @@ class CreateSqlAlarmRuleRequestBody: 'trigger_condition_count': 'trigger_condition_count', 'trigger_condition_frequency': 'trigger_condition_frequency', 'whether_recovery_policy': 'whether_recovery_policy', - 'recovery_policy': 'recovery_policy' + 'recovery_policy': 'recovery_policy', + 'notification_frequency': 'notification_frequency', + 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, sql_alarm_rule_name=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, sql_alarm_level=None, sql_alarm_send=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None): + def __init__(self, sql_alarm_rule_name=None, is_css_sql=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, sql_alarm_level=None, sql_alarm_send=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None, notification_frequency=None, alarm_action_rule_name=None): """CreateSqlAlarmRuleRequestBody The model defined in huaweicloud sdk :param sql_alarm_rule_name: SQL告警名称 :type sql_alarm_rule_name: str + :param is_css_sql: 是否管道符sql查询 + :type is_css_sql: bool :param sql_alarm_rule_description: SQL告警信息描述 :type sql_alarm_rule_description: str :param sql_requests: SQL详细信息 :type sql_requests: list[:class:`huaweicloudsdklts.v2.SqlRequest`] :param frequency: - :type frequency: :class:`huaweicloudsdklts.v2.Frequency` + :type frequency: :class:`huaweicloudsdklts.v2.CreateSqlAlarmRuleFrequency` :param condition_expression: 条件表达式 :type condition_expression: str :param sql_alarm_level: 告警级别 @@ -79,11 +87,16 @@ def __init__(self, sql_alarm_rule_name=None, sql_alarm_rule_description=None, sq :type whether_recovery_policy: bool :param recovery_policy: 恢复策略周期;默认为3 :type recovery_policy: int + :param notification_frequency: 通知频率,单位(分钟) + :type notification_frequency: int + :param alarm_action_rule_name: 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + :type alarm_action_rule_name: str """ self._sql_alarm_rule_name = None + self._is_css_sql = None self._sql_alarm_rule_description = None self._sql_requests = None self._frequency = None @@ -96,9 +109,13 @@ def __init__(self, sql_alarm_rule_name=None, sql_alarm_rule_description=None, sq self._trigger_condition_frequency = None self._whether_recovery_policy = None self._recovery_policy = None + self._notification_frequency = None + self._alarm_action_rule_name = None self.discriminator = None self.sql_alarm_rule_name = sql_alarm_rule_name + if is_css_sql is not None: + self.is_css_sql = is_css_sql if sql_alarm_rule_description is not None: self.sql_alarm_rule_description = sql_alarm_rule_description self.sql_requests = sql_requests @@ -117,6 +134,9 @@ def __init__(self, sql_alarm_rule_name=None, sql_alarm_rule_description=None, sq self.whether_recovery_policy = whether_recovery_policy if recovery_policy is not None: self.recovery_policy = recovery_policy + self.notification_frequency = notification_frequency + if alarm_action_rule_name is not None: + self.alarm_action_rule_name = alarm_action_rule_name @property def sql_alarm_rule_name(self): @@ -140,6 +160,28 @@ def sql_alarm_rule_name(self, sql_alarm_rule_name): """ self._sql_alarm_rule_name = sql_alarm_rule_name + @property + def is_css_sql(self): + """Gets the is_css_sql of this CreateSqlAlarmRuleRequestBody. + + 是否管道符sql查询 + + :return: The is_css_sql of this CreateSqlAlarmRuleRequestBody. + :rtype: bool + """ + return self._is_css_sql + + @is_css_sql.setter + def is_css_sql(self, is_css_sql): + """Sets the is_css_sql of this CreateSqlAlarmRuleRequestBody. + + 是否管道符sql查询 + + :param is_css_sql: The is_css_sql of this CreateSqlAlarmRuleRequestBody. + :type is_css_sql: bool + """ + self._is_css_sql = is_css_sql + @property def sql_alarm_rule_description(self): """Gets the sql_alarm_rule_description of this CreateSqlAlarmRuleRequestBody. @@ -189,7 +231,7 @@ def frequency(self): """Gets the frequency of this CreateSqlAlarmRuleRequestBody. :return: The frequency of this CreateSqlAlarmRuleRequestBody. - :rtype: :class:`huaweicloudsdklts.v2.Frequency` + :rtype: :class:`huaweicloudsdklts.v2.CreateSqlAlarmRuleFrequency` """ return self._frequency @@ -198,7 +240,7 @@ def frequency(self, frequency): """Sets the frequency of this CreateSqlAlarmRuleRequestBody. :param frequency: The frequency of this CreateSqlAlarmRuleRequestBody. - :type frequency: :class:`huaweicloudsdklts.v2.Frequency` + :type frequency: :class:`huaweicloudsdklts.v2.CreateSqlAlarmRuleFrequency` """ self._frequency = frequency @@ -396,6 +438,50 @@ def recovery_policy(self, recovery_policy): """ self._recovery_policy = recovery_policy + @property + def notification_frequency(self): + """Gets the notification_frequency of this CreateSqlAlarmRuleRequestBody. + + 通知频率,单位(分钟) + + :return: The notification_frequency of this CreateSqlAlarmRuleRequestBody. + :rtype: int + """ + return self._notification_frequency + + @notification_frequency.setter + def notification_frequency(self, notification_frequency): + """Sets the notification_frequency of this CreateSqlAlarmRuleRequestBody. + + 通知频率,单位(分钟) + + :param notification_frequency: The notification_frequency of this CreateSqlAlarmRuleRequestBody. + :type notification_frequency: int + """ + self._notification_frequency = notification_frequency + + @property + def alarm_action_rule_name(self): + """Gets the alarm_action_rule_name of this CreateSqlAlarmRuleRequestBody. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :return: The alarm_action_rule_name of this CreateSqlAlarmRuleRequestBody. + :rtype: str + """ + return self._alarm_action_rule_name + + @alarm_action_rule_name.setter + def alarm_action_rule_name(self, alarm_action_rule_name): + """Sets the alarm_action_rule_name of this CreateSqlAlarmRuleRequestBody. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :param alarm_action_rule_name: The alarm_action_rule_name of this CreateSqlAlarmRuleRequestBody. + :type alarm_action_rule_name: str + """ + self._alarm_action_rule_name = alarm_action_rule_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/frequency_resp_body.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/frequency_resp_body.py new file mode 100644 index 0000000000..1454e38544 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/frequency_resp_body.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FrequencyRespBody: + + """ + 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', + 'cron_expr': 'str', + 'hour_of_day': 'int', + 'day_of_week': 'int', + 'fixed_rate': 'int', + 'fixed_rate_unit': 'str' + } + + attribute_map = { + 'type': 'type', + 'cron_expr': 'cron_expr', + 'hour_of_day': 'hour_of_day', + 'day_of_week': 'day_of_week', + 'fixed_rate': 'fixed_rate', + 'fixed_rate_unit': 'fixed_rate_unit' + } + + def __init__(self, type=None, cron_expr=None, hour_of_day=None, day_of_week=None, fixed_rate=None, fixed_rate_unit=None): + """FrequencyRespBody + + The model defined in huaweicloud sdk + + :param type: 时间类型。 + :type type: str + :param cron_expr: 当字段type为\"CRON\"时取该字段。 + :type cron_expr: str + :param hour_of_day: 当字段type为\"DAILY\"或者\"WEEKLY\"时取该字段。 + :type hour_of_day: int + :param day_of_week: 当字段type为\"WEEKLY\"时取该字段(周日~周六)。 + :type day_of_week: int + :param fixed_rate: 当字段type为\"FIXED_RATE\"时取该字段(当fixed_rate_unit单位为minute,最大值60;当fixed_rate_unit单位为hour,最大值24)。 + :type fixed_rate: int + :param fixed_rate_unit: 时间单位枚举值: + :type fixed_rate_unit: str + """ + + + + self._type = None + self._cron_expr = None + self._hour_of_day = None + self._day_of_week = None + self._fixed_rate = None + self._fixed_rate_unit = None + self.discriminator = None + + if type is not None: + self.type = type + if cron_expr is not None: + self.cron_expr = cron_expr + if hour_of_day is not None: + self.hour_of_day = hour_of_day + if day_of_week is not None: + self.day_of_week = day_of_week + if fixed_rate is not None: + self.fixed_rate = fixed_rate + if fixed_rate_unit is not None: + self.fixed_rate_unit = fixed_rate_unit + + @property + def type(self): + """Gets the type of this FrequencyRespBody. + + 时间类型。 + + :return: The type of this FrequencyRespBody. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this FrequencyRespBody. + + 时间类型。 + + :param type: The type of this FrequencyRespBody. + :type type: str + """ + self._type = type + + @property + def cron_expr(self): + """Gets the cron_expr of this FrequencyRespBody. + + 当字段type为\"CRON\"时取该字段。 + + :return: The cron_expr of this FrequencyRespBody. + :rtype: str + """ + return self._cron_expr + + @cron_expr.setter + def cron_expr(self, cron_expr): + """Sets the cron_expr of this FrequencyRespBody. + + 当字段type为\"CRON\"时取该字段。 + + :param cron_expr: The cron_expr of this FrequencyRespBody. + :type cron_expr: str + """ + self._cron_expr = cron_expr + + @property + def hour_of_day(self): + """Gets the hour_of_day of this FrequencyRespBody. + + 当字段type为\"DAILY\"或者\"WEEKLY\"时取该字段。 + + :return: The hour_of_day of this FrequencyRespBody. + :rtype: int + """ + return self._hour_of_day + + @hour_of_day.setter + def hour_of_day(self, hour_of_day): + """Sets the hour_of_day of this FrequencyRespBody. + + 当字段type为\"DAILY\"或者\"WEEKLY\"时取该字段。 + + :param hour_of_day: The hour_of_day of this FrequencyRespBody. + :type hour_of_day: int + """ + self._hour_of_day = hour_of_day + + @property + def day_of_week(self): + """Gets the day_of_week of this FrequencyRespBody. + + 当字段type为\"WEEKLY\"时取该字段(周日~周六)。 + + :return: The day_of_week of this FrequencyRespBody. + :rtype: int + """ + return self._day_of_week + + @day_of_week.setter + def day_of_week(self, day_of_week): + """Sets the day_of_week of this FrequencyRespBody. + + 当字段type为\"WEEKLY\"时取该字段(周日~周六)。 + + :param day_of_week: The day_of_week of this FrequencyRespBody. + :type day_of_week: int + """ + self._day_of_week = day_of_week + + @property + def fixed_rate(self): + """Gets the fixed_rate of this FrequencyRespBody. + + 当字段type为\"FIXED_RATE\"时取该字段(当fixed_rate_unit单位为minute,最大值60;当fixed_rate_unit单位为hour,最大值24)。 + + :return: The fixed_rate of this FrequencyRespBody. + :rtype: int + """ + return self._fixed_rate + + @fixed_rate.setter + def fixed_rate(self, fixed_rate): + """Sets the fixed_rate of this FrequencyRespBody. + + 当字段type为\"FIXED_RATE\"时取该字段(当fixed_rate_unit单位为minute,最大值60;当fixed_rate_unit单位为hour,最大值24)。 + + :param fixed_rate: The fixed_rate of this FrequencyRespBody. + :type fixed_rate: int + """ + self._fixed_rate = fixed_rate + + @property + def fixed_rate_unit(self): + """Gets the fixed_rate_unit of this FrequencyRespBody. + + 时间单位枚举值: + + :return: The fixed_rate_unit of this FrequencyRespBody. + :rtype: str + """ + return self._fixed_rate_unit + + @fixed_rate_unit.setter + def fixed_rate_unit(self, fixed_rate_unit): + """Sets the fixed_rate_unit of this FrequencyRespBody. + + 时间单位枚举值: + + :param fixed_rate_unit: The fixed_rate_unit of this FrequencyRespBody. + :type fixed_rate_unit: str + """ + self._fixed_rate_unit = fixed_rate_unit + + 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, FrequencyRespBody): + 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-lts/huaweicloudsdklts/v2/model/keywords_alarm_rule_resp_list.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/keywords_alarm_rule_resp_list.py index 826026cccd..0dd9d00faf 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/keywords_alarm_rule_resp_list.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/keywords_alarm_rule_resp_list.py @@ -35,7 +35,9 @@ class KeywordsAlarmRuleRespList: 'trigger_condition_count': 'int', 'trigger_condition_frequency': 'int', 'whether_recovery_policy': 'bool', - 'recovery_policy': 'int' + 'recovery_policy': 'int', + 'notification_frequency': 'int', + 'alarm_action_rule_name': 'str' } attribute_map = { @@ -57,10 +59,12 @@ class KeywordsAlarmRuleRespList: 'trigger_condition_count': 'trigger_condition_count', 'trigger_condition_frequency': 'trigger_condition_frequency', 'whether_recovery_policy': 'whether_recovery_policy', - 'recovery_policy': 'recovery_policy' + 'recovery_policy': 'recovery_policy', + 'notification_frequency': 'notification_frequency', + 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, project_id=None, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, keywords_alarm_rule_description=None, condition_expression=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, domain_id=None, create_time=None, update_time=None, topics=None, template_name=None, status=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None): + def __init__(self, project_id=None, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, keywords_alarm_rule_description=None, condition_expression=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, domain_id=None, create_time=None, update_time=None, topics=None, template_name=None, status=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None, notification_frequency=None, alarm_action_rule_name=None): """KeywordsAlarmRuleRespList The model defined in huaweicloud sdk @@ -85,24 +89,28 @@ def __init__(self, project_id=None, keywords_alarm_rule_id=None, keywords_alarm_ :type keywords_alarm_send: bool :param domain_id: domainId :type domain_id: str - :param create_time: 创建时间(毫秒时间戳) + :param create_time: 创建时间(毫秒时间戳) :type create_time: int - :param update_time: 更新时间(毫秒时间戳) + :param update_time: 更新时间(毫秒时间戳) :type update_time: int - :param topics: 主题 + :param topics: 通知主题 :type topics: list[:class:`huaweicloudsdklts.v2.Topics`] - :param template_name: + :param template_name: 消息模板名称 :type template_name: str - :param status: + :param status: 告警状态 :type status: str - :param trigger_condition_count: 触发条件:触发次数;默认为1 + :param trigger_condition_count: 触发条件:触发周期;默认为1 :type trigger_condition_count: int - :param trigger_condition_frequency: 触发条件:触发周期;默认为1 + :param trigger_condition_frequency: 触发条件:触发次数;默认为1 :type trigger_condition_frequency: int :param whether_recovery_policy: 是否打开恢复通知;默认false :type whether_recovery_policy: bool :param recovery_policy: 恢复策略周期;默认为3 :type recovery_policy: int + :param notification_frequency: 通知频率,单位(分钟) + :type notification_frequency: int + :param alarm_action_rule_name: 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + :type alarm_action_rule_name: str """ @@ -126,9 +134,12 @@ def __init__(self, project_id=None, keywords_alarm_rule_id=None, keywords_alarm_ self._trigger_condition_frequency = None self._whether_recovery_policy = None self._recovery_policy = None + self._notification_frequency = None + self._alarm_action_rule_name = None self.discriminator = None - self.project_id = project_id + if project_id is not None: + self.project_id = project_id self.keywords_alarm_rule_id = keywords_alarm_rule_id self.keywords_alarm_rule_name = keywords_alarm_rule_name self.keywords_alarm_rule_description = keywords_alarm_rule_description @@ -153,6 +164,9 @@ def __init__(self, project_id=None, keywords_alarm_rule_id=None, keywords_alarm_ self.whether_recovery_policy = whether_recovery_policy if recovery_policy is not None: self.recovery_policy = recovery_policy + self.notification_frequency = notification_frequency + if alarm_action_rule_name is not None: + self.alarm_action_rule_name = alarm_action_rule_name @property def project_id(self): @@ -374,7 +388,7 @@ def domain_id(self, domain_id): def create_time(self): """Gets the create_time of this KeywordsAlarmRuleRespList. - 创建时间(毫秒时间戳) + 创建时间(毫秒时间戳) :return: The create_time of this KeywordsAlarmRuleRespList. :rtype: int @@ -385,7 +399,7 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this KeywordsAlarmRuleRespList. - 创建时间(毫秒时间戳) + 创建时间(毫秒时间戳) :param create_time: The create_time of this KeywordsAlarmRuleRespList. :type create_time: int @@ -396,7 +410,7 @@ def create_time(self, create_time): def update_time(self): """Gets the update_time of this KeywordsAlarmRuleRespList. - 更新时间(毫秒时间戳) + 更新时间(毫秒时间戳) :return: The update_time of this KeywordsAlarmRuleRespList. :rtype: int @@ -407,7 +421,7 @@ def update_time(self): def update_time(self, update_time): """Sets the update_time of this KeywordsAlarmRuleRespList. - 更新时间(毫秒时间戳) + 更新时间(毫秒时间戳) :param update_time: The update_time of this KeywordsAlarmRuleRespList. :type update_time: int @@ -418,7 +432,7 @@ def update_time(self, update_time): def topics(self): """Gets the topics of this KeywordsAlarmRuleRespList. - 主题 + 通知主题 :return: The topics of this KeywordsAlarmRuleRespList. :rtype: list[:class:`huaweicloudsdklts.v2.Topics`] @@ -429,7 +443,7 @@ def topics(self): def topics(self, topics): """Sets the topics of this KeywordsAlarmRuleRespList. - 主题 + 通知主题 :param topics: The topics of this KeywordsAlarmRuleRespList. :type topics: list[:class:`huaweicloudsdklts.v2.Topics`] @@ -440,6 +454,8 @@ def topics(self, topics): def template_name(self): """Gets the template_name of this KeywordsAlarmRuleRespList. + 消息模板名称 + :return: The template_name of this KeywordsAlarmRuleRespList. :rtype: str """ @@ -449,6 +465,8 @@ def template_name(self): def template_name(self, template_name): """Sets the template_name of this KeywordsAlarmRuleRespList. + 消息模板名称 + :param template_name: The template_name of this KeywordsAlarmRuleRespList. :type template_name: str """ @@ -458,6 +476,8 @@ def template_name(self, template_name): def status(self): """Gets the status of this KeywordsAlarmRuleRespList. + 告警状态 + :return: The status of this KeywordsAlarmRuleRespList. :rtype: str """ @@ -467,6 +487,8 @@ def status(self): def status(self, status): """Sets the status of this KeywordsAlarmRuleRespList. + 告警状态 + :param status: The status of this KeywordsAlarmRuleRespList. :type status: str """ @@ -476,7 +498,7 @@ def status(self, status): def trigger_condition_count(self): """Gets the trigger_condition_count of this KeywordsAlarmRuleRespList. - 触发条件:触发次数;默认为1 + 触发条件:触发周期;默认为1 :return: The trigger_condition_count of this KeywordsAlarmRuleRespList. :rtype: int @@ -487,7 +509,7 @@ def trigger_condition_count(self): def trigger_condition_count(self, trigger_condition_count): """Sets the trigger_condition_count of this KeywordsAlarmRuleRespList. - 触发条件:触发次数;默认为1 + 触发条件:触发周期;默认为1 :param trigger_condition_count: The trigger_condition_count of this KeywordsAlarmRuleRespList. :type trigger_condition_count: int @@ -498,7 +520,7 @@ def trigger_condition_count(self, trigger_condition_count): def trigger_condition_frequency(self): """Gets the trigger_condition_frequency of this KeywordsAlarmRuleRespList. - 触发条件:触发周期;默认为1 + 触发条件:触发次数;默认为1 :return: The trigger_condition_frequency of this KeywordsAlarmRuleRespList. :rtype: int @@ -509,7 +531,7 @@ def trigger_condition_frequency(self): def trigger_condition_frequency(self, trigger_condition_frequency): """Sets the trigger_condition_frequency of this KeywordsAlarmRuleRespList. - 触发条件:触发周期;默认为1 + 触发条件:触发次数;默认为1 :param trigger_condition_frequency: The trigger_condition_frequency of this KeywordsAlarmRuleRespList. :type trigger_condition_frequency: int @@ -560,6 +582,50 @@ def recovery_policy(self, recovery_policy): """ self._recovery_policy = recovery_policy + @property + def notification_frequency(self): + """Gets the notification_frequency of this KeywordsAlarmRuleRespList. + + 通知频率,单位(分钟) + + :return: The notification_frequency of this KeywordsAlarmRuleRespList. + :rtype: int + """ + return self._notification_frequency + + @notification_frequency.setter + def notification_frequency(self, notification_frequency): + """Sets the notification_frequency of this KeywordsAlarmRuleRespList. + + 通知频率,单位(分钟) + + :param notification_frequency: The notification_frequency of this KeywordsAlarmRuleRespList. + :type notification_frequency: int + """ + self._notification_frequency = notification_frequency + + @property + def alarm_action_rule_name(self): + """Gets the alarm_action_rule_name of this KeywordsAlarmRuleRespList. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :return: The alarm_action_rule_name of this KeywordsAlarmRuleRespList. + :rtype: str + """ + return self._alarm_action_rule_name + + @alarm_action_rule_name.setter + def alarm_action_rule_name(self, alarm_action_rule_name): + """Sets the alarm_action_rule_name of this KeywordsAlarmRuleRespList. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :param alarm_action_rule_name: The alarm_action_rule_name of this KeywordsAlarmRuleRespList. + :type alarm_action_rule_name: str + """ + self._alarm_action_rule_name = alarm_action_rule_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/keywords_res_body.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/keywords_res_body.py new file mode 100644 index 0000000000..ce8ea3fa75 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/keywords_res_body.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class KeywordsResBody: + + """ + 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 = { + 'log_stream_id': 'str', + 'log_stream_name': 'str', + 'log_group_id': 'str', + 'log_group_name': 'str', + 'keywords': 'str', + 'condition': 'str', + 'number': 'int', + 'search_time_range': 'int', + 'search_time_range_unit': 'str' + } + + attribute_map = { + 'log_stream_id': 'log_stream_id', + 'log_stream_name': 'log_stream_name', + 'log_group_id': 'log_group_id', + 'log_group_name': 'log_group_name', + 'keywords': 'keywords', + 'condition': 'condition', + 'number': 'number', + 'search_time_range': 'search_time_range', + 'search_time_range_unit': 'search_time_range_unit' + } + + def __init__(self, log_stream_id=None, log_stream_name=None, log_group_id=None, log_group_name=None, keywords=None, condition=None, number=None, search_time_range=None, search_time_range_unit=None): + """KeywordsResBody + + The model defined in huaweicloud sdk + + :param log_stream_id: 日志流id + :type log_stream_id: str + :param log_stream_name: 日志流名称 + :type log_stream_name: str + :param log_group_id: 日志组id + :type log_group_id: str + :param log_group_name: 日志组名称 + :type log_group_name: str + :param keywords: 关键词 + :type keywords: str + :param condition: 条件 + :type condition: str + :param number: 行数 + :type number: int + :param search_time_range: 查询执行任务时最近数据的时间范围,最大值为60 + :type search_time_range: int + :param search_time_range_unit: 查询时间单位 + :type search_time_range_unit: str + """ + + + + self._log_stream_id = None + self._log_stream_name = None + self._log_group_id = None + self._log_group_name = None + self._keywords = None + self._condition = None + self._number = None + self._search_time_range = None + self._search_time_range_unit = None + self.discriminator = None + + if log_stream_id is not None: + self.log_stream_id = log_stream_id + if log_stream_name is not None: + self.log_stream_name = log_stream_name + if log_group_id is not None: + self.log_group_id = log_group_id + if log_group_name is not None: + self.log_group_name = log_group_name + if keywords is not None: + self.keywords = keywords + if condition is not None: + self.condition = condition + if number is not None: + self.number = number + if search_time_range is not None: + self.search_time_range = search_time_range + if search_time_range_unit is not None: + self.search_time_range_unit = search_time_range_unit + + @property + def log_stream_id(self): + """Gets the log_stream_id of this KeywordsResBody. + + 日志流id + + :return: The log_stream_id of this KeywordsResBody. + :rtype: str + """ + return self._log_stream_id + + @log_stream_id.setter + def log_stream_id(self, log_stream_id): + """Sets the log_stream_id of this KeywordsResBody. + + 日志流id + + :param log_stream_id: The log_stream_id of this KeywordsResBody. + :type log_stream_id: str + """ + self._log_stream_id = log_stream_id + + @property + def log_stream_name(self): + """Gets the log_stream_name of this KeywordsResBody. + + 日志流名称 + + :return: The log_stream_name of this KeywordsResBody. + :rtype: str + """ + return self._log_stream_name + + @log_stream_name.setter + def log_stream_name(self, log_stream_name): + """Sets the log_stream_name of this KeywordsResBody. + + 日志流名称 + + :param log_stream_name: The log_stream_name of this KeywordsResBody. + :type log_stream_name: str + """ + self._log_stream_name = log_stream_name + + @property + def log_group_id(self): + """Gets the log_group_id of this KeywordsResBody. + + 日志组id + + :return: The log_group_id of this KeywordsResBody. + :rtype: str + """ + return self._log_group_id + + @log_group_id.setter + def log_group_id(self, log_group_id): + """Sets the log_group_id of this KeywordsResBody. + + 日志组id + + :param log_group_id: The log_group_id of this KeywordsResBody. + :type log_group_id: str + """ + self._log_group_id = log_group_id + + @property + def log_group_name(self): + """Gets the log_group_name of this KeywordsResBody. + + 日志组名称 + + :return: The log_group_name of this KeywordsResBody. + :rtype: str + """ + return self._log_group_name + + @log_group_name.setter + def log_group_name(self, log_group_name): + """Sets the log_group_name of this KeywordsResBody. + + 日志组名称 + + :param log_group_name: The log_group_name of this KeywordsResBody. + :type log_group_name: str + """ + self._log_group_name = log_group_name + + @property + def keywords(self): + """Gets the keywords of this KeywordsResBody. + + 关键词 + + :return: The keywords of this KeywordsResBody. + :rtype: str + """ + return self._keywords + + @keywords.setter + def keywords(self, keywords): + """Sets the keywords of this KeywordsResBody. + + 关键词 + + :param keywords: The keywords of this KeywordsResBody. + :type keywords: str + """ + self._keywords = keywords + + @property + def condition(self): + """Gets the condition of this KeywordsResBody. + + 条件 + + :return: The condition of this KeywordsResBody. + :rtype: str + """ + return self._condition + + @condition.setter + def condition(self, condition): + """Sets the condition of this KeywordsResBody. + + 条件 + + :param condition: The condition of this KeywordsResBody. + :type condition: str + """ + self._condition = condition + + @property + def number(self): + """Gets the number of this KeywordsResBody. + + 行数 + + :return: The number of this KeywordsResBody. + :rtype: int + """ + return self._number + + @number.setter + def number(self, number): + """Sets the number of this KeywordsResBody. + + 行数 + + :param number: The number of this KeywordsResBody. + :type number: int + """ + self._number = number + + @property + def search_time_range(self): + """Gets the search_time_range of this KeywordsResBody. + + 查询执行任务时最近数据的时间范围,最大值为60 + + :return: The search_time_range of this KeywordsResBody. + :rtype: int + """ + return self._search_time_range + + @search_time_range.setter + def search_time_range(self, search_time_range): + """Sets the search_time_range of this KeywordsResBody. + + 查询执行任务时最近数据的时间范围,最大值为60 + + :param search_time_range: The search_time_range of this KeywordsResBody. + :type search_time_range: int + """ + self._search_time_range = search_time_range + + @property + def search_time_range_unit(self): + """Gets the search_time_range_unit of this KeywordsResBody. + + 查询时间单位 + + :return: The search_time_range_unit of this KeywordsResBody. + :rtype: str + """ + return self._search_time_range_unit + + @search_time_range_unit.setter + def search_time_range_unit(self, search_time_range_unit): + """Sets the search_time_range_unit of this KeywordsResBody. + + 查询时间单位 + + :param search_time_range_unit: The search_time_range_unit of this KeywordsResBody. + :type search_time_range_unit: str + """ + self._search_time_range_unit = search_time_range_unit + + 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, KeywordsResBody): + 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-lts/huaweicloudsdklts/v2/model/lts_access_config_info_respon200.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/lts_access_config_info_respon200.py new file mode 100644 index 0000000000..007f93dfb8 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/lts_access_config_info_respon200.py @@ -0,0 +1,372 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LTSAccessConfigInfoRespon200: + + """ + 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 = { + 'access_config_id': 'str', + 'project_id': 'str', + 'access_config_name': 'str', + 'access_config_type': 'object', + 'group_id': 'str', + 'log_group_name': 'str', + 'log_stream_id': 'str', + 'log_stream_name': 'str', + 'create_time': 'int', + 'agency_log_access': 'PreviewAgencyLogAccessReqBody' + } + + attribute_map = { + 'access_config_id': 'access_config_id', + 'project_id': 'project_id', + 'access_config_name': 'access_config_name', + 'access_config_type': 'access_config_type', + 'group_id': 'group_id', + 'log_group_name': 'log_group_name', + 'log_stream_id': 'log_stream_id', + 'log_stream_name': 'log_stream_name', + 'create_time': 'create_time', + 'agency_log_access': 'agency_log_access' + } + + def __init__(self, access_config_id=None, project_id=None, access_config_name=None, access_config_type=None, group_id=None, log_group_name=None, log_stream_id=None, log_stream_name=None, create_time=None, agency_log_access=None): + """LTSAccessConfigInfoRespon200 + + The model defined in huaweicloud sdk + + :param access_config_id: 跨账号日志接入id + :type access_config_id: str + :param project_id: 项目ID + :type project_id: str + :param access_config_name: 跨账号日志接入名称 + :type access_config_name: str + :param access_config_type: 跨账号日志接入类型 + :type access_config_type: object + :param group_id: 日志组ID + :type group_id: str + :param log_group_name: 日志组名称 + :type log_group_name: str + :param log_stream_id: 日志流ID + :type log_stream_id: str + :param log_stream_name: 日志流名称 + :type log_stream_name: str + :param create_time: 创建时间 + :type create_time: int + :param agency_log_access: + :type agency_log_access: :class:`huaweicloudsdklts.v2.PreviewAgencyLogAccessReqBody` + """ + + + + self._access_config_id = None + self._project_id = None + self._access_config_name = None + self._access_config_type = None + self._group_id = None + self._log_group_name = None + self._log_stream_id = None + self._log_stream_name = None + self._create_time = None + self._agency_log_access = None + self.discriminator = None + + if access_config_id is not None: + self.access_config_id = access_config_id + if project_id is not None: + self.project_id = project_id + if access_config_name is not None: + self.access_config_name = access_config_name + if access_config_type is not None: + self.access_config_type = access_config_type + if group_id is not None: + self.group_id = group_id + if log_group_name is not None: + self.log_group_name = log_group_name + if log_stream_id is not None: + self.log_stream_id = log_stream_id + if log_stream_name is not None: + self.log_stream_name = log_stream_name + if create_time is not None: + self.create_time = create_time + if agency_log_access is not None: + self.agency_log_access = agency_log_access + + @property + def access_config_id(self): + """Gets the access_config_id of this LTSAccessConfigInfoRespon200. + + 跨账号日志接入id + + :return: The access_config_id of this LTSAccessConfigInfoRespon200. + :rtype: str + """ + return self._access_config_id + + @access_config_id.setter + def access_config_id(self, access_config_id): + """Sets the access_config_id of this LTSAccessConfigInfoRespon200. + + 跨账号日志接入id + + :param access_config_id: The access_config_id of this LTSAccessConfigInfoRespon200. + :type access_config_id: str + """ + self._access_config_id = access_config_id + + @property + def project_id(self): + """Gets the project_id of this LTSAccessConfigInfoRespon200. + + 项目ID + + :return: The project_id of this LTSAccessConfigInfoRespon200. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this LTSAccessConfigInfoRespon200. + + 项目ID + + :param project_id: The project_id of this LTSAccessConfigInfoRespon200. + :type project_id: str + """ + self._project_id = project_id + + @property + def access_config_name(self): + """Gets the access_config_name of this LTSAccessConfigInfoRespon200. + + 跨账号日志接入名称 + + :return: The access_config_name of this LTSAccessConfigInfoRespon200. + :rtype: str + """ + return self._access_config_name + + @access_config_name.setter + def access_config_name(self, access_config_name): + """Sets the access_config_name of this LTSAccessConfigInfoRespon200. + + 跨账号日志接入名称 + + :param access_config_name: The access_config_name of this LTSAccessConfigInfoRespon200. + :type access_config_name: str + """ + self._access_config_name = access_config_name + + @property + def access_config_type(self): + """Gets the access_config_type of this LTSAccessConfigInfoRespon200. + + 跨账号日志接入类型 + + :return: The access_config_type of this LTSAccessConfigInfoRespon200. + :rtype: object + """ + return self._access_config_type + + @access_config_type.setter + def access_config_type(self, access_config_type): + """Sets the access_config_type of this LTSAccessConfigInfoRespon200. + + 跨账号日志接入类型 + + :param access_config_type: The access_config_type of this LTSAccessConfigInfoRespon200. + :type access_config_type: object + """ + self._access_config_type = access_config_type + + @property + def group_id(self): + """Gets the group_id of this LTSAccessConfigInfoRespon200. + + 日志组ID + + :return: The group_id of this LTSAccessConfigInfoRespon200. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this LTSAccessConfigInfoRespon200. + + 日志组ID + + :param group_id: The group_id of this LTSAccessConfigInfoRespon200. + :type group_id: str + """ + self._group_id = group_id + + @property + def log_group_name(self): + """Gets the log_group_name of this LTSAccessConfigInfoRespon200. + + 日志组名称 + + :return: The log_group_name of this LTSAccessConfigInfoRespon200. + :rtype: str + """ + return self._log_group_name + + @log_group_name.setter + def log_group_name(self, log_group_name): + """Sets the log_group_name of this LTSAccessConfigInfoRespon200. + + 日志组名称 + + :param log_group_name: The log_group_name of this LTSAccessConfigInfoRespon200. + :type log_group_name: str + """ + self._log_group_name = log_group_name + + @property + def log_stream_id(self): + """Gets the log_stream_id of this LTSAccessConfigInfoRespon200. + + 日志流ID + + :return: The log_stream_id of this LTSAccessConfigInfoRespon200. + :rtype: str + """ + return self._log_stream_id + + @log_stream_id.setter + def log_stream_id(self, log_stream_id): + """Sets the log_stream_id of this LTSAccessConfigInfoRespon200. + + 日志流ID + + :param log_stream_id: The log_stream_id of this LTSAccessConfigInfoRespon200. + :type log_stream_id: str + """ + self._log_stream_id = log_stream_id + + @property + def log_stream_name(self): + """Gets the log_stream_name of this LTSAccessConfigInfoRespon200. + + 日志流名称 + + :return: The log_stream_name of this LTSAccessConfigInfoRespon200. + :rtype: str + """ + return self._log_stream_name + + @log_stream_name.setter + def log_stream_name(self, log_stream_name): + """Sets the log_stream_name of this LTSAccessConfigInfoRespon200. + + 日志流名称 + + :param log_stream_name: The log_stream_name of this LTSAccessConfigInfoRespon200. + :type log_stream_name: str + """ + self._log_stream_name = log_stream_name + + @property + def create_time(self): + """Gets the create_time of this LTSAccessConfigInfoRespon200. + + 创建时间 + + :return: The create_time of this LTSAccessConfigInfoRespon200. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this LTSAccessConfigInfoRespon200. + + 创建时间 + + :param create_time: The create_time of this LTSAccessConfigInfoRespon200. + :type create_time: int + """ + self._create_time = create_time + + @property + def agency_log_access(self): + """Gets the agency_log_access of this LTSAccessConfigInfoRespon200. + + :return: The agency_log_access of this LTSAccessConfigInfoRespon200. + :rtype: :class:`huaweicloudsdklts.v2.PreviewAgencyLogAccessReqBody` + """ + return self._agency_log_access + + @agency_log_access.setter + def agency_log_access(self, agency_log_access): + """Sets the agency_log_access of this LTSAccessConfigInfoRespon200. + + :param agency_log_access: The agency_log_access of this LTSAccessConfigInfoRespon200. + :type agency_log_access: :class:`huaweicloudsdklts.v2.PreviewAgencyLogAccessReqBody` + """ + self._agency_log_access = agency_log_access + + 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, LTSAccessConfigInfoRespon200): + 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-lts/huaweicloudsdklts/v2/model/preview_agency_log_access_req_body.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/preview_agency_log_access_req_body.py new file mode 100644 index 0000000000..4c58be3c38 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/preview_agency_log_access_req_body.py @@ -0,0 +1,478 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PreviewAgencyLogAccessReqBody: + + """ + 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 = { + 'agency_access_type': 'str', + 'agency_log_access': 'str', + 'log_agency_stream_name': 'str', + 'log_agency_stream_id': 'str', + 'log_agency_group_name': 'str', + 'log_agency_group_id': 'str', + 'log_be_agencystream_name': 'str', + 'log_be_agencystream_id': 'str', + 'log_be_agencygroup_name': 'str', + 'log_be_agencygroup_id': 'str', + 'be_agency_project_id': 'str', + 'agency_project_id': 'str', + 'agency_domain_name': 'str', + 'agency_name': 'str' + } + + attribute_map = { + 'agency_access_type': 'agency_access_type', + 'agency_log_access': 'agency_log_access', + 'log_agency_stream_name': 'log_agencyStream_name', + 'log_agency_stream_id': 'log_agencyStream_id', + 'log_agency_group_name': 'log_agencyGroup_name', + 'log_agency_group_id': 'log_agencyGroup_id', + 'log_be_agencystream_name': 'log_beAgencystream_name', + 'log_be_agencystream_id': 'log_beAgencystream_id', + 'log_be_agencygroup_name': 'log_beAgencygroup_name', + 'log_be_agencygroup_id': 'log_beAgencygroup_id', + 'be_agency_project_id': 'be_agency_project_id', + 'agency_project_id': 'agency_project_id', + 'agency_domain_name': 'agency_domain_name', + 'agency_name': 'agency_name' + } + + def __init__(self, agency_access_type=None, agency_log_access=None, log_agency_stream_name=None, log_agency_stream_id=None, log_agency_group_name=None, log_agency_group_id=None, log_be_agencystream_name=None, log_be_agencystream_id=None, log_be_agencygroup_name=None, log_be_agencygroup_id=None, be_agency_project_id=None, agency_project_id=None, agency_domain_name=None, agency_name=None): + """PreviewAgencyLogAccessReqBody + + The model defined in huaweicloud sdk + + :param agency_access_type: 日志访问类型 + :type agency_access_type: str + :param agency_log_access: 跨账号日志接入配置名称 + :type agency_log_access: str + :param log_agency_stream_name: 委托日志流名称 + :type log_agency_stream_name: str + :param log_agency_stream_id: 委托日志流id + :type log_agency_stream_id: str + :param log_agency_group_name: 委托日志组名称 + :type log_agency_group_name: str + :param log_agency_group_id: 委托日志组id + :type log_agency_group_id: str + :param log_be_agencystream_name: 被委托日志流名称 + :type log_be_agencystream_name: str + :param log_be_agencystream_id: 被委托日志流id + :type log_be_agencystream_id: str + :param log_be_agencygroup_name: 被委托日志组名称 + :type log_be_agencygroup_name: str + :param log_be_agencygroup_id: 被委托日志组id + :type log_be_agencygroup_id: str + :param be_agency_project_id: 被委托项目id + :type be_agency_project_id: str + :param agency_project_id: 委托项目id + :type agency_project_id: str + :param agency_domain_name: 委托账号名称 + :type agency_domain_name: str + :param agency_name: 委托名称 + :type agency_name: str + """ + + + + self._agency_access_type = None + self._agency_log_access = None + self._log_agency_stream_name = None + self._log_agency_stream_id = None + self._log_agency_group_name = None + self._log_agency_group_id = None + self._log_be_agencystream_name = None + self._log_be_agencystream_id = None + self._log_be_agencygroup_name = None + self._log_be_agencygroup_id = None + self._be_agency_project_id = None + self._agency_project_id = None + self._agency_domain_name = None + self._agency_name = None + self.discriminator = None + + self.agency_access_type = agency_access_type + self.agency_log_access = agency_log_access + self.log_agency_stream_name = log_agency_stream_name + self.log_agency_stream_id = log_agency_stream_id + self.log_agency_group_name = log_agency_group_name + self.log_agency_group_id = log_agency_group_id + self.log_be_agencystream_name = log_be_agencystream_name + self.log_be_agencystream_id = log_be_agencystream_id + self.log_be_agencygroup_name = log_be_agencygroup_name + self.log_be_agencygroup_id = log_be_agencygroup_id + self.be_agency_project_id = be_agency_project_id + self.agency_project_id = agency_project_id + self.agency_domain_name = agency_domain_name + self.agency_name = agency_name + + @property + def agency_access_type(self): + """Gets the agency_access_type of this PreviewAgencyLogAccessReqBody. + + 日志访问类型 + + :return: The agency_access_type of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._agency_access_type + + @agency_access_type.setter + def agency_access_type(self, agency_access_type): + """Sets the agency_access_type of this PreviewAgencyLogAccessReqBody. + + 日志访问类型 + + :param agency_access_type: The agency_access_type of this PreviewAgencyLogAccessReqBody. + :type agency_access_type: str + """ + self._agency_access_type = agency_access_type + + @property + def agency_log_access(self): + """Gets the agency_log_access of this PreviewAgencyLogAccessReqBody. + + 跨账号日志接入配置名称 + + :return: The agency_log_access of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._agency_log_access + + @agency_log_access.setter + def agency_log_access(self, agency_log_access): + """Sets the agency_log_access of this PreviewAgencyLogAccessReqBody. + + 跨账号日志接入配置名称 + + :param agency_log_access: The agency_log_access of this PreviewAgencyLogAccessReqBody. + :type agency_log_access: str + """ + self._agency_log_access = agency_log_access + + @property + def log_agency_stream_name(self): + """Gets the log_agency_stream_name of this PreviewAgencyLogAccessReqBody. + + 委托日志流名称 + + :return: The log_agency_stream_name of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._log_agency_stream_name + + @log_agency_stream_name.setter + def log_agency_stream_name(self, log_agency_stream_name): + """Sets the log_agency_stream_name of this PreviewAgencyLogAccessReqBody. + + 委托日志流名称 + + :param log_agency_stream_name: The log_agency_stream_name of this PreviewAgencyLogAccessReqBody. + :type log_agency_stream_name: str + """ + self._log_agency_stream_name = log_agency_stream_name + + @property + def log_agency_stream_id(self): + """Gets the log_agency_stream_id of this PreviewAgencyLogAccessReqBody. + + 委托日志流id + + :return: The log_agency_stream_id of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._log_agency_stream_id + + @log_agency_stream_id.setter + def log_agency_stream_id(self, log_agency_stream_id): + """Sets the log_agency_stream_id of this PreviewAgencyLogAccessReqBody. + + 委托日志流id + + :param log_agency_stream_id: The log_agency_stream_id of this PreviewAgencyLogAccessReqBody. + :type log_agency_stream_id: str + """ + self._log_agency_stream_id = log_agency_stream_id + + @property + def log_agency_group_name(self): + """Gets the log_agency_group_name of this PreviewAgencyLogAccessReqBody. + + 委托日志组名称 + + :return: The log_agency_group_name of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._log_agency_group_name + + @log_agency_group_name.setter + def log_agency_group_name(self, log_agency_group_name): + """Sets the log_agency_group_name of this PreviewAgencyLogAccessReqBody. + + 委托日志组名称 + + :param log_agency_group_name: The log_agency_group_name of this PreviewAgencyLogAccessReqBody. + :type log_agency_group_name: str + """ + self._log_agency_group_name = log_agency_group_name + + @property + def log_agency_group_id(self): + """Gets the log_agency_group_id of this PreviewAgencyLogAccessReqBody. + + 委托日志组id + + :return: The log_agency_group_id of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._log_agency_group_id + + @log_agency_group_id.setter + def log_agency_group_id(self, log_agency_group_id): + """Sets the log_agency_group_id of this PreviewAgencyLogAccessReqBody. + + 委托日志组id + + :param log_agency_group_id: The log_agency_group_id of this PreviewAgencyLogAccessReqBody. + :type log_agency_group_id: str + """ + self._log_agency_group_id = log_agency_group_id + + @property + def log_be_agencystream_name(self): + """Gets the log_be_agencystream_name of this PreviewAgencyLogAccessReqBody. + + 被委托日志流名称 + + :return: The log_be_agencystream_name of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._log_be_agencystream_name + + @log_be_agencystream_name.setter + def log_be_agencystream_name(self, log_be_agencystream_name): + """Sets the log_be_agencystream_name of this PreviewAgencyLogAccessReqBody. + + 被委托日志流名称 + + :param log_be_agencystream_name: The log_be_agencystream_name of this PreviewAgencyLogAccessReqBody. + :type log_be_agencystream_name: str + """ + self._log_be_agencystream_name = log_be_agencystream_name + + @property + def log_be_agencystream_id(self): + """Gets the log_be_agencystream_id of this PreviewAgencyLogAccessReqBody. + + 被委托日志流id + + :return: The log_be_agencystream_id of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._log_be_agencystream_id + + @log_be_agencystream_id.setter + def log_be_agencystream_id(self, log_be_agencystream_id): + """Sets the log_be_agencystream_id of this PreviewAgencyLogAccessReqBody. + + 被委托日志流id + + :param log_be_agencystream_id: The log_be_agencystream_id of this PreviewAgencyLogAccessReqBody. + :type log_be_agencystream_id: str + """ + self._log_be_agencystream_id = log_be_agencystream_id + + @property + def log_be_agencygroup_name(self): + """Gets the log_be_agencygroup_name of this PreviewAgencyLogAccessReqBody. + + 被委托日志组名称 + + :return: The log_be_agencygroup_name of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._log_be_agencygroup_name + + @log_be_agencygroup_name.setter + def log_be_agencygroup_name(self, log_be_agencygroup_name): + """Sets the log_be_agencygroup_name of this PreviewAgencyLogAccessReqBody. + + 被委托日志组名称 + + :param log_be_agencygroup_name: The log_be_agencygroup_name of this PreviewAgencyLogAccessReqBody. + :type log_be_agencygroup_name: str + """ + self._log_be_agencygroup_name = log_be_agencygroup_name + + @property + def log_be_agencygroup_id(self): + """Gets the log_be_agencygroup_id of this PreviewAgencyLogAccessReqBody. + + 被委托日志组id + + :return: The log_be_agencygroup_id of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._log_be_agencygroup_id + + @log_be_agencygroup_id.setter + def log_be_agencygroup_id(self, log_be_agencygroup_id): + """Sets the log_be_agencygroup_id of this PreviewAgencyLogAccessReqBody. + + 被委托日志组id + + :param log_be_agencygroup_id: The log_be_agencygroup_id of this PreviewAgencyLogAccessReqBody. + :type log_be_agencygroup_id: str + """ + self._log_be_agencygroup_id = log_be_agencygroup_id + + @property + def be_agency_project_id(self): + """Gets the be_agency_project_id of this PreviewAgencyLogAccessReqBody. + + 被委托项目id + + :return: The be_agency_project_id of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._be_agency_project_id + + @be_agency_project_id.setter + def be_agency_project_id(self, be_agency_project_id): + """Sets the be_agency_project_id of this PreviewAgencyLogAccessReqBody. + + 被委托项目id + + :param be_agency_project_id: The be_agency_project_id of this PreviewAgencyLogAccessReqBody. + :type be_agency_project_id: str + """ + self._be_agency_project_id = be_agency_project_id + + @property + def agency_project_id(self): + """Gets the agency_project_id of this PreviewAgencyLogAccessReqBody. + + 委托项目id + + :return: The agency_project_id of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._agency_project_id + + @agency_project_id.setter + def agency_project_id(self, agency_project_id): + """Sets the agency_project_id of this PreviewAgencyLogAccessReqBody. + + 委托项目id + + :param agency_project_id: The agency_project_id of this PreviewAgencyLogAccessReqBody. + :type agency_project_id: str + """ + self._agency_project_id = agency_project_id + + @property + def agency_domain_name(self): + """Gets the agency_domain_name of this PreviewAgencyLogAccessReqBody. + + 委托账号名称 + + :return: The agency_domain_name of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._agency_domain_name + + @agency_domain_name.setter + def agency_domain_name(self, agency_domain_name): + """Sets the agency_domain_name of this PreviewAgencyLogAccessReqBody. + + 委托账号名称 + + :param agency_domain_name: The agency_domain_name of this PreviewAgencyLogAccessReqBody. + :type agency_domain_name: str + """ + self._agency_domain_name = agency_domain_name + + @property + def agency_name(self): + """Gets the agency_name of this PreviewAgencyLogAccessReqBody. + + 委托名称 + + :return: The agency_name of this PreviewAgencyLogAccessReqBody. + :rtype: str + """ + return self._agency_name + + @agency_name.setter + def agency_name(self, agency_name): + """Sets the agency_name of this PreviewAgencyLogAccessReqBody. + + 委托名称 + + :param agency_name: The agency_name of this PreviewAgencyLogAccessReqBody. + :type agency_name: str + """ + self._agency_name = agency_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, PreviewAgencyLogAccessReqBody): + 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-lts/huaweicloudsdklts/v2/model/preview_agency_log_access_req_list_body.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/preview_agency_log_access_req_list_body.py new file mode 100644 index 0000000000..2a70fba785 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/preview_agency_log_access_req_list_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PreviewAgencyLogAccessReqListBody: + + """ + 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 = { + 'preview_agency_list': 'list[PreviewAgencyLogAccessReqBody]' + } + + attribute_map = { + 'preview_agency_list': 'preview_agency_list' + } + + def __init__(self, preview_agency_list=None): + """PreviewAgencyLogAccessReqListBody + + The model defined in huaweicloud sdk + + :param preview_agency_list: 预览代理列表 + :type preview_agency_list: list[:class:`huaweicloudsdklts.v2.PreviewAgencyLogAccessReqBody`] + """ + + + + self._preview_agency_list = None + self.discriminator = None + + self.preview_agency_list = preview_agency_list + + @property + def preview_agency_list(self): + """Gets the preview_agency_list of this PreviewAgencyLogAccessReqListBody. + + 预览代理列表 + + :return: The preview_agency_list of this PreviewAgencyLogAccessReqListBody. + :rtype: list[:class:`huaweicloudsdklts.v2.PreviewAgencyLogAccessReqBody`] + """ + return self._preview_agency_list + + @preview_agency_list.setter + def preview_agency_list(self, preview_agency_list): + """Sets the preview_agency_list of this PreviewAgencyLogAccessReqListBody. + + 预览代理列表 + + :param preview_agency_list: The preview_agency_list of this PreviewAgencyLogAccessReqListBody. + :type preview_agency_list: list[:class:`huaweicloudsdklts.v2.PreviewAgencyLogAccessReqBody`] + """ + self._preview_agency_list = preview_agency_list + + 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, PreviewAgencyLogAccessReqListBody): + 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-lts/huaweicloudsdklts/v2/model/sql_alarm_rule_resp_list.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/sql_alarm_rule_resp_list.py index 14850aa9ca..72d1c85104 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/sql_alarm_rule_resp_list.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/sql_alarm_rule_resp_list.py @@ -18,10 +18,11 @@ class SqlAlarmRuleRespList: openapi_types = { 'sql_alarm_rule_name': 'str', + 'is_css_sql': 'bool', 'sql_alarm_rule_id': 'str', 'sql_alarm_rule_description': 'str', 'sql_requests': 'list[SqlRequest]', - 'frequency': 'Frequency', + 'frequency': 'FrequencyRespBody', 'condition_expression': 'str', 'topics': 'list[Topics]', 'sql_alarm_level': 'str', @@ -34,11 +35,14 @@ class SqlAlarmRuleRespList: 'trigger_condition_count': 'int', 'trigger_condition_frequency': 'int', 'whether_recovery_policy': 'bool', - 'recovery_policy': 'int' + 'recovery_policy': 'int', + 'notification_frequency': 'int', + 'alarm_action_rule_name': 'str' } attribute_map = { 'sql_alarm_rule_name': 'sql_alarm_rule_name', + 'is_css_sql': 'is_css_sql', 'sql_alarm_rule_id': 'sql_alarm_rule_id', 'sql_alarm_rule_description': 'sql_alarm_rule_description', 'sql_requests': 'sql_requests', @@ -55,16 +59,20 @@ class SqlAlarmRuleRespList: 'trigger_condition_count': 'trigger_condition_count', 'trigger_condition_frequency': 'trigger_condition_frequency', 'whether_recovery_policy': 'whether_recovery_policy', - 'recovery_policy': 'recovery_policy' + 'recovery_policy': 'recovery_policy', + 'notification_frequency': 'notification_frequency', + 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, sql_alarm_rule_name=None, sql_alarm_rule_id=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, topics=None, sql_alarm_level=None, sql_alarm_send=None, domain_id=None, create_time=None, update_time=None, template_name=None, status=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None): + def __init__(self, sql_alarm_rule_name=None, is_css_sql=None, sql_alarm_rule_id=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, topics=None, sql_alarm_level=None, sql_alarm_send=None, domain_id=None, create_time=None, update_time=None, template_name=None, status=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None, notification_frequency=None, alarm_action_rule_name=None): """SqlAlarmRuleRespList The model defined in huaweicloud sdk :param sql_alarm_rule_name: SQL告警名称 :type sql_alarm_rule_name: str + :param is_css_sql: 是否管道符sql查询 + :type is_css_sql: bool :param sql_alarm_rule_id: SQL告警规则id :type sql_alarm_rule_id: str :param sql_alarm_rule_description: SQL告警信息描述 @@ -72,7 +80,7 @@ def __init__(self, sql_alarm_rule_name=None, sql_alarm_rule_id=None, sql_alarm_r :param sql_requests: SQL详细信息 :type sql_requests: list[:class:`huaweicloudsdklts.v2.SqlRequest`] :param frequency: - :type frequency: :class:`huaweicloudsdklts.v2.Frequency` + :type frequency: :class:`huaweicloudsdklts.v2.FrequencyRespBody` :param condition_expression: 条件表达式 :type condition_expression: str :param topics: 主题信息 @@ -83,15 +91,15 @@ def __init__(self, sql_alarm_rule_name=None, sql_alarm_rule_id=None, sql_alarm_r :type sql_alarm_send: bool :param domain_id: domainId :type domain_id: str - :param create_time: 创建时间(毫秒时间戳) + :param create_time: 创建时间(毫秒时间戳) :type create_time: int - :param update_time: 更新时间(毫秒时间戳) + :param update_time: 更新时间(毫秒时间戳) :type update_time: int - :param template_name: + :param template_name: 消息模板名称 :type template_name: str - :param status: + :param status: 告警状态 :type status: str - :param trigger_condition_count: 触发条件:触发次数;默认为1 + :param trigger_condition_count: 触发条件:触发周期;默认为1 :type trigger_condition_count: int :param trigger_condition_frequency: 触发条件:触发周期;默认为1 :type trigger_condition_frequency: int @@ -99,11 +107,16 @@ def __init__(self, sql_alarm_rule_name=None, sql_alarm_rule_id=None, sql_alarm_r :type whether_recovery_policy: bool :param recovery_policy: 恢复策略周期;默认为3 :type recovery_policy: int + :param notification_frequency: 通知频率,单位(分钟) + :type notification_frequency: int + :param alarm_action_rule_name: 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + :type alarm_action_rule_name: str """ self._sql_alarm_rule_name = None + self._is_css_sql = None self._sql_alarm_rule_id = None self._sql_alarm_rule_description = None self._sql_requests = None @@ -121,9 +134,13 @@ def __init__(self, sql_alarm_rule_name=None, sql_alarm_rule_id=None, sql_alarm_r self._trigger_condition_frequency = None self._whether_recovery_policy = None self._recovery_policy = None + self._notification_frequency = None + self._alarm_action_rule_name = None self.discriminator = None self.sql_alarm_rule_name = sql_alarm_rule_name + if is_css_sql is not None: + self.is_css_sql = is_css_sql self.sql_alarm_rule_id = sql_alarm_rule_id self.sql_alarm_rule_description = sql_alarm_rule_description self.sql_requests = sql_requests @@ -147,6 +164,9 @@ def __init__(self, sql_alarm_rule_name=None, sql_alarm_rule_id=None, sql_alarm_r self.whether_recovery_policy = whether_recovery_policy if recovery_policy is not None: self.recovery_policy = recovery_policy + self.notification_frequency = notification_frequency + if alarm_action_rule_name is not None: + self.alarm_action_rule_name = alarm_action_rule_name @property def sql_alarm_rule_name(self): @@ -170,6 +190,28 @@ def sql_alarm_rule_name(self, sql_alarm_rule_name): """ self._sql_alarm_rule_name = sql_alarm_rule_name + @property + def is_css_sql(self): + """Gets the is_css_sql of this SqlAlarmRuleRespList. + + 是否管道符sql查询 + + :return: The is_css_sql of this SqlAlarmRuleRespList. + :rtype: bool + """ + return self._is_css_sql + + @is_css_sql.setter + def is_css_sql(self, is_css_sql): + """Sets the is_css_sql of this SqlAlarmRuleRespList. + + 是否管道符sql查询 + + :param is_css_sql: The is_css_sql of this SqlAlarmRuleRespList. + :type is_css_sql: bool + """ + self._is_css_sql = is_css_sql + @property def sql_alarm_rule_id(self): """Gets the sql_alarm_rule_id of this SqlAlarmRuleRespList. @@ -241,7 +283,7 @@ def frequency(self): """Gets the frequency of this SqlAlarmRuleRespList. :return: The frequency of this SqlAlarmRuleRespList. - :rtype: :class:`huaweicloudsdklts.v2.Frequency` + :rtype: :class:`huaweicloudsdklts.v2.FrequencyRespBody` """ return self._frequency @@ -250,7 +292,7 @@ def frequency(self, frequency): """Sets the frequency of this SqlAlarmRuleRespList. :param frequency: The frequency of this SqlAlarmRuleRespList. - :type frequency: :class:`huaweicloudsdklts.v2.Frequency` + :type frequency: :class:`huaweicloudsdklts.v2.FrequencyRespBody` """ self._frequency = frequency @@ -368,7 +410,7 @@ def domain_id(self, domain_id): def create_time(self): """Gets the create_time of this SqlAlarmRuleRespList. - 创建时间(毫秒时间戳) + 创建时间(毫秒时间戳) :return: The create_time of this SqlAlarmRuleRespList. :rtype: int @@ -379,7 +421,7 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this SqlAlarmRuleRespList. - 创建时间(毫秒时间戳) + 创建时间(毫秒时间戳) :param create_time: The create_time of this SqlAlarmRuleRespList. :type create_time: int @@ -390,7 +432,7 @@ def create_time(self, create_time): def update_time(self): """Gets the update_time of this SqlAlarmRuleRespList. - 更新时间(毫秒时间戳) + 更新时间(毫秒时间戳) :return: The update_time of this SqlAlarmRuleRespList. :rtype: int @@ -401,7 +443,7 @@ def update_time(self): def update_time(self, update_time): """Sets the update_time of this SqlAlarmRuleRespList. - 更新时间(毫秒时间戳) + 更新时间(毫秒时间戳) :param update_time: The update_time of this SqlAlarmRuleRespList. :type update_time: int @@ -412,6 +454,8 @@ def update_time(self, update_time): def template_name(self): """Gets the template_name of this SqlAlarmRuleRespList. + 消息模板名称 + :return: The template_name of this SqlAlarmRuleRespList. :rtype: str """ @@ -421,6 +465,8 @@ def template_name(self): def template_name(self, template_name): """Sets the template_name of this SqlAlarmRuleRespList. + 消息模板名称 + :param template_name: The template_name of this SqlAlarmRuleRespList. :type template_name: str """ @@ -430,6 +476,8 @@ def template_name(self, template_name): def status(self): """Gets the status of this SqlAlarmRuleRespList. + 告警状态 + :return: The status of this SqlAlarmRuleRespList. :rtype: str """ @@ -439,6 +487,8 @@ def status(self): def status(self, status): """Sets the status of this SqlAlarmRuleRespList. + 告警状态 + :param status: The status of this SqlAlarmRuleRespList. :type status: str """ @@ -448,7 +498,7 @@ def status(self, status): def trigger_condition_count(self): """Gets the trigger_condition_count of this SqlAlarmRuleRespList. - 触发条件:触发次数;默认为1 + 触发条件:触发周期;默认为1 :return: The trigger_condition_count of this SqlAlarmRuleRespList. :rtype: int @@ -459,7 +509,7 @@ def trigger_condition_count(self): def trigger_condition_count(self, trigger_condition_count): """Sets the trigger_condition_count of this SqlAlarmRuleRespList. - 触发条件:触发次数;默认为1 + 触发条件:触发周期;默认为1 :param trigger_condition_count: The trigger_condition_count of this SqlAlarmRuleRespList. :type trigger_condition_count: int @@ -532,6 +582,50 @@ def recovery_policy(self, recovery_policy): """ self._recovery_policy = recovery_policy + @property + def notification_frequency(self): + """Gets the notification_frequency of this SqlAlarmRuleRespList. + + 通知频率,单位(分钟) + + :return: The notification_frequency of this SqlAlarmRuleRespList. + :rtype: int + """ + return self._notification_frequency + + @notification_frequency.setter + def notification_frequency(self, notification_frequency): + """Sets the notification_frequency of this SqlAlarmRuleRespList. + + 通知频率,单位(分钟) + + :param notification_frequency: The notification_frequency of this SqlAlarmRuleRespList. + :type notification_frequency: int + """ + self._notification_frequency = notification_frequency + + @property + def alarm_action_rule_name(self): + """Gets the alarm_action_rule_name of this SqlAlarmRuleRespList. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :return: The alarm_action_rule_name of this SqlAlarmRuleRespList. + :rtype: str + """ + return self._alarm_action_rule_name + + @alarm_action_rule_name.setter + def alarm_action_rule_name(self, alarm_action_rule_name): + """Sets the alarm_action_rule_name of this SqlAlarmRuleRespList. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :param alarm_action_rule_name: The alarm_action_rule_name of this SqlAlarmRuleRespList. + :type alarm_action_rule_name: str + """ + self._alarm_action_rule_name = alarm_action_rule_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_request_body.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_request_body.py index f714100560..6b2ad3e582 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_request_body.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_request_body.py @@ -30,7 +30,9 @@ class UpdateKeywordsAlarmRuleRequestBody: 'trigger_condition_count': 'int', 'trigger_condition_frequency': 'int', 'whether_recovery_policy': 'bool', - 'recovery_policy': 'int' + 'recovery_policy': 'int', + 'notification_frequency': 'int', + 'alarm_action_rule_name': 'str' } attribute_map = { @@ -47,10 +49,12 @@ class UpdateKeywordsAlarmRuleRequestBody: 'trigger_condition_count': 'trigger_condition_count', 'trigger_condition_frequency': 'trigger_condition_frequency', 'whether_recovery_policy': 'whether_recovery_policy', - 'recovery_policy': 'recovery_policy' + 'recovery_policy': 'recovery_policy', + 'notification_frequency': 'notification_frequency', + 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, keywords_alarm_rule_description=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, keywords_alarm_send_code=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None): + def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, keywords_alarm_rule_description=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, keywords_alarm_send_code=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None, notification_frequency=None, alarm_action_rule_name=None): """UpdateKeywordsAlarmRuleRequestBody The model defined in huaweicloud sdk @@ -83,6 +87,10 @@ def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, k :type whether_recovery_policy: bool :param recovery_policy: 恢复策略周期;默认为3 :type recovery_policy: int + :param notification_frequency: 通知频率,单位(分钟) + :type notification_frequency: int + :param alarm_action_rule_name: 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + :type alarm_action_rule_name: str """ @@ -101,6 +109,8 @@ def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, k self._trigger_condition_frequency = None self._whether_recovery_policy = None self._recovery_policy = None + self._notification_frequency = None + self._alarm_action_rule_name = None self.discriminator = None self.keywords_alarm_rule_id = keywords_alarm_rule_id @@ -123,6 +133,9 @@ def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, k self.whether_recovery_policy = whether_recovery_policy if recovery_policy is not None: self.recovery_policy = recovery_policy + self.notification_frequency = notification_frequency + if alarm_action_rule_name is not None: + self.alarm_action_rule_name = alarm_action_rule_name @property def keywords_alarm_rule_id(self): @@ -424,6 +437,50 @@ def recovery_policy(self, recovery_policy): """ self._recovery_policy = recovery_policy + @property + def notification_frequency(self): + """Gets the notification_frequency of this UpdateKeywordsAlarmRuleRequestBody. + + 通知频率,单位(分钟) + + :return: The notification_frequency of this UpdateKeywordsAlarmRuleRequestBody. + :rtype: int + """ + return self._notification_frequency + + @notification_frequency.setter + def notification_frequency(self, notification_frequency): + """Sets the notification_frequency of this UpdateKeywordsAlarmRuleRequestBody. + + 通知频率,单位(分钟) + + :param notification_frequency: The notification_frequency of this UpdateKeywordsAlarmRuleRequestBody. + :type notification_frequency: int + """ + self._notification_frequency = notification_frequency + + @property + def alarm_action_rule_name(self): + """Gets the alarm_action_rule_name of this UpdateKeywordsAlarmRuleRequestBody. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :return: The alarm_action_rule_name of this UpdateKeywordsAlarmRuleRequestBody. + :rtype: str + """ + return self._alarm_action_rule_name + + @alarm_action_rule_name.setter + def alarm_action_rule_name(self, alarm_action_rule_name): + """Sets the alarm_action_rule_name of this UpdateKeywordsAlarmRuleRequestBody. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :param alarm_action_rule_name: The alarm_action_rule_name of this UpdateKeywordsAlarmRuleRequestBody. + :type alarm_action_rule_name: str + """ + self._alarm_action_rule_name = alarm_action_rule_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_response.py index 2f12b5ebeb..a1718e3b08 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_response.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_response.py @@ -21,8 +21,8 @@ class UpdateKeywordsAlarmRuleResponse(SdkResponse): 'keywords_alarm_rule_id': 'str', 'keywords_alarm_rule_name': 'str', 'keywords_alarm_rule_description': 'str', - 'keywords_requests': 'list[KeywordsRequest]', - 'frequency': 'Frequency', + 'keywords_requests': 'list[KeywordsResBody]', + 'frequency': 'FrequencyRespBody', 'keywords_alarm_level': 'str', 'keywords_alarm_send': 'bool', 'domain_id': 'str', @@ -32,7 +32,9 @@ class UpdateKeywordsAlarmRuleResponse(SdkResponse): 'project_id': 'str', 'topics': 'list[Topics]', 'condition_expression': 'str', - 'index_id': 'str' + 'index_id': 'str', + 'notification_frequency': 'int', + 'alarm_action_rule_name': 'str' } attribute_map = { @@ -50,10 +52,12 @@ class UpdateKeywordsAlarmRuleResponse(SdkResponse): 'project_id': 'projectId', 'topics': 'topics', 'condition_expression': 'condition_expression', - 'index_id': 'indexId' + 'index_id': 'indexId', + 'notification_frequency': 'notification_frequency', + 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, keywords_alarm_rule_description=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, domain_id=None, create_time=None, update_time=None, language=None, project_id=None, topics=None, condition_expression=None, index_id=None): + def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, keywords_alarm_rule_description=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, domain_id=None, create_time=None, update_time=None, language=None, project_id=None, topics=None, condition_expression=None, index_id=None, notification_frequency=None, alarm_action_rule_name=None): """UpdateKeywordsAlarmRuleResponse The model defined in huaweicloud sdk @@ -65,9 +69,9 @@ def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, k :param keywords_alarm_rule_description: 关键词告警信息描述 :type keywords_alarm_rule_description: str :param keywords_requests: 关键词详细信息 - :type keywords_requests: list[:class:`huaweicloudsdklts.v2.KeywordsRequest`] + :type keywords_requests: list[:class:`huaweicloudsdklts.v2.KeywordsResBody`] :param frequency: - :type frequency: :class:`huaweicloudsdklts.v2.Frequency` + :type frequency: :class:`huaweicloudsdklts.v2.FrequencyRespBody` :param keywords_alarm_level: 告警级别 :type keywords_alarm_level: str :param keywords_alarm_send: 是否发送 @@ -78,16 +82,20 @@ def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, k :type create_time: int :param update_time: 更新时间(毫秒时间戳) :type update_time: int - :param language: 语言 + :param language: 邮件附加信息语言 :type language: str :param project_id: 项目id :type project_id: str - :param topics: 主题信息 + :param topics: 通知主题 :type topics: list[:class:`huaweicloudsdklts.v2.Topics`] - :param condition_expression: 暂无 + :param condition_expression: 情况表述 :type condition_expression: str - :param index_id: 暂无 + :param index_id: 索引id :type index_id: str + :param notification_frequency: 通知频率,单位(分钟) + :type notification_frequency: int + :param alarm_action_rule_name: 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + :type alarm_action_rule_name: str """ super(UpdateKeywordsAlarmRuleResponse, self).__init__() @@ -107,6 +115,8 @@ def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, k self._topics = None self._condition_expression = None self._index_id = None + self._notification_frequency = None + self._alarm_action_rule_name = None self.discriminator = None if keywords_alarm_rule_id is not None: @@ -139,6 +149,10 @@ def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, k self.condition_expression = condition_expression if index_id is not None: self.index_id = index_id + if notification_frequency is not None: + self.notification_frequency = notification_frequency + if alarm_action_rule_name is not None: + self.alarm_action_rule_name = alarm_action_rule_name @property def keywords_alarm_rule_id(self): @@ -213,7 +227,7 @@ def keywords_requests(self): 关键词详细信息 :return: The keywords_requests of this UpdateKeywordsAlarmRuleResponse. - :rtype: list[:class:`huaweicloudsdklts.v2.KeywordsRequest`] + :rtype: list[:class:`huaweicloudsdklts.v2.KeywordsResBody`] """ return self._keywords_requests @@ -224,7 +238,7 @@ def keywords_requests(self, keywords_requests): 关键词详细信息 :param keywords_requests: The keywords_requests of this UpdateKeywordsAlarmRuleResponse. - :type keywords_requests: list[:class:`huaweicloudsdklts.v2.KeywordsRequest`] + :type keywords_requests: list[:class:`huaweicloudsdklts.v2.KeywordsResBody`] """ self._keywords_requests = keywords_requests @@ -233,7 +247,7 @@ def frequency(self): """Gets the frequency of this UpdateKeywordsAlarmRuleResponse. :return: The frequency of this UpdateKeywordsAlarmRuleResponse. - :rtype: :class:`huaweicloudsdklts.v2.Frequency` + :rtype: :class:`huaweicloudsdklts.v2.FrequencyRespBody` """ return self._frequency @@ -242,7 +256,7 @@ def frequency(self, frequency): """Sets the frequency of this UpdateKeywordsAlarmRuleResponse. :param frequency: The frequency of this UpdateKeywordsAlarmRuleResponse. - :type frequency: :class:`huaweicloudsdklts.v2.Frequency` + :type frequency: :class:`huaweicloudsdklts.v2.FrequencyRespBody` """ self._frequency = frequency @@ -360,7 +374,7 @@ def update_time(self, update_time): def language(self): """Gets the language of this UpdateKeywordsAlarmRuleResponse. - 语言 + 邮件附加信息语言 :return: The language of this UpdateKeywordsAlarmRuleResponse. :rtype: str @@ -371,7 +385,7 @@ def language(self): def language(self, language): """Sets the language of this UpdateKeywordsAlarmRuleResponse. - 语言 + 邮件附加信息语言 :param language: The language of this UpdateKeywordsAlarmRuleResponse. :type language: str @@ -404,7 +418,7 @@ def project_id(self, project_id): def topics(self): """Gets the topics of this UpdateKeywordsAlarmRuleResponse. - 主题信息 + 通知主题 :return: The topics of this UpdateKeywordsAlarmRuleResponse. :rtype: list[:class:`huaweicloudsdklts.v2.Topics`] @@ -415,7 +429,7 @@ def topics(self): def topics(self, topics): """Sets the topics of this UpdateKeywordsAlarmRuleResponse. - 主题信息 + 通知主题 :param topics: The topics of this UpdateKeywordsAlarmRuleResponse. :type topics: list[:class:`huaweicloudsdklts.v2.Topics`] @@ -426,7 +440,7 @@ def topics(self, topics): def condition_expression(self): """Gets the condition_expression of this UpdateKeywordsAlarmRuleResponse. - 暂无 + 情况表述 :return: The condition_expression of this UpdateKeywordsAlarmRuleResponse. :rtype: str @@ -437,7 +451,7 @@ def condition_expression(self): def condition_expression(self, condition_expression): """Sets the condition_expression of this UpdateKeywordsAlarmRuleResponse. - 暂无 + 情况表述 :param condition_expression: The condition_expression of this UpdateKeywordsAlarmRuleResponse. :type condition_expression: str @@ -448,7 +462,7 @@ def condition_expression(self, condition_expression): def index_id(self): """Gets the index_id of this UpdateKeywordsAlarmRuleResponse. - 暂无 + 索引id :return: The index_id of this UpdateKeywordsAlarmRuleResponse. :rtype: str @@ -459,13 +473,57 @@ def index_id(self): def index_id(self, index_id): """Sets the index_id of this UpdateKeywordsAlarmRuleResponse. - 暂无 + 索引id :param index_id: The index_id of this UpdateKeywordsAlarmRuleResponse. :type index_id: str """ self._index_id = index_id + @property + def notification_frequency(self): + """Gets the notification_frequency of this UpdateKeywordsAlarmRuleResponse. + + 通知频率,单位(分钟) + + :return: The notification_frequency of this UpdateKeywordsAlarmRuleResponse. + :rtype: int + """ + return self._notification_frequency + + @notification_frequency.setter + def notification_frequency(self, notification_frequency): + """Sets the notification_frequency of this UpdateKeywordsAlarmRuleResponse. + + 通知频率,单位(分钟) + + :param notification_frequency: The notification_frequency of this UpdateKeywordsAlarmRuleResponse. + :type notification_frequency: int + """ + self._notification_frequency = notification_frequency + + @property + def alarm_action_rule_name(self): + """Gets the alarm_action_rule_name of this UpdateKeywordsAlarmRuleResponse. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :return: The alarm_action_rule_name of this UpdateKeywordsAlarmRuleResponse. + :rtype: str + """ + return self._alarm_action_rule_name + + @alarm_action_rule_name.setter + def alarm_action_rule_name(self, alarm_action_rule_name): + """Sets the alarm_action_rule_name of this UpdateKeywordsAlarmRuleResponse. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :param alarm_action_rule_name: The alarm_action_rule_name of this UpdateKeywordsAlarmRuleResponse. + :type alarm_action_rule_name: str + """ + self._alarm_action_rule_name = alarm_action_rule_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_request_body.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_request_body.py index b517c9c83b..ee71c28969 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_request_body.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_request_body.py @@ -19,9 +19,10 @@ class UpdateSqlAlarmRuleRequestBody: openapi_types = { 'sql_alarm_rule_id': 'str', 'sql_alarm_rule_name': 'str', + 'is_css_sql': 'bool', 'sql_alarm_rule_description': 'str', 'sql_requests': 'list[SqlRequest]', - 'frequency': 'Frequency', + 'frequency': 'CreateSqlAlarmRuleFrequency', 'condition_expression': 'str', 'sql_alarm_level': 'str', 'sql_alarm_send': 'bool', @@ -31,12 +32,15 @@ class UpdateSqlAlarmRuleRequestBody: 'trigger_condition_count': 'int', 'trigger_condition_frequency': 'int', 'whether_recovery_policy': 'bool', - 'recovery_policy': 'int' + 'recovery_policy': 'int', + 'notification_frequency': 'int', + 'alarm_action_rule_name': 'str' } attribute_map = { 'sql_alarm_rule_id': 'sql_alarm_rule_id', 'sql_alarm_rule_name': 'sql_alarm_rule_name', + 'is_css_sql': 'is_css_sql', 'sql_alarm_rule_description': 'sql_alarm_rule_description', 'sql_requests': 'sql_requests', 'frequency': 'frequency', @@ -49,10 +53,12 @@ class UpdateSqlAlarmRuleRequestBody: 'trigger_condition_count': 'trigger_condition_count', 'trigger_condition_frequency': 'trigger_condition_frequency', 'whether_recovery_policy': 'whether_recovery_policy', - 'recovery_policy': 'recovery_policy' + 'recovery_policy': 'recovery_policy', + 'notification_frequency': 'notification_frequency', + 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, sql_alarm_rule_id=None, sql_alarm_rule_name=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, sql_alarm_level=None, sql_alarm_send=None, sql_alarm_send_code=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None): + def __init__(self, sql_alarm_rule_id=None, sql_alarm_rule_name=None, is_css_sql=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, sql_alarm_level=None, sql_alarm_send=None, sql_alarm_send_code=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None, notification_frequency=None, alarm_action_rule_name=None): """UpdateSqlAlarmRuleRequestBody The model defined in huaweicloud sdk @@ -61,12 +67,14 @@ def __init__(self, sql_alarm_rule_id=None, sql_alarm_rule_name=None, sql_alarm_r :type sql_alarm_rule_id: str :param sql_alarm_rule_name: SQL告警名称 :type sql_alarm_rule_name: str + :param is_css_sql: 是否管道符sql查询 + :type is_css_sql: bool :param sql_alarm_rule_description: SQL告警信息描述 :type sql_alarm_rule_description: str :param sql_requests: SQL详细信息 :type sql_requests: list[:class:`huaweicloudsdklts.v2.SqlRequest`] :param frequency: - :type frequency: :class:`huaweicloudsdklts.v2.Frequency` + :type frequency: :class:`huaweicloudsdklts.v2.CreateSqlAlarmRuleFrequency` :param condition_expression: 条件表达式 :type condition_expression: str :param sql_alarm_level: 告警级别 @@ -87,12 +95,17 @@ def __init__(self, sql_alarm_rule_id=None, sql_alarm_rule_name=None, sql_alarm_r :type whether_recovery_policy: bool :param recovery_policy: 恢复策略周期;默认为3 :type recovery_policy: int + :param notification_frequency: 通知频率,单位(分钟) + :type notification_frequency: int + :param alarm_action_rule_name: 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + :type alarm_action_rule_name: str """ self._sql_alarm_rule_id = None self._sql_alarm_rule_name = None + self._is_css_sql = None self._sql_alarm_rule_description = None self._sql_requests = None self._frequency = None @@ -106,10 +119,14 @@ def __init__(self, sql_alarm_rule_id=None, sql_alarm_rule_name=None, sql_alarm_r self._trigger_condition_frequency = None self._whether_recovery_policy = None self._recovery_policy = None + self._notification_frequency = None + self._alarm_action_rule_name = None self.discriminator = None self.sql_alarm_rule_id = sql_alarm_rule_id self.sql_alarm_rule_name = sql_alarm_rule_name + if is_css_sql is not None: + self.is_css_sql = is_css_sql if sql_alarm_rule_description is not None: self.sql_alarm_rule_description = sql_alarm_rule_description self.sql_requests = sql_requests @@ -129,6 +146,9 @@ def __init__(self, sql_alarm_rule_id=None, sql_alarm_rule_name=None, sql_alarm_r self.whether_recovery_policy = whether_recovery_policy if recovery_policy is not None: self.recovery_policy = recovery_policy + self.notification_frequency = notification_frequency + if alarm_action_rule_name is not None: + self.alarm_action_rule_name = alarm_action_rule_name @property def sql_alarm_rule_id(self): @@ -174,6 +194,28 @@ def sql_alarm_rule_name(self, sql_alarm_rule_name): """ self._sql_alarm_rule_name = sql_alarm_rule_name + @property + def is_css_sql(self): + """Gets the is_css_sql of this UpdateSqlAlarmRuleRequestBody. + + 是否管道符sql查询 + + :return: The is_css_sql of this UpdateSqlAlarmRuleRequestBody. + :rtype: bool + """ + return self._is_css_sql + + @is_css_sql.setter + def is_css_sql(self, is_css_sql): + """Sets the is_css_sql of this UpdateSqlAlarmRuleRequestBody. + + 是否管道符sql查询 + + :param is_css_sql: The is_css_sql of this UpdateSqlAlarmRuleRequestBody. + :type is_css_sql: bool + """ + self._is_css_sql = is_css_sql + @property def sql_alarm_rule_description(self): """Gets the sql_alarm_rule_description of this UpdateSqlAlarmRuleRequestBody. @@ -223,7 +265,7 @@ def frequency(self): """Gets the frequency of this UpdateSqlAlarmRuleRequestBody. :return: The frequency of this UpdateSqlAlarmRuleRequestBody. - :rtype: :class:`huaweicloudsdklts.v2.Frequency` + :rtype: :class:`huaweicloudsdklts.v2.CreateSqlAlarmRuleFrequency` """ return self._frequency @@ -232,7 +274,7 @@ def frequency(self, frequency): """Sets the frequency of this UpdateSqlAlarmRuleRequestBody. :param frequency: The frequency of this UpdateSqlAlarmRuleRequestBody. - :type frequency: :class:`huaweicloudsdklts.v2.Frequency` + :type frequency: :class:`huaweicloudsdklts.v2.CreateSqlAlarmRuleFrequency` """ self._frequency = frequency @@ -452,6 +494,50 @@ def recovery_policy(self, recovery_policy): """ self._recovery_policy = recovery_policy + @property + def notification_frequency(self): + """Gets the notification_frequency of this UpdateSqlAlarmRuleRequestBody. + + 通知频率,单位(分钟) + + :return: The notification_frequency of this UpdateSqlAlarmRuleRequestBody. + :rtype: int + """ + return self._notification_frequency + + @notification_frequency.setter + def notification_frequency(self, notification_frequency): + """Sets the notification_frequency of this UpdateSqlAlarmRuleRequestBody. + + 通知频率,单位(分钟) + + :param notification_frequency: The notification_frequency of this UpdateSqlAlarmRuleRequestBody. + :type notification_frequency: int + """ + self._notification_frequency = notification_frequency + + @property + def alarm_action_rule_name(self): + """Gets the alarm_action_rule_name of this UpdateSqlAlarmRuleRequestBody. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :return: The alarm_action_rule_name of this UpdateSqlAlarmRuleRequestBody. + :rtype: str + """ + return self._alarm_action_rule_name + + @alarm_action_rule_name.setter + def alarm_action_rule_name(self, alarm_action_rule_name): + """Sets the alarm_action_rule_name of this UpdateSqlAlarmRuleRequestBody. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :param alarm_action_rule_name: The alarm_action_rule_name of this UpdateSqlAlarmRuleRequestBody. + :type alarm_action_rule_name: str + """ + self._alarm_action_rule_name = alarm_action_rule_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_response.py index b19bc8c4a2..a2f2c2ea32 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_response.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_response.py @@ -18,30 +18,32 @@ class UpdateSqlAlarmRuleResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'id': 'str', + 'sql_alarm_rule_name': 'str', + 'is_css_sql': 'bool', 'index_id': 'str', - 'language': 'str', 'project_id': 'str', - 'sql_alarm_rule_name': 'str', 'sql_alarm_rule_id': 'str', 'sql_alarm_rule_description': 'str', 'sql_requests': 'list[SqlRequest]', - 'frequency': 'Frequency', + 'frequency': 'FrequencyRespBody', 'condition_expression': 'str', 'sql_alarm_level': 'str', 'sql_alarm_send': 'bool', 'domain_id': 'str', 'create_time': 'int', 'update_time': 'int', - 'topics': 'list[Topics]' + 'topics': 'list[Topics]', + 'language': 'str', + 'id': 'str', + 'notification_frequency': 'int', + 'alarm_action_rule_name': 'str' } attribute_map = { - 'id': 'id', + 'sql_alarm_rule_name': 'sql_alarm_rule_name', + 'is_css_sql': 'is_css_sql', 'index_id': 'indexId', - 'language': 'language', 'project_id': 'projectId', - 'sql_alarm_rule_name': 'sql_alarm_rule_name', 'sql_alarm_rule_id': 'sql_alarm_rule_id', 'sql_alarm_rule_description': 'sql_alarm_rule_description', 'sql_requests': 'sql_requests', @@ -52,24 +54,26 @@ class UpdateSqlAlarmRuleResponse(SdkResponse): 'domain_id': 'domain_id', 'create_time': 'create_time', 'update_time': 'update_time', - 'topics': 'topics' + 'topics': 'topics', + 'language': 'language', + 'id': 'id', + 'notification_frequency': 'notification_frequency', + 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, id=None, index_id=None, language=None, project_id=None, sql_alarm_rule_name=None, sql_alarm_rule_id=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, sql_alarm_level=None, sql_alarm_send=None, domain_id=None, create_time=None, update_time=None, topics=None): + def __init__(self, sql_alarm_rule_name=None, is_css_sql=None, index_id=None, project_id=None, sql_alarm_rule_id=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, sql_alarm_level=None, sql_alarm_send=None, domain_id=None, create_time=None, update_time=None, topics=None, language=None, id=None, notification_frequency=None, alarm_action_rule_name=None): """UpdateSqlAlarmRuleResponse The model defined in huaweicloud sdk - :param id: 测试 - :type id: str - :param index_id: 测试 - :type index_id: str - :param language: 测试 - :type language: str - :param project_id: 测试 - :type project_id: str :param sql_alarm_rule_name: SQL告警名称 :type sql_alarm_rule_name: str + :param is_css_sql: 是否管道符sql查询 + :type is_css_sql: bool + :param index_id: 索引id + :type index_id: str + :param project_id: 项目id + :type project_id: str :param sql_alarm_rule_id: SQL告警规则id :type sql_alarm_rule_id: str :param sql_alarm_rule_description: SQL告警信息描述 @@ -77,7 +81,7 @@ def __init__(self, id=None, index_id=None, language=None, project_id=None, sql_a :param sql_requests: SQL详细信息 :type sql_requests: list[:class:`huaweicloudsdklts.v2.SqlRequest`] :param frequency: - :type frequency: :class:`huaweicloudsdklts.v2.Frequency` + :type frequency: :class:`huaweicloudsdklts.v2.FrequencyRespBody` :param condition_expression: 条件表达式 :type condition_expression: str :param sql_alarm_level: 告警级别 @@ -86,21 +90,28 @@ def __init__(self, id=None, index_id=None, language=None, project_id=None, sql_a :type sql_alarm_send: bool :param domain_id: domainId :type domain_id: str - :param create_time: 创建时间(毫秒时间戳) + :param create_time: 创建时间(毫秒时间戳) :type create_time: int - :param update_time: 更新时间(毫秒时间戳) + :param update_time: 更新时间(毫秒时间戳) :type update_time: int :param topics: 主题 :type topics: list[:class:`huaweicloudsdklts.v2.Topics`] + :param language: 邮件附加信息语言 + :type language: str + :param id: 规则ID。 + :type id: str + :param notification_frequency: 通知频率,单位(分钟) + :type notification_frequency: int + :param alarm_action_rule_name: 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + :type alarm_action_rule_name: str """ super(UpdateSqlAlarmRuleResponse, self).__init__() - self._id = None + self._sql_alarm_rule_name = None + self._is_css_sql = None self._index_id = None - self._language = None self._project_id = None - self._sql_alarm_rule_name = None self._sql_alarm_rule_id = None self._sql_alarm_rule_description = None self._sql_requests = None @@ -112,18 +123,20 @@ def __init__(self, id=None, index_id=None, language=None, project_id=None, sql_a self._create_time = None self._update_time = None self._topics = None + self._language = None + self._id = None + self._notification_frequency = None + self._alarm_action_rule_name = None self.discriminator = None - if id is not None: - self.id = id + if sql_alarm_rule_name is not None: + self.sql_alarm_rule_name = sql_alarm_rule_name + if is_css_sql is not None: + self.is_css_sql = is_css_sql if index_id is not None: self.index_id = index_id - if language is not None: - self.language = language if project_id is not None: self.project_id = project_id - if sql_alarm_rule_name is not None: - self.sql_alarm_rule_name = sql_alarm_rule_name if sql_alarm_rule_id is not None: self.sql_alarm_rule_id = sql_alarm_rule_id if sql_alarm_rule_description is not None: @@ -146,34 +159,64 @@ def __init__(self, id=None, index_id=None, language=None, project_id=None, sql_a self.update_time = update_time if topics is not None: self.topics = topics + if language is not None: + self.language = language + if id is not None: + self.id = id + if notification_frequency is not None: + self.notification_frequency = notification_frequency + if alarm_action_rule_name is not None: + self.alarm_action_rule_name = alarm_action_rule_name @property - def id(self): - """Gets the id of this UpdateSqlAlarmRuleResponse. + def sql_alarm_rule_name(self): + """Gets the sql_alarm_rule_name of this UpdateSqlAlarmRuleResponse. - 测试 + SQL告警名称 - :return: The id of this UpdateSqlAlarmRuleResponse. + :return: The sql_alarm_rule_name of this UpdateSqlAlarmRuleResponse. :rtype: str """ - return self._id + return self._sql_alarm_rule_name - @id.setter - def id(self, id): - """Sets the id of this UpdateSqlAlarmRuleResponse. + @sql_alarm_rule_name.setter + def sql_alarm_rule_name(self, sql_alarm_rule_name): + """Sets the sql_alarm_rule_name of this UpdateSqlAlarmRuleResponse. - 测试 + SQL告警名称 - :param id: The id of this UpdateSqlAlarmRuleResponse. - :type id: str + :param sql_alarm_rule_name: The sql_alarm_rule_name of this UpdateSqlAlarmRuleResponse. + :type sql_alarm_rule_name: str """ - self._id = id + self._sql_alarm_rule_name = sql_alarm_rule_name + + @property + def is_css_sql(self): + """Gets the is_css_sql of this UpdateSqlAlarmRuleResponse. + + 是否管道符sql查询 + + :return: The is_css_sql of this UpdateSqlAlarmRuleResponse. + :rtype: bool + """ + return self._is_css_sql + + @is_css_sql.setter + def is_css_sql(self, is_css_sql): + """Sets the is_css_sql of this UpdateSqlAlarmRuleResponse. + + 是否管道符sql查询 + + :param is_css_sql: The is_css_sql of this UpdateSqlAlarmRuleResponse. + :type is_css_sql: bool + """ + self._is_css_sql = is_css_sql @property def index_id(self): """Gets the index_id of this UpdateSqlAlarmRuleResponse. - 测试 + 索引id :return: The index_id of this UpdateSqlAlarmRuleResponse. :rtype: str @@ -184,40 +227,18 @@ def index_id(self): def index_id(self, index_id): """Sets the index_id of this UpdateSqlAlarmRuleResponse. - 测试 + 索引id :param index_id: The index_id of this UpdateSqlAlarmRuleResponse. :type index_id: str """ self._index_id = index_id - @property - def language(self): - """Gets the language of this UpdateSqlAlarmRuleResponse. - - 测试 - - :return: The language of this UpdateSqlAlarmRuleResponse. - :rtype: str - """ - return self._language - - @language.setter - def language(self, language): - """Sets the language of this UpdateSqlAlarmRuleResponse. - - 测试 - - :param language: The language of this UpdateSqlAlarmRuleResponse. - :type language: str - """ - self._language = language - @property def project_id(self): """Gets the project_id of this UpdateSqlAlarmRuleResponse. - 测试 + 项目id :return: The project_id of this UpdateSqlAlarmRuleResponse. :rtype: str @@ -228,35 +249,13 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this UpdateSqlAlarmRuleResponse. - 测试 + 项目id :param project_id: The project_id of this UpdateSqlAlarmRuleResponse. :type project_id: str """ self._project_id = project_id - @property - def sql_alarm_rule_name(self): - """Gets the sql_alarm_rule_name of this UpdateSqlAlarmRuleResponse. - - SQL告警名称 - - :return: The sql_alarm_rule_name of this UpdateSqlAlarmRuleResponse. - :rtype: str - """ - return self._sql_alarm_rule_name - - @sql_alarm_rule_name.setter - def sql_alarm_rule_name(self, sql_alarm_rule_name): - """Sets the sql_alarm_rule_name of this UpdateSqlAlarmRuleResponse. - - SQL告警名称 - - :param sql_alarm_rule_name: The sql_alarm_rule_name of this UpdateSqlAlarmRuleResponse. - :type sql_alarm_rule_name: str - """ - self._sql_alarm_rule_name = sql_alarm_rule_name - @property def sql_alarm_rule_id(self): """Gets the sql_alarm_rule_id of this UpdateSqlAlarmRuleResponse. @@ -328,7 +327,7 @@ def frequency(self): """Gets the frequency of this UpdateSqlAlarmRuleResponse. :return: The frequency of this UpdateSqlAlarmRuleResponse. - :rtype: :class:`huaweicloudsdklts.v2.Frequency` + :rtype: :class:`huaweicloudsdklts.v2.FrequencyRespBody` """ return self._frequency @@ -337,7 +336,7 @@ def frequency(self, frequency): """Sets the frequency of this UpdateSqlAlarmRuleResponse. :param frequency: The frequency of this UpdateSqlAlarmRuleResponse. - :type frequency: :class:`huaweicloudsdklts.v2.Frequency` + :type frequency: :class:`huaweicloudsdklts.v2.FrequencyRespBody` """ self._frequency = frequency @@ -433,7 +432,7 @@ def domain_id(self, domain_id): def create_time(self): """Gets the create_time of this UpdateSqlAlarmRuleResponse. - 创建时间(毫秒时间戳) + 创建时间(毫秒时间戳) :return: The create_time of this UpdateSqlAlarmRuleResponse. :rtype: int @@ -444,7 +443,7 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this UpdateSqlAlarmRuleResponse. - 创建时间(毫秒时间戳) + 创建时间(毫秒时间戳) :param create_time: The create_time of this UpdateSqlAlarmRuleResponse. :type create_time: int @@ -455,7 +454,7 @@ def create_time(self, create_time): def update_time(self): """Gets the update_time of this UpdateSqlAlarmRuleResponse. - 更新时间(毫秒时间戳) + 更新时间(毫秒时间戳) :return: The update_time of this UpdateSqlAlarmRuleResponse. :rtype: int @@ -466,7 +465,7 @@ def update_time(self): def update_time(self, update_time): """Sets the update_time of this UpdateSqlAlarmRuleResponse. - 更新时间(毫秒时间戳) + 更新时间(毫秒时间戳) :param update_time: The update_time of this UpdateSqlAlarmRuleResponse. :type update_time: int @@ -495,6 +494,94 @@ def topics(self, topics): """ self._topics = topics + @property + def language(self): + """Gets the language of this UpdateSqlAlarmRuleResponse. + + 邮件附加信息语言 + + :return: The language of this UpdateSqlAlarmRuleResponse. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this UpdateSqlAlarmRuleResponse. + + 邮件附加信息语言 + + :param language: The language of this UpdateSqlAlarmRuleResponse. + :type language: str + """ + self._language = language + + @property + def id(self): + """Gets the id of this UpdateSqlAlarmRuleResponse. + + 规则ID。 + + :return: The id of this UpdateSqlAlarmRuleResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateSqlAlarmRuleResponse. + + 规则ID。 + + :param id: The id of this UpdateSqlAlarmRuleResponse. + :type id: str + """ + self._id = id + + @property + def notification_frequency(self): + """Gets the notification_frequency of this UpdateSqlAlarmRuleResponse. + + 通知频率,单位(分钟) + + :return: The notification_frequency of this UpdateSqlAlarmRuleResponse. + :rtype: int + """ + return self._notification_frequency + + @notification_frequency.setter + def notification_frequency(self, notification_frequency): + """Sets the notification_frequency of this UpdateSqlAlarmRuleResponse. + + 通知频率,单位(分钟) + + :param notification_frequency: The notification_frequency of this UpdateSqlAlarmRuleResponse. + :type notification_frequency: int + """ + self._notification_frequency = notification_frequency + + @property + def alarm_action_rule_name(self): + """Gets the alarm_action_rule_name of this UpdateSqlAlarmRuleResponse. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :return: The alarm_action_rule_name of this UpdateSqlAlarmRuleResponse. + :rtype: str + """ + return self._alarm_action_rule_name + + @alarm_action_rule_name.setter + def alarm_action_rule_name(self, alarm_action_rule_name): + """Sets the alarm_action_rule_name of this UpdateSqlAlarmRuleResponse. + + 告警行动规则名称 >alarm_action_rule_name和notification_save_rule可以选填一个,如果都填,优先选择alarm_action_rule_name + + :param alarm_action_rule_name: The alarm_action_rule_name of this UpdateSqlAlarmRuleResponse. + :type alarm_action_rule_name: str + """ + self._alarm_action_rule_name = alarm_action_rule_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py index 56d935781c..83d887824e 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py @@ -51,6 +51,8 @@ class LtsRegion: "https://lts.eu-west-101.myhuaweicloud.eu") TR_WEST_1 = Region("tr-west-1", "https://lts.tr-west-1.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://lts.me-east-1.myhuaweicloud.com") static_fields = { "cn-east-2": CN_EAST_2, @@ -74,6 +76,7 @@ class LtsRegion: "ae-ad-1": AE_AD_1, "eu-west-101": EU_WEST_101, "tr-west-1": TR_WEST_1, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index da2aa20412..24d14e669b 100644 --- a/huaweicloud-sdk-lts/setup.py +++ b/huaweicloud-sdk-lts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklts" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index 23b4d3f568..2486821f27 100644 --- a/huaweicloud-sdk-mapds/setup.py +++ b/huaweicloud-sdk-mapds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmapds" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index c63de94685..dc35600db9 100644 --- a/huaweicloud-sdk-mas/setup.py +++ b/huaweicloud-sdk-mas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmas" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py index b8131e2262..48c4577790 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/__init__.py @@ -148,6 +148,8 @@ from huaweicloudsdkmeeting.v1.model.hang_up_response import HangUpResponse from huaweicloudsdkmeeting.v1.model.id_mark_dto import IdMarkDTO from huaweicloudsdkmeeting.v1.model.image_moderation_result import ImageModerationResult +from huaweicloudsdkmeeting.v1.model.interpreter_group_info import InterpreterGroupInfo +from huaweicloudsdkmeeting.v1.model.interpreter_info import InterpreterInfo from huaweicloudsdkmeeting.v1.model.invite_operate_video_request import InviteOperateVideoRequest from huaweicloudsdkmeeting.v1.model.invite_operate_video_response import InviteOperateVideoResponse from huaweicloudsdkmeeting.v1.model.invite_participant_request import InviteParticipantRequest @@ -299,12 +301,17 @@ from huaweicloudsdkmeeting.v1.model.rest_response import RestResponse from huaweicloudsdkmeeting.v1.model.rest_schedule_conf_dto import RestScheduleConfDTO from huaweicloudsdkmeeting.v1.model.rest_schedule_cycle_conf_dto import RestScheduleCycleConfDTO +from huaweicloudsdkmeeting.v1.model.rest_set_attendee_lan_channel_body import RestSetAttendeeLanChannelBody from huaweicloudsdkmeeting.v1.model.rest_set_cohost_body import RestSetCohostBody +from huaweicloudsdkmeeting.v1.model.rest_set_interpreter_group_body import RestSetInterpreterGroupBody from huaweicloudsdkmeeting.v1.model.rest_set_live_req_body import RestSetLiveReqBody from huaweicloudsdkmeeting.v1.model.rest_set_record_req_body import RestSetRecordReqBody +from huaweicloudsdkmeeting.v1.model.rest_simultaneous_interpretation_body import RestSimultaneousInterpretationBody from huaweicloudsdkmeeting.v1.model.rest_subscriber_in_pic import RestSubscriberInPic from huaweicloudsdkmeeting.v1.model.rest_switch_mode_req_body import RestSwitchModeReqBody from huaweicloudsdkmeeting.v1.model.rest_video_body import RestVideoBody +from huaweicloudsdkmeeting.v1.model.resume_simultaneous_interpretation_request import ResumeSimultaneousInterpretationRequest +from huaweicloudsdkmeeting.v1.model.resume_simultaneous_interpretation_response import ResumeSimultaneousInterpretationResponse from huaweicloudsdkmeeting.v1.model.rollcall_participant_request import RollcallParticipantRequest from huaweicloudsdkmeeting.v1.model.rollcall_participant_response import RollcallParticipantResponse from huaweicloudsdkmeeting.v1.model.save_layout_request import SaveLayoutRequest @@ -378,6 +385,8 @@ from huaweicloudsdkmeeting.v1.model.send_veri_code_for_change_pwd_response import SendVeriCodeForChangePwdResponse from huaweicloudsdkmeeting.v1.model.send_veri_code_for_update_user_info_request import SendVeriCodeForUpdateUserInfoRequest from huaweicloudsdkmeeting.v1.model.send_veri_code_for_update_user_info_response import SendVeriCodeForUpdateUserInfoResponse +from huaweicloudsdkmeeting.v1.model.set_attendee_lan_channel_request import SetAttendeeLanChannelRequest +from huaweicloudsdkmeeting.v1.model.set_attendee_lan_channel_response import SetAttendeeLanChannelResponse from huaweicloudsdkmeeting.v1.model.set_cpu_threshold_data import SetCPUThresholdData from huaweicloudsdkmeeting.v1.model.set_cohost_request import SetCohostRequest from huaweicloudsdkmeeting.v1.model.set_cohost_response import SetCohostResponse @@ -385,6 +394,8 @@ from huaweicloudsdkmeeting.v1.model.set_custom_multi_picture_response import SetCustomMultiPictureResponse from huaweicloudsdkmeeting.v1.model.set_host_view_request import SetHostViewRequest from huaweicloudsdkmeeting.v1.model.set_host_view_response import SetHostViewResponse +from huaweicloudsdkmeeting.v1.model.set_interpreter_group_request import SetInterpreterGroupRequest +from huaweicloudsdkmeeting.v1.model.set_interpreter_group_response import SetInterpreterGroupResponse from huaweicloudsdkmeeting.v1.model.set_multi_picture_request import SetMultiPictureRequest from huaweicloudsdkmeeting.v1.model.set_multi_picture_response import SetMultiPictureResponse from huaweicloudsdkmeeting.v1.model.set_packet_threshold_data import SetPacketThresholdData diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py index 8a5e8cc649..681ae78f7d 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_async_client.py @@ -5357,6 +5357,75 @@ def _reset_vision_active_code_http_info(self, request): return http_info + def resume_simultaneous_interpretation_async(self, request): + """开启/关闭同声传译 + + 该接口用于会议主席可以通过该接口开启/关闭同声传译。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ResumeSimultaneousInterpretation + :type request: :class:`huaweicloudsdkmeeting.v1.ResumeSimultaneousInterpretationRequest` + :rtype: :class:`huaweicloudsdkmeeting.v1.ResumeSimultaneousInterpretationResponse` + """ + http_info = self._resume_simultaneous_interpretation_http_info(request) + return self._call_api(**http_info) + + def resume_simultaneous_interpretation_async_invoker(self, request): + http_info = self._resume_simultaneous_interpretation_http_info(request) + return AsyncInvoker(self, http_info) + + def _resume_simultaneous_interpretation_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/mmc/control/conferences/simultaneousInterpretation", + "request_type": request.__class__.__name__, + "response_type": "ResumeSimultaneousInterpretationResponse" + } + + 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 'conference_id' in local_var_params: + query_params.append(('conferenceID', local_var_params['conference_id'])) + + header_params = {} + if 'x_conference_authorization' in local_var_params: + header_params['X-Conference-Authorization'] = local_var_params['x_conference_authorization'] + + 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 rollcall_participant_async(self, request): """点名会场 @@ -7508,6 +7577,75 @@ def _send_veri_code_for_update_user_info_http_info(self, request): return http_info + def set_attendee_lan_channel_async(self, request): + """设置普通与会人的语言频道 + + 主持人通过该接口设置某些普通与会者(包括主持人)加入哪个语言频道。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SetAttendeeLanChannel + :type request: :class:`huaweicloudsdkmeeting.v1.SetAttendeeLanChannelRequest` + :rtype: :class:`huaweicloudsdkmeeting.v1.SetAttendeeLanChannelResponse` + """ + http_info = self._set_attendee_lan_channel_http_info(request) + return self._call_api(**http_info) + + def set_attendee_lan_channel_async_invoker(self, request): + http_info = self._set_attendee_lan_channel_http_info(request) + return AsyncInvoker(self, http_info) + + def _set_attendee_lan_channel_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/mmc/control/conferences/setAttendeeLanChannel", + "request_type": request.__class__.__name__, + "response_type": "SetAttendeeLanChannelResponse" + } + + 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 'conference_id' in local_var_params: + query_params.append(('conferenceID', local_var_params['conference_id'])) + + header_params = {} + if 'x_conference_authorization' in local_var_params: + header_params['X-Conference-Authorization'] = local_var_params['x_conference_authorization'] + + 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 set_cohost_async(self, request): """申请联席主持人 @@ -7717,6 +7855,75 @@ def _set_host_view_http_info(self, request): return http_info + def set_interpreter_group_async(self, request): + """设置传译组 + + 主持人通过该接口设置传译组,每个传译组支持两种语言,传译组内支持多个传译员。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SetInterpreterGroup + :type request: :class:`huaweicloudsdkmeeting.v1.SetInterpreterGroupRequest` + :rtype: :class:`huaweicloudsdkmeeting.v1.SetInterpreterGroupResponse` + """ + http_info = self._set_interpreter_group_http_info(request) + return self._call_api(**http_info) + + def set_interpreter_group_async_invoker(self, request): + http_info = self._set_interpreter_group_http_info(request) + return AsyncInvoker(self, http_info) + + def _set_interpreter_group_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/mmc/control/conferences/interpreterGroup", + "request_type": request.__class__.__name__, + "response_type": "SetInterpreterGroupResponse" + } + + 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 'conference_id' in local_var_params: + query_params.append(('conferenceID', local_var_params['conference_id'])) + + header_params = {} + if 'x_conference_authorization' in local_var_params: + header_params['X-Conference-Authorization'] = local_var_params['x_conference_authorization'] + + 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 set_multi_picture_async(self, request): """设置多画面 diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py index 0f3aba1eef..3f40eaa884 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_client.py @@ -5357,6 +5357,75 @@ def _reset_vision_active_code_http_info(cls, request): return http_info + def resume_simultaneous_interpretation(self, request): + """开启/关闭同声传译 + + 该接口用于会议主席可以通过该接口开启/关闭同声传译。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ResumeSimultaneousInterpretation + :type request: :class:`huaweicloudsdkmeeting.v1.ResumeSimultaneousInterpretationRequest` + :rtype: :class:`huaweicloudsdkmeeting.v1.ResumeSimultaneousInterpretationResponse` + """ + http_info = self._resume_simultaneous_interpretation_http_info(request) + return self._call_api(**http_info) + + def resume_simultaneous_interpretation_invoker(self, request): + http_info = self._resume_simultaneous_interpretation_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _resume_simultaneous_interpretation_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/mmc/control/conferences/simultaneousInterpretation", + "request_type": request.__class__.__name__, + "response_type": "ResumeSimultaneousInterpretationResponse" + } + + 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 'conference_id' in local_var_params: + query_params.append(('conferenceID', local_var_params['conference_id'])) + + header_params = {} + if 'x_conference_authorization' in local_var_params: + header_params['X-Conference-Authorization'] = local_var_params['x_conference_authorization'] + + 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 rollcall_participant(self, request): """点名会场 @@ -7508,6 +7577,75 @@ def _send_veri_code_for_update_user_info_http_info(cls, request): return http_info + def set_attendee_lan_channel(self, request): + """设置普通与会人的语言频道 + + 主持人通过该接口设置某些普通与会者(包括主持人)加入哪个语言频道。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SetAttendeeLanChannel + :type request: :class:`huaweicloudsdkmeeting.v1.SetAttendeeLanChannelRequest` + :rtype: :class:`huaweicloudsdkmeeting.v1.SetAttendeeLanChannelResponse` + """ + http_info = self._set_attendee_lan_channel_http_info(request) + return self._call_api(**http_info) + + def set_attendee_lan_channel_invoker(self, request): + http_info = self._set_attendee_lan_channel_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _set_attendee_lan_channel_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/mmc/control/conferences/setAttendeeLanChannel", + "request_type": request.__class__.__name__, + "response_type": "SetAttendeeLanChannelResponse" + } + + 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 'conference_id' in local_var_params: + query_params.append(('conferenceID', local_var_params['conference_id'])) + + header_params = {} + if 'x_conference_authorization' in local_var_params: + header_params['X-Conference-Authorization'] = local_var_params['x_conference_authorization'] + + 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 set_cohost(self, request): """申请联席主持人 @@ -7717,6 +7855,75 @@ def _set_host_view_http_info(cls, request): return http_info + def set_interpreter_group(self, request): + """设置传译组 + + 主持人通过该接口设置传译组,每个传译组支持两种语言,传译组内支持多个传译员。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SetInterpreterGroup + :type request: :class:`huaweicloudsdkmeeting.v1.SetInterpreterGroupRequest` + :rtype: :class:`huaweicloudsdkmeeting.v1.SetInterpreterGroupResponse` + """ + http_info = self._set_interpreter_group_http_info(request) + return self._call_api(**http_info) + + def set_interpreter_group_invoker(self, request): + http_info = self._set_interpreter_group_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _set_interpreter_group_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/mmc/control/conferences/interpreterGroup", + "request_type": request.__class__.__name__, + "response_type": "SetInterpreterGroupResponse" + } + + 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 'conference_id' in local_var_params: + query_params.append(('conferenceID', local_var_params['conference_id'])) + + header_params = {} + if 'x_conference_authorization' in local_var_params: + header_params['X-Conference-Authorization'] = local_var_params['x_conference_authorization'] + + 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 set_multi_picture(self, request): """设置多画面 diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py index 05b05d22e5..4003d27756 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/__init__.py @@ -146,6 +146,8 @@ from huaweicloudsdkmeeting.v1.model.hang_up_response import HangUpResponse from huaweicloudsdkmeeting.v1.model.id_mark_dto import IdMarkDTO from huaweicloudsdkmeeting.v1.model.image_moderation_result import ImageModerationResult +from huaweicloudsdkmeeting.v1.model.interpreter_group_info import InterpreterGroupInfo +from huaweicloudsdkmeeting.v1.model.interpreter_info import InterpreterInfo from huaweicloudsdkmeeting.v1.model.invite_operate_video_request import InviteOperateVideoRequest from huaweicloudsdkmeeting.v1.model.invite_operate_video_response import InviteOperateVideoResponse from huaweicloudsdkmeeting.v1.model.invite_participant_request import InviteParticipantRequest @@ -297,12 +299,17 @@ from huaweicloudsdkmeeting.v1.model.rest_response import RestResponse from huaweicloudsdkmeeting.v1.model.rest_schedule_conf_dto import RestScheduleConfDTO from huaweicloudsdkmeeting.v1.model.rest_schedule_cycle_conf_dto import RestScheduleCycleConfDTO +from huaweicloudsdkmeeting.v1.model.rest_set_attendee_lan_channel_body import RestSetAttendeeLanChannelBody from huaweicloudsdkmeeting.v1.model.rest_set_cohost_body import RestSetCohostBody +from huaweicloudsdkmeeting.v1.model.rest_set_interpreter_group_body import RestSetInterpreterGroupBody from huaweicloudsdkmeeting.v1.model.rest_set_live_req_body import RestSetLiveReqBody from huaweicloudsdkmeeting.v1.model.rest_set_record_req_body import RestSetRecordReqBody +from huaweicloudsdkmeeting.v1.model.rest_simultaneous_interpretation_body import RestSimultaneousInterpretationBody from huaweicloudsdkmeeting.v1.model.rest_subscriber_in_pic import RestSubscriberInPic from huaweicloudsdkmeeting.v1.model.rest_switch_mode_req_body import RestSwitchModeReqBody from huaweicloudsdkmeeting.v1.model.rest_video_body import RestVideoBody +from huaweicloudsdkmeeting.v1.model.resume_simultaneous_interpretation_request import ResumeSimultaneousInterpretationRequest +from huaweicloudsdkmeeting.v1.model.resume_simultaneous_interpretation_response import ResumeSimultaneousInterpretationResponse from huaweicloudsdkmeeting.v1.model.rollcall_participant_request import RollcallParticipantRequest from huaweicloudsdkmeeting.v1.model.rollcall_participant_response import RollcallParticipantResponse from huaweicloudsdkmeeting.v1.model.save_layout_request import SaveLayoutRequest @@ -376,6 +383,8 @@ from huaweicloudsdkmeeting.v1.model.send_veri_code_for_change_pwd_response import SendVeriCodeForChangePwdResponse from huaweicloudsdkmeeting.v1.model.send_veri_code_for_update_user_info_request import SendVeriCodeForUpdateUserInfoRequest from huaweicloudsdkmeeting.v1.model.send_veri_code_for_update_user_info_response import SendVeriCodeForUpdateUserInfoResponse +from huaweicloudsdkmeeting.v1.model.set_attendee_lan_channel_request import SetAttendeeLanChannelRequest +from huaweicloudsdkmeeting.v1.model.set_attendee_lan_channel_response import SetAttendeeLanChannelResponse from huaweicloudsdkmeeting.v1.model.set_cpu_threshold_data import SetCPUThresholdData from huaweicloudsdkmeeting.v1.model.set_cohost_request import SetCohostRequest from huaweicloudsdkmeeting.v1.model.set_cohost_response import SetCohostResponse @@ -383,6 +392,8 @@ from huaweicloudsdkmeeting.v1.model.set_custom_multi_picture_response import SetCustomMultiPictureResponse from huaweicloudsdkmeeting.v1.model.set_host_view_request import SetHostViewRequest from huaweicloudsdkmeeting.v1.model.set_host_view_response import SetHostViewResponse +from huaweicloudsdkmeeting.v1.model.set_interpreter_group_request import SetInterpreterGroupRequest +from huaweicloudsdkmeeting.v1.model.set_interpreter_group_response import SetInterpreterGroupResponse from huaweicloudsdkmeeting.v1.model.set_multi_picture_request import SetMultiPictureRequest from huaweicloudsdkmeeting.v1.model.set_multi_picture_response import SetMultiPictureResponse from huaweicloudsdkmeeting.v1.model.set_packet_threshold_data import SetPacketThresholdData diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/conference_info.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/conference_info.py index 5a48befdf3..7e55715c82 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/conference_info.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/conference_info.py @@ -61,6 +61,7 @@ class ConferenceInfo: 'conf_mode': 'str', 'schedule_vmr': 'bool', 'concurrent_participants': 'int', + 'support_simultaneous_interpretation': 'bool', 'pic_display': 'MultiPicDisplayDO', 'sub_confs': 'list[CycleSubConf]', 'cycle_sub_conf_id': 'str' @@ -111,12 +112,13 @@ class ConferenceInfo: 'conf_mode': 'confMode', 'schedule_vmr': 'scheduleVmr', 'concurrent_participants': 'concurrentParticipants', + 'support_simultaneous_interpretation': 'supportSimultaneousInterpretation', 'pic_display': 'picDisplay', 'sub_confs': 'subConfs', 'cycle_sub_conf_id': 'cycleSubConfID' } - def __init__(self, conference_id=None, subject=None, size=None, time_zone_id=None, start_time=None, end_time=None, media_types=None, conference_state=None, language=None, access_number=None, password_entry=None, user_uuid=None, scheduser_name=None, conference_type=None, conf_type=None, cycle_params=None, is_auto_mute=None, is_auto_record=None, chair_join_uri=None, guest_join_uri=None, audience_join_uri=None, record_type=None, aux_address=None, live_address=None, record_aux_stream=None, record_auth_type=None, live_url=None, conf_config_info=None, vmr_flag=None, is_has_record_file=None, vmr_conference_id=None, conf_uuid=None, part_attendee_info=None, terminl_count=None, normal_count=None, dept_name=None, vmr_id=None, role=None, webinar=None, online_attendee_amount=None, multi_stream_flag=None, conf_mode=None, schedule_vmr=None, concurrent_participants=None, pic_display=None, sub_confs=None, cycle_sub_conf_id=None): + def __init__(self, conference_id=None, subject=None, size=None, time_zone_id=None, start_time=None, end_time=None, media_types=None, conference_state=None, language=None, access_number=None, password_entry=None, user_uuid=None, scheduser_name=None, conference_type=None, conf_type=None, cycle_params=None, is_auto_mute=None, is_auto_record=None, chair_join_uri=None, guest_join_uri=None, audience_join_uri=None, record_type=None, aux_address=None, live_address=None, record_aux_stream=None, record_auth_type=None, live_url=None, conf_config_info=None, vmr_flag=None, is_has_record_file=None, vmr_conference_id=None, conf_uuid=None, part_attendee_info=None, terminl_count=None, normal_count=None, dept_name=None, vmr_id=None, role=None, webinar=None, online_attendee_amount=None, multi_stream_flag=None, conf_mode=None, schedule_vmr=None, concurrent_participants=None, support_simultaneous_interpretation=None, pic_display=None, sub_confs=None, cycle_sub_conf_id=None): """ConferenceInfo The model defined in huaweicloud sdk @@ -209,6 +211,8 @@ def __init__(self, conference_id=None, subject=None, size=None, time_zone_id=Non :type schedule_vmr: bool :param concurrent_participants: 会议最大与会人数。默认值0。 * 0:无限制 * 大于0:会议最大与会人数 :type concurrent_participants: int + :param support_simultaneous_interpretation: 会议是否支持同声传译。默认值false。 * true:支持 * false:不支持 + :type support_simultaneous_interpretation: bool :param pic_display: :type pic_display: :class:`huaweicloudsdkmeeting.v1.MultiPicDisplayDO` :param sub_confs: 周期子会议列表。 @@ -263,6 +267,7 @@ def __init__(self, conference_id=None, subject=None, size=None, time_zone_id=Non self._conf_mode = None self._schedule_vmr = None self._concurrent_participants = None + self._support_simultaneous_interpretation = None self._pic_display = None self._sub_confs = None self._cycle_sub_conf_id = None @@ -356,6 +361,8 @@ def __init__(self, conference_id=None, subject=None, size=None, time_zone_id=Non self.schedule_vmr = schedule_vmr if concurrent_participants is not None: self.concurrent_participants = concurrent_participants + if support_simultaneous_interpretation is not None: + self.support_simultaneous_interpretation = support_simultaneous_interpretation if pic_display is not None: self.pic_display = pic_display if sub_confs is not None: @@ -1323,6 +1330,28 @@ def concurrent_participants(self, concurrent_participants): """ self._concurrent_participants = concurrent_participants + @property + def support_simultaneous_interpretation(self): + """Gets the support_simultaneous_interpretation of this ConferenceInfo. + + 会议是否支持同声传译。默认值false。 * true:支持 * false:不支持 + + :return: The support_simultaneous_interpretation of this ConferenceInfo. + :rtype: bool + """ + return self._support_simultaneous_interpretation + + @support_simultaneous_interpretation.setter + def support_simultaneous_interpretation(self, support_simultaneous_interpretation): + """Sets the support_simultaneous_interpretation of this ConferenceInfo. + + 会议是否支持同声传译。默认值false。 * true:支持 * false:不支持 + + :param support_simultaneous_interpretation: The support_simultaneous_interpretation of this ConferenceInfo. + :type support_simultaneous_interpretation: bool + """ + self._support_simultaneous_interpretation = support_simultaneous_interpretation + @property def pic_display(self): """Gets the pic_display of this ConferenceInfo. diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/create_webinar_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/create_webinar_response.py index 2fc260a6c9..c1ca7e74b9 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/create_webinar_response.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/create_webinar_response.py @@ -40,6 +40,9 @@ class CreateWebinarResponse(SdkResponse): 'audience_join_uri': 'str', 'audience_passwd': 'str', 'enable_recording': 'YesNoEnum', + 'live_address': 'str', + 'aux_address': 'str', + 'live_url': 'str', 'attendees': 'list[str]' } @@ -66,10 +69,13 @@ class CreateWebinarResponse(SdkResponse): 'audience_join_uri': 'audienceJoinUri', 'audience_passwd': 'audiencePasswd', 'enable_recording': 'enableRecording', + 'live_address': 'liveAddress', + 'aux_address': 'auxAddress', + 'live_url': 'liveUrl', 'attendees': 'attendees' } - def __init__(self, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, state=None, scheduser_id=None, dept_name=None, scheduser_name=None, vmr_pkg_name=None, call_restriction=None, scope=None, audience_scope=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None, enable_recording=None, attendees=None): + def __init__(self, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, state=None, scheduser_id=None, dept_name=None, scheduser_name=None, vmr_pkg_name=None, call_restriction=None, scope=None, audience_scope=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None, enable_recording=None, live_address=None, aux_address=None, live_url=None, attendees=None): """CreateWebinarResponse The model defined in huaweicloud sdk @@ -118,6 +124,12 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N :type audience_passwd: str :param enable_recording: :type enable_recording: :class:`huaweicloudsdkmeeting.v1.YesNoEnum` + :param live_address: 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + :type live_address: str + :param aux_address: 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + :type aux_address: str + :param live_url: 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + :type live_url: str :param attendees: 与会嘉宾名称列表。 :type attendees: list[str] """ @@ -146,6 +158,9 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N self._audience_join_uri = None self._audience_passwd = None self._enable_recording = None + self._live_address = None + self._aux_address = None + self._live_url = None self._attendees = None self.discriminator = None @@ -193,6 +208,12 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N self.audience_passwd = audience_passwd if enable_recording is not None: self.enable_recording = enable_recording + if live_address is not None: + self.live_address = live_address + if aux_address is not None: + self.aux_address = aux_address + if live_url is not None: + self.live_url = live_url if attendees is not None: self.attendees = attendees @@ -672,6 +693,72 @@ def enable_recording(self, enable_recording): """ self._enable_recording = enable_recording + @property + def live_address(self): + """Gets the live_address of this CreateWebinarResponse. + + 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :return: The live_address of this CreateWebinarResponse. + :rtype: str + """ + return self._live_address + + @live_address.setter + def live_address(self, live_address): + """Sets the live_address of this CreateWebinarResponse. + + 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :param live_address: The live_address of this CreateWebinarResponse. + :type live_address: str + """ + self._live_address = live_address + + @property + def aux_address(self): + """Gets the aux_address of this CreateWebinarResponse. + + 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :return: The aux_address of this CreateWebinarResponse. + :rtype: str + """ + return self._aux_address + + @aux_address.setter + def aux_address(self, aux_address): + """Sets the aux_address of this CreateWebinarResponse. + + 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :param aux_address: The aux_address of this CreateWebinarResponse. + :type aux_address: str + """ + self._aux_address = aux_address + + @property + def live_url(self): + """Gets the live_url of this CreateWebinarResponse. + + 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + + :return: The live_url of this CreateWebinarResponse. + :rtype: str + """ + return self._live_url + + @live_url.setter + def live_url(self, live_url): + """Sets the live_url of this CreateWebinarResponse. + + 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + + :param live_url: The live_url of this CreateWebinarResponse. + :type live_url: str + """ + self._live_url = live_url + @property def attendees(self): """Gets the attendees of this CreateWebinarResponse. diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/interpreter_group_info.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/interpreter_group_info.py new file mode 100644 index 0000000000..801e1e8913 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/interpreter_group_info.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class InterpreterGroupInfo: + + """ + 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 = { + 'group_id': 'str', + 'group_name': 'str', + 'first_language': 'str', + 'second_language': 'str', + 'interpreters': 'list[InterpreterInfo]' + } + + attribute_map = { + 'group_id': 'groupID', + 'group_name': 'groupName', + 'first_language': 'firstLanguage', + 'second_language': 'secondLanguage', + 'interpreters': 'interpreters' + } + + def __init__(self, group_id=None, group_name=None, first_language=None, second_language=None, interpreters=None): + """InterpreterGroupInfo + + The model defined in huaweicloud sdk + + :param group_id: 传译组序号。 + :type group_id: str + :param group_name: 传译组名称。 + :type group_name: str + :param first_language: 传译组支持的第一种语言。 + :type first_language: str + :param second_language: 传译组支持的第二种语言。 + :type second_language: str + :param interpreters: 传译员列表。 + :type interpreters: list[:class:`huaweicloudsdkmeeting.v1.InterpreterInfo`] + """ + + + + self._group_id = None + self._group_name = None + self._first_language = None + self._second_language = None + self._interpreters = None + self.discriminator = None + + self.group_id = group_id + self.group_name = group_name + self.first_language = first_language + self.second_language = second_language + if interpreters is not None: + self.interpreters = interpreters + + @property + def group_id(self): + """Gets the group_id of this InterpreterGroupInfo. + + 传译组序号。 + + :return: The group_id of this InterpreterGroupInfo. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this InterpreterGroupInfo. + + 传译组序号。 + + :param group_id: The group_id of this InterpreterGroupInfo. + :type group_id: str + """ + self._group_id = group_id + + @property + def group_name(self): + """Gets the group_name of this InterpreterGroupInfo. + + 传译组名称。 + + :return: The group_name of this InterpreterGroupInfo. + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this InterpreterGroupInfo. + + 传译组名称。 + + :param group_name: The group_name of this InterpreterGroupInfo. + :type group_name: str + """ + self._group_name = group_name + + @property + def first_language(self): + """Gets the first_language of this InterpreterGroupInfo. + + 传译组支持的第一种语言。 + + :return: The first_language of this InterpreterGroupInfo. + :rtype: str + """ + return self._first_language + + @first_language.setter + def first_language(self, first_language): + """Sets the first_language of this InterpreterGroupInfo. + + 传译组支持的第一种语言。 + + :param first_language: The first_language of this InterpreterGroupInfo. + :type first_language: str + """ + self._first_language = first_language + + @property + def second_language(self): + """Gets the second_language of this InterpreterGroupInfo. + + 传译组支持的第二种语言。 + + :return: The second_language of this InterpreterGroupInfo. + :rtype: str + """ + return self._second_language + + @second_language.setter + def second_language(self, second_language): + """Sets the second_language of this InterpreterGroupInfo. + + 传译组支持的第二种语言。 + + :param second_language: The second_language of this InterpreterGroupInfo. + :type second_language: str + """ + self._second_language = second_language + + @property + def interpreters(self): + """Gets the interpreters of this InterpreterGroupInfo. + + 传译员列表。 + + :return: The interpreters of this InterpreterGroupInfo. + :rtype: list[:class:`huaweicloudsdkmeeting.v1.InterpreterInfo`] + """ + return self._interpreters + + @interpreters.setter + def interpreters(self, interpreters): + """Sets the interpreters of this InterpreterGroupInfo. + + 传译员列表。 + + :param interpreters: The interpreters of this InterpreterGroupInfo. + :type interpreters: list[:class:`huaweicloudsdkmeeting.v1.InterpreterInfo`] + """ + self._interpreters = interpreters + + 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, InterpreterGroupInfo): + 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-meeting/huaweicloudsdkmeeting/v1/model/interpreter_info.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/interpreter_info.py new file mode 100644 index 0000000000..7a3aa53c61 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/interpreter_info.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class InterpreterInfo: + + """ + 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 = { + 'login_account': 'str', + 'user_id': 'str', + 'call_number': 'str', + 'name': 'str' + } + + attribute_map = { + 'login_account': 'loginAccount', + 'user_id': 'userID', + 'call_number': 'callNumber', + 'name': 'name' + } + + def __init__(self, login_account=None, user_id=None, call_number=None, name=None): + """InterpreterInfo + + The model defined in huaweicloud sdk + + :param login_account: 用户登录账号,可以是账号、手机、邮箱其中一个,loginAccount和userID必须二选一。 + :type login_account: str + :param user_id: 用户的userUUID。 + :type user_id: str + :param call_number: 呼叫号码。 + :type call_number: str + :param name: 用户名。 + :type name: str + """ + + + + self._login_account = None + self._user_id = None + self._call_number = None + self._name = None + self.discriminator = None + + self.login_account = login_account + if user_id is not None: + self.user_id = user_id + if call_number is not None: + self.call_number = call_number + if name is not None: + self.name = name + + @property + def login_account(self): + """Gets the login_account of this InterpreterInfo. + + 用户登录账号,可以是账号、手机、邮箱其中一个,loginAccount和userID必须二选一。 + + :return: The login_account of this InterpreterInfo. + :rtype: str + """ + return self._login_account + + @login_account.setter + def login_account(self, login_account): + """Sets the login_account of this InterpreterInfo. + + 用户登录账号,可以是账号、手机、邮箱其中一个,loginAccount和userID必须二选一。 + + :param login_account: The login_account of this InterpreterInfo. + :type login_account: str + """ + self._login_account = login_account + + @property + def user_id(self): + """Gets the user_id of this InterpreterInfo. + + 用户的userUUID。 + + :return: The user_id of this InterpreterInfo. + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this InterpreterInfo. + + 用户的userUUID。 + + :param user_id: The user_id of this InterpreterInfo. + :type user_id: str + """ + self._user_id = user_id + + @property + def call_number(self): + """Gets the call_number of this InterpreterInfo. + + 呼叫号码。 + + :return: The call_number of this InterpreterInfo. + :rtype: str + """ + return self._call_number + + @call_number.setter + def call_number(self, call_number): + """Sets the call_number of this InterpreterInfo. + + 呼叫号码。 + + :param call_number: The call_number of this InterpreterInfo. + :type call_number: str + """ + self._call_number = call_number + + @property + def name(self): + """Gets the name of this InterpreterInfo. + + 用户名。 + + :return: The name of this InterpreterInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this InterpreterInfo. + + 用户名。 + + :param name: The name of this InterpreterInfo. + :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, InterpreterInfo): + 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-meeting/huaweicloudsdkmeeting/v1/model/multi_pic_display_do.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/multi_pic_display_do.py index f015996a6d..fc025be009 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/multi_pic_display_do.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/multi_pic_display_do.py @@ -20,7 +20,7 @@ class MultiPicDisplayDO: 'manual_set': 'int', 'image_type': 'str', 'subscriber_in_pics': 'list[PicInfoNotify]', - 'switch_time': 'str', + 'switch_time': 'int', 'pic_layout_info': 'PicLayoutInfo' } @@ -44,7 +44,7 @@ def __init__(self, manual_set=None, image_type=None, subscriber_in_pics=None, sw :param subscriber_in_pics: 子画面列表。 :type subscriber_in_pics: list[:class:`huaweicloudsdkmeeting.v1.PicInfoNotify`] :param switch_time: 表示轮询间隔,单位:秒。当同一个子画面中包含有多个视频源时,此参数有效。 - :type switch_time: str + :type switch_time: int :param pic_layout_info: :type pic_layout_info: :class:`huaweicloudsdkmeeting.v1.PicLayoutInfo` """ @@ -142,7 +142,7 @@ def switch_time(self): 表示轮询间隔,单位:秒。当同一个子画面中包含有多个视频源时,此参数有效。 :return: The switch_time of this MultiPicDisplayDO. - :rtype: str + :rtype: int """ return self._switch_time @@ -153,7 +153,7 @@ def switch_time(self, switch_time): 表示轮询间隔,单位:秒。当同一个子画面中包含有多个视频源时,此参数有效。 :param switch_time: The switch_time of this MultiPicDisplayDO. - :type switch_time: str + :type switch_time: int """ self._switch_time = switch_time diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_edit_conf_req.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_edit_conf_req.py index 4a269a97f3..990563b105 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_edit_conf_req.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_edit_conf_req.py @@ -30,7 +30,10 @@ class OpenEditConfReq: 'call_restriction': 'bool', 'scope': 'int', 'audience_scope': 'int', - 'enable_recording': 'YesNoEnum' + 'enable_recording': 'YesNoEnum', + 'live_address': 'str', + 'aux_address': 'str', + 'live_url': 'str' } attribute_map = { @@ -47,10 +50,13 @@ class OpenEditConfReq: 'call_restriction': 'callRestriction', 'scope': 'scope', 'audience_scope': 'audienceScope', - 'enable_recording': 'enableRecording' + 'enable_recording': 'enableRecording', + 'live_address': 'liveAddress', + 'aux_address': 'auxAddress', + 'live_url': 'liveUrl' } - def __init__(self, conference_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, attendees=None, notify_setting=None, guest_passwd=None, audience_passwd=None, call_restriction=None, scope=None, audience_scope=None, enable_recording=None): + def __init__(self, conference_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, attendees=None, notify_setting=None, guest_passwd=None, audience_passwd=None, call_restriction=None, scope=None, audience_scope=None, enable_recording=None, live_address=None, aux_address=None, live_url=None): """OpenEditConfReq The model defined in huaweicloud sdk @@ -83,6 +89,12 @@ def __init__(self, conference_id=None, subject=None, description=None, start_tim :type audience_scope: int :param enable_recording: :type enable_recording: :class:`huaweicloudsdkmeeting.v1.YesNoEnum` + :param live_address: 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + :type live_address: str + :param aux_address: 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + :type aux_address: str + :param live_url: 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + :type live_url: str """ @@ -101,6 +113,9 @@ def __init__(self, conference_id=None, subject=None, description=None, start_tim self._scope = None self._audience_scope = None self._enable_recording = None + self._live_address = None + self._aux_address = None + self._live_url = None self.discriminator = None self.conference_id = conference_id @@ -126,6 +141,12 @@ def __init__(self, conference_id=None, subject=None, description=None, start_tim self.audience_scope = audience_scope if enable_recording is not None: self.enable_recording = enable_recording + if live_address is not None: + self.live_address = live_address + if aux_address is not None: + self.aux_address = aux_address + if live_url is not None: + self.live_url = live_url @property def conference_id(self): @@ -427,6 +448,72 @@ def enable_recording(self, enable_recording): """ self._enable_recording = enable_recording + @property + def live_address(self): + """Gets the live_address of this OpenEditConfReq. + + 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :return: The live_address of this OpenEditConfReq. + :rtype: str + """ + return self._live_address + + @live_address.setter + def live_address(self, live_address): + """Sets the live_address of this OpenEditConfReq. + + 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :param live_address: The live_address of this OpenEditConfReq. + :type live_address: str + """ + self._live_address = live_address + + @property + def aux_address(self): + """Gets the aux_address of this OpenEditConfReq. + + 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :return: The aux_address of this OpenEditConfReq. + :rtype: str + """ + return self._aux_address + + @aux_address.setter + def aux_address(self, aux_address): + """Sets the aux_address of this OpenEditConfReq. + + 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :param aux_address: The aux_address of this OpenEditConfReq. + :type aux_address: str + """ + self._aux_address = aux_address + + @property + def live_url(self): + """Gets the live_url of this OpenEditConfReq. + + 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + + :return: The live_url of this OpenEditConfReq. + :rtype: str + """ + return self._live_url + + @live_url.setter + def live_url(self, live_url): + """Sets the live_url of this OpenEditConfReq. + + 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + + :param live_url: The live_url of this OpenEditConfReq. + :type live_url: str + """ + self._live_url = live_url + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_schedule_conf_req.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_schedule_conf_req.py index 7bf10337af..1881ef449f 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_schedule_conf_req.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_schedule_conf_req.py @@ -30,7 +30,10 @@ class OpenScheduleConfReq: 'call_restriction': 'bool', 'scope': 'int', 'audience_scope': 'int', - 'enable_recording': 'YesNoEnum' + 'enable_recording': 'YesNoEnum', + 'live_address': 'str', + 'aux_address': 'str', + 'live_url': 'str' } attribute_map = { @@ -47,10 +50,13 @@ class OpenScheduleConfReq: 'call_restriction': 'callRestriction', 'scope': 'scope', 'audience_scope': 'audienceScope', - 'enable_recording': 'enableRecording' + 'enable_recording': 'enableRecording', + 'live_address': 'liveAddress', + 'aux_address': 'auxAddress', + 'live_url': 'liveUrl' } - def __init__(self, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, attendees=None, notify_setting=None, vmr_id=None, guest_passwd=None, audience_passwd=None, call_restriction=None, scope=None, audience_scope=None, enable_recording=None): + def __init__(self, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, attendees=None, notify_setting=None, vmr_id=None, guest_passwd=None, audience_passwd=None, call_restriction=None, scope=None, audience_scope=None, enable_recording=None, live_address=None, aux_address=None, live_url=None): """OpenScheduleConfReq The model defined in huaweicloud sdk @@ -83,6 +89,12 @@ def __init__(self, subject=None, description=None, start_time=None, duration=Non :type audience_scope: int :param enable_recording: :type enable_recording: :class:`huaweicloudsdkmeeting.v1.YesNoEnum` + :param live_address: 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + :type live_address: str + :param aux_address: 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + :type aux_address: str + :param live_url: 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + :type live_url: str """ @@ -101,6 +113,9 @@ def __init__(self, subject=None, description=None, start_time=None, duration=Non self._scope = None self._audience_scope = None self._enable_recording = None + self._live_address = None + self._aux_address = None + self._live_url = None self.discriminator = None self.subject = subject @@ -126,6 +141,12 @@ def __init__(self, subject=None, description=None, start_time=None, duration=Non self.audience_scope = audience_scope if enable_recording is not None: self.enable_recording = enable_recording + if live_address is not None: + self.live_address = live_address + if aux_address is not None: + self.aux_address = aux_address + if live_url is not None: + self.live_url = live_url @property def subject(self): @@ -427,6 +448,72 @@ def enable_recording(self, enable_recording): """ self._enable_recording = enable_recording + @property + def live_address(self): + """Gets the live_address of this OpenScheduleConfReq. + + 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :return: The live_address of this OpenScheduleConfReq. + :rtype: str + """ + return self._live_address + + @live_address.setter + def live_address(self, live_address): + """Sets the live_address of this OpenScheduleConfReq. + + 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :param live_address: The live_address of this OpenScheduleConfReq. + :type live_address: str + """ + self._live_address = live_address + + @property + def aux_address(self): + """Gets the aux_address of this OpenScheduleConfReq. + + 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :return: The aux_address of this OpenScheduleConfReq. + :rtype: str + """ + return self._aux_address + + @aux_address.setter + def aux_address(self, aux_address): + """Sets the aux_address of this OpenScheduleConfReq. + + 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :param aux_address: The aux_address of this OpenScheduleConfReq. + :type aux_address: str + """ + self._aux_address = aux_address + + @property + def live_url(self): + """Gets the live_url of this OpenScheduleConfReq. + + 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + + :return: The live_url of this OpenScheduleConfReq. + :rtype: str + """ + return self._live_url + + @live_url.setter + def live_url(self, live_url): + """Sets the live_url of this OpenScheduleConfReq. + + 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + + :param live_url: The live_url of this OpenScheduleConfReq. + :type live_url: str + """ + self._live_url = live_url + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_base_info.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_base_info.py index 594bd1cadb..52f624fd58 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_base_info.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/open_webinar_base_info.py @@ -38,7 +38,10 @@ class OpenWebinarBaseInfo: 'guest_passwd': 'str', 'audience_join_uri': 'str', 'audience_passwd': 'str', - 'enable_recording': 'YesNoEnum' + 'enable_recording': 'YesNoEnum', + 'live_address': 'str', + 'aux_address': 'str', + 'live_url': 'str' } attribute_map = { @@ -63,10 +66,13 @@ class OpenWebinarBaseInfo: 'guest_passwd': 'guestPasswd', 'audience_join_uri': 'audienceJoinUri', 'audience_passwd': 'audiencePasswd', - 'enable_recording': 'enableRecording' + 'enable_recording': 'enableRecording', + 'live_address': 'liveAddress', + 'aux_address': 'auxAddress', + 'live_url': 'liveUrl' } - def __init__(self, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, state=None, scheduser_id=None, dept_name=None, scheduser_name=None, vmr_pkg_name=None, call_restriction=None, scope=None, audience_scope=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None, enable_recording=None): + def __init__(self, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, state=None, scheduser_id=None, dept_name=None, scheduser_name=None, vmr_pkg_name=None, call_restriction=None, scope=None, audience_scope=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None, enable_recording=None, live_address=None, aux_address=None, live_url=None): """OpenWebinarBaseInfo The model defined in huaweicloud sdk @@ -115,6 +121,12 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N :type audience_passwd: str :param enable_recording: :type enable_recording: :class:`huaweicloudsdkmeeting.v1.YesNoEnum` + :param live_address: 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + :type live_address: str + :param aux_address: 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + :type aux_address: str + :param live_url: 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + :type live_url: str """ @@ -141,6 +153,9 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N self._audience_join_uri = None self._audience_passwd = None self._enable_recording = None + self._live_address = None + self._aux_address = None + self._live_url = None self.discriminator = None if conference_id is not None: @@ -187,6 +202,12 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N self.audience_passwd = audience_passwd if enable_recording is not None: self.enable_recording = enable_recording + if live_address is not None: + self.live_address = live_address + if aux_address is not None: + self.aux_address = aux_address + if live_url is not None: + self.live_url = live_url @property def conference_id(self): @@ -664,6 +685,72 @@ def enable_recording(self, enable_recording): """ self._enable_recording = enable_recording + @property + def live_address(self): + """Gets the live_address of this OpenWebinarBaseInfo. + + 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :return: The live_address of this OpenWebinarBaseInfo. + :rtype: str + """ + return self._live_address + + @live_address.setter + def live_address(self, live_address): + """Sets the live_address of this OpenWebinarBaseInfo. + + 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :param live_address: The live_address of this OpenWebinarBaseInfo. + :type live_address: str + """ + self._live_address = live_address + + @property + def aux_address(self): + """Gets the aux_address of this OpenWebinarBaseInfo. + + 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :return: The aux_address of this OpenWebinarBaseInfo. + :rtype: str + """ + return self._aux_address + + @aux_address.setter + def aux_address(self, aux_address): + """Sets the aux_address of this OpenWebinarBaseInfo. + + 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :param aux_address: The aux_address of this OpenWebinarBaseInfo. + :type aux_address: str + """ + self._aux_address = aux_address + + @property + def live_url(self): + """Gets the live_url of this OpenWebinarBaseInfo. + + 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + + :return: The live_url of this OpenWebinarBaseInfo. + :rtype: str + """ + return self._live_url + + @live_url.setter + def live_url(self, live_url): + """Sets the live_url of this OpenWebinarBaseInfo. + + 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + + :param live_url: The live_url of this OpenWebinarBaseInfo. + :type live_url: str + """ + self._live_url = live_url + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_schedule_conf_dto.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_schedule_conf_dto.py index c9dc146255..c0c51d5f42 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_schedule_conf_dto.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_schedule_conf_dto.py @@ -36,7 +36,8 @@ class RestScheduleConfDTO: 'vmr_flag': 'int', 'cycle_params': 'CycleParams', 'vmr_id': 'str', - 'concurrent_participants': 'int' + 'concurrent_participants': 'int', + 'support_simultaneous_interpretation': 'bool' } attribute_map = { @@ -59,10 +60,11 @@ class RestScheduleConfDTO: 'vmr_flag': 'vmrFlag', 'cycle_params': 'cycleParams', 'vmr_id': 'vmrID', - 'concurrent_participants': 'concurrentParticipants' + 'concurrent_participants': 'concurrentParticipants', + 'support_simultaneous_interpretation': 'supportSimultaneousInterpretation' } - def __init__(self, start_time=None, length=None, subject=None, media_types=None, groupuri=None, attendees=None, is_auto_record=None, encrypt_mode=None, language=None, time_zone_id=None, record_type=None, live_address=None, aux_address=None, record_aux_stream=None, conf_config_info=None, record_auth_type=None, vmr_flag=None, cycle_params=None, vmr_id=None, concurrent_participants=None): + def __init__(self, start_time=None, length=None, subject=None, media_types=None, groupuri=None, attendees=None, is_auto_record=None, encrypt_mode=None, language=None, time_zone_id=None, record_type=None, live_address=None, aux_address=None, record_aux_stream=None, conf_config_info=None, record_auth_type=None, vmr_flag=None, cycle_params=None, vmr_id=None, concurrent_participants=None, support_simultaneous_interpretation=None): """RestScheduleConfDTO The model defined in huaweicloud sdk @@ -107,6 +109,8 @@ def __init__(self, start_time=None, length=None, subject=None, media_types=None, :type vmr_id: str :param concurrent_participants: 会议最大与会人数。默认值0。 * 0:无限制 * 大于0:会议最大与会人数 :type concurrent_participants: int + :param support_simultaneous_interpretation: 会议是否支持同声传译。默认值false。 * true:支持 * false:不支持 + :type support_simultaneous_interpretation: bool """ @@ -131,6 +135,7 @@ def __init__(self, start_time=None, length=None, subject=None, media_types=None, self._cycle_params = None self._vmr_id = None self._concurrent_participants = None + self._support_simultaneous_interpretation = None self.discriminator = None if start_time is not None: @@ -172,6 +177,8 @@ def __init__(self, start_time=None, length=None, subject=None, media_types=None, self.vmr_id = vmr_id if concurrent_participants is not None: self.concurrent_participants = concurrent_participants + if support_simultaneous_interpretation is not None: + self.support_simultaneous_interpretation = support_simultaneous_interpretation @property def start_time(self): @@ -605,6 +612,28 @@ def concurrent_participants(self, concurrent_participants): """ self._concurrent_participants = concurrent_participants + @property + def support_simultaneous_interpretation(self): + """Gets the support_simultaneous_interpretation of this RestScheduleConfDTO. + + 会议是否支持同声传译。默认值false。 * true:支持 * false:不支持 + + :return: The support_simultaneous_interpretation of this RestScheduleConfDTO. + :rtype: bool + """ + return self._support_simultaneous_interpretation + + @support_simultaneous_interpretation.setter + def support_simultaneous_interpretation(self, support_simultaneous_interpretation): + """Sets the support_simultaneous_interpretation of this RestScheduleConfDTO. + + 会议是否支持同声传译。默认值false。 * true:支持 * false:不支持 + + :param support_simultaneous_interpretation: The support_simultaneous_interpretation of this RestScheduleConfDTO. + :type support_simultaneous_interpretation: bool + """ + self._support_simultaneous_interpretation = support_simultaneous_interpretation + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_set_attendee_lan_channel_body.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_set_attendee_lan_channel_body.py new file mode 100644 index 0000000000..30e01ebe92 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_set_attendee_lan_channel_body.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestSetAttendeeLanChannelBody: + + """ + 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 = { + 'participant_i_ds': 'list[str]', + 'listen_lan_channel': 'str', + 'speak_lan_channel': 'str', + 'include_original_voice': 'int' + } + + attribute_map = { + 'participant_i_ds': 'participantIDs', + 'listen_lan_channel': 'listenLanChannel', + 'speak_lan_channel': 'speakLanChannel', + 'include_original_voice': 'includeOriginalVoice' + } + + def __init__(self, participant_i_ds=None, listen_lan_channel=None, speak_lan_channel=None, include_original_voice=None): + """RestSetAttendeeLanChannelBody + + The model defined in huaweicloud sdk + + :param participant_i_ds: 会场标识列表。 + :type participant_i_ds: list[str] + :param listen_lan_channel: 与会者收听的语言频道,普通与会者听与说一致。 + :type listen_lan_channel: str + :param speak_lan_channel: 与会者发言的语言频道,普通与会者听与说一致。 + :type speak_lan_channel: str + :param include_original_voice: 是否包含原声,0:不包含,1:包含。 + :type include_original_voice: int + """ + + + + self._participant_i_ds = None + self._listen_lan_channel = None + self._speak_lan_channel = None + self._include_original_voice = None + self.discriminator = None + + if participant_i_ds is not None: + self.participant_i_ds = participant_i_ds + self.listen_lan_channel = listen_lan_channel + self.speak_lan_channel = speak_lan_channel + if include_original_voice is not None: + self.include_original_voice = include_original_voice + + @property + def participant_i_ds(self): + """Gets the participant_i_ds of this RestSetAttendeeLanChannelBody. + + 会场标识列表。 + + :return: The participant_i_ds of this RestSetAttendeeLanChannelBody. + :rtype: list[str] + """ + return self._participant_i_ds + + @participant_i_ds.setter + def participant_i_ds(self, participant_i_ds): + """Sets the participant_i_ds of this RestSetAttendeeLanChannelBody. + + 会场标识列表。 + + :param participant_i_ds: The participant_i_ds of this RestSetAttendeeLanChannelBody. + :type participant_i_ds: list[str] + """ + self._participant_i_ds = participant_i_ds + + @property + def listen_lan_channel(self): + """Gets the listen_lan_channel of this RestSetAttendeeLanChannelBody. + + 与会者收听的语言频道,普通与会者听与说一致。 + + :return: The listen_lan_channel of this RestSetAttendeeLanChannelBody. + :rtype: str + """ + return self._listen_lan_channel + + @listen_lan_channel.setter + def listen_lan_channel(self, listen_lan_channel): + """Sets the listen_lan_channel of this RestSetAttendeeLanChannelBody. + + 与会者收听的语言频道,普通与会者听与说一致。 + + :param listen_lan_channel: The listen_lan_channel of this RestSetAttendeeLanChannelBody. + :type listen_lan_channel: str + """ + self._listen_lan_channel = listen_lan_channel + + @property + def speak_lan_channel(self): + """Gets the speak_lan_channel of this RestSetAttendeeLanChannelBody. + + 与会者发言的语言频道,普通与会者听与说一致。 + + :return: The speak_lan_channel of this RestSetAttendeeLanChannelBody. + :rtype: str + """ + return self._speak_lan_channel + + @speak_lan_channel.setter + def speak_lan_channel(self, speak_lan_channel): + """Sets the speak_lan_channel of this RestSetAttendeeLanChannelBody. + + 与会者发言的语言频道,普通与会者听与说一致。 + + :param speak_lan_channel: The speak_lan_channel of this RestSetAttendeeLanChannelBody. + :type speak_lan_channel: str + """ + self._speak_lan_channel = speak_lan_channel + + @property + def include_original_voice(self): + """Gets the include_original_voice of this RestSetAttendeeLanChannelBody. + + 是否包含原声,0:不包含,1:包含。 + + :return: The include_original_voice of this RestSetAttendeeLanChannelBody. + :rtype: int + """ + return self._include_original_voice + + @include_original_voice.setter + def include_original_voice(self, include_original_voice): + """Sets the include_original_voice of this RestSetAttendeeLanChannelBody. + + 是否包含原声,0:不包含,1:包含。 + + :param include_original_voice: The include_original_voice of this RestSetAttendeeLanChannelBody. + :type include_original_voice: int + """ + self._include_original_voice = include_original_voice + + 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, RestSetAttendeeLanChannelBody): + 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-meeting/huaweicloudsdkmeeting/v1/model/rest_set_interpreter_group_body.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_set_interpreter_group_body.py new file mode 100644 index 0000000000..f596dc57e1 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_set_interpreter_group_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestSetInterpreterGroupBody: + + """ + 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 = { + 'interpreter_groups': 'list[InterpreterGroupInfo]' + } + + attribute_map = { + 'interpreter_groups': 'interpreterGroups' + } + + def __init__(self, interpreter_groups=None): + """RestSetInterpreterGroupBody + + The model defined in huaweicloud sdk + + :param interpreter_groups: 传译组列表信息 + :type interpreter_groups: list[:class:`huaweicloudsdkmeeting.v1.InterpreterGroupInfo`] + """ + + + + self._interpreter_groups = None + self.discriminator = None + + self.interpreter_groups = interpreter_groups + + @property + def interpreter_groups(self): + """Gets the interpreter_groups of this RestSetInterpreterGroupBody. + + 传译组列表信息 + + :return: The interpreter_groups of this RestSetInterpreterGroupBody. + :rtype: list[:class:`huaweicloudsdkmeeting.v1.InterpreterGroupInfo`] + """ + return self._interpreter_groups + + @interpreter_groups.setter + def interpreter_groups(self, interpreter_groups): + """Sets the interpreter_groups of this RestSetInterpreterGroupBody. + + 传译组列表信息 + + :param interpreter_groups: The interpreter_groups of this RestSetInterpreterGroupBody. + :type interpreter_groups: list[:class:`huaweicloudsdkmeeting.v1.InterpreterGroupInfo`] + """ + self._interpreter_groups = interpreter_groups + + 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, RestSetInterpreterGroupBody): + 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-meeting/huaweicloudsdkmeeting/v1/model/rest_simultaneous_interpretation_body.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_simultaneous_interpretation_body.py new file mode 100644 index 0000000000..8388069831 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_simultaneous_interpretation_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestSimultaneousInterpretationBody: + + """ + 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 = { + 'simultaneous_interpretation': 'int' + } + + attribute_map = { + 'simultaneous_interpretation': 'simultaneousInterpretation' + } + + def __init__(self, simultaneous_interpretation=None): + """RestSimultaneousInterpretationBody + + The model defined in huaweicloud sdk + + :param simultaneous_interpretation: * 0:停止同声传译 * 1:启动同声传译 + :type simultaneous_interpretation: int + """ + + + + self._simultaneous_interpretation = None + self.discriminator = None + + self.simultaneous_interpretation = simultaneous_interpretation + + @property + def simultaneous_interpretation(self): + """Gets the simultaneous_interpretation of this RestSimultaneousInterpretationBody. + + * 0:停止同声传译 * 1:启动同声传译 + + :return: The simultaneous_interpretation of this RestSimultaneousInterpretationBody. + :rtype: int + """ + return self._simultaneous_interpretation + + @simultaneous_interpretation.setter + def simultaneous_interpretation(self, simultaneous_interpretation): + """Sets the simultaneous_interpretation of this RestSimultaneousInterpretationBody. + + * 0:停止同声传译 * 1:启动同声传译 + + :param simultaneous_interpretation: The simultaneous_interpretation of this RestSimultaneousInterpretationBody. + :type simultaneous_interpretation: int + """ + self._simultaneous_interpretation = simultaneous_interpretation + + 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, RestSimultaneousInterpretationBody): + 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-meeting/huaweicloudsdkmeeting/v1/model/resume_simultaneous_interpretation_request.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/resume_simultaneous_interpretation_request.py new file mode 100644 index 0000000000..fca0cbef9c --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/resume_simultaneous_interpretation_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResumeSimultaneousInterpretationRequest: + + """ + 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 = { + 'conference_id': 'str', + 'x_conference_authorization': 'str', + 'body': 'RestSimultaneousInterpretationBody' + } + + attribute_map = { + 'conference_id': 'conferenceID', + 'x_conference_authorization': 'X-Conference-Authorization', + 'body': 'body' + } + + def __init__(self, conference_id=None, x_conference_authorization=None, body=None): + """ResumeSimultaneousInterpretationRequest + + The model defined in huaweicloud sdk + + :param conference_id: 会议ID。 + :type conference_id: str + :param x_conference_authorization: 会控Token,通过[[获取会控token](https://support.huaweicloud.com/api-meeting/meeting_21_0027.html)](tag:hws)[[获取会控token](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0027.html)](tag:hk)接口获得。 + :type x_conference_authorization: str + :param body: Body of the ResumeSimultaneousInterpretationRequest + :type body: :class:`huaweicloudsdkmeeting.v1.RestSimultaneousInterpretationBody` + """ + + + + self._conference_id = None + self._x_conference_authorization = None + self._body = None + self.discriminator = None + + self.conference_id = conference_id + self.x_conference_authorization = x_conference_authorization + if body is not None: + self.body = body + + @property + def conference_id(self): + """Gets the conference_id of this ResumeSimultaneousInterpretationRequest. + + 会议ID。 + + :return: The conference_id of this ResumeSimultaneousInterpretationRequest. + :rtype: str + """ + return self._conference_id + + @conference_id.setter + def conference_id(self, conference_id): + """Sets the conference_id of this ResumeSimultaneousInterpretationRequest. + + 会议ID。 + + :param conference_id: The conference_id of this ResumeSimultaneousInterpretationRequest. + :type conference_id: str + """ + self._conference_id = conference_id + + @property + def x_conference_authorization(self): + """Gets the x_conference_authorization of this ResumeSimultaneousInterpretationRequest. + + 会控Token,通过[[获取会控token](https://support.huaweicloud.com/api-meeting/meeting_21_0027.html)](tag:hws)[[获取会控token](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0027.html)](tag:hk)接口获得。 + + :return: The x_conference_authorization of this ResumeSimultaneousInterpretationRequest. + :rtype: str + """ + return self._x_conference_authorization + + @x_conference_authorization.setter + def x_conference_authorization(self, x_conference_authorization): + """Sets the x_conference_authorization of this ResumeSimultaneousInterpretationRequest. + + 会控Token,通过[[获取会控token](https://support.huaweicloud.com/api-meeting/meeting_21_0027.html)](tag:hws)[[获取会控token](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0027.html)](tag:hk)接口获得。 + + :param x_conference_authorization: The x_conference_authorization of this ResumeSimultaneousInterpretationRequest. + :type x_conference_authorization: str + """ + self._x_conference_authorization = x_conference_authorization + + @property + def body(self): + """Gets the body of this ResumeSimultaneousInterpretationRequest. + + :return: The body of this ResumeSimultaneousInterpretationRequest. + :rtype: :class:`huaweicloudsdkmeeting.v1.RestSimultaneousInterpretationBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ResumeSimultaneousInterpretationRequest. + + :param body: The body of this ResumeSimultaneousInterpretationRequest. + :type body: :class:`huaweicloudsdkmeeting.v1.RestSimultaneousInterpretationBody` + """ + 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, ResumeSimultaneousInterpretationRequest): + 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-meeting/huaweicloudsdkmeeting/v1/model/resume_simultaneous_interpretation_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/resume_simultaneous_interpretation_response.py new file mode 100644 index 0000000000..a7c90cdc7c --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/resume_simultaneous_interpretation_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 ResumeSimultaneousInterpretationResponse(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): + """ResumeSimultaneousInterpretationResponse + + The model defined in huaweicloud sdk + + """ + + super(ResumeSimultaneousInterpretationResponse, 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, ResumeSimultaneousInterpretationResponse): + 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-meeting/huaweicloudsdkmeeting/v1/model/set_attendee_lan_channel_request.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/set_attendee_lan_channel_request.py new file mode 100644 index 0000000000..dc0a737232 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/set_attendee_lan_channel_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetAttendeeLanChannelRequest: + + """ + 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 = { + 'conference_id': 'str', + 'x_conference_authorization': 'str', + 'body': 'RestSetAttendeeLanChannelBody' + } + + attribute_map = { + 'conference_id': 'conferenceID', + 'x_conference_authorization': 'X-Conference-Authorization', + 'body': 'body' + } + + def __init__(self, conference_id=None, x_conference_authorization=None, body=None): + """SetAttendeeLanChannelRequest + + The model defined in huaweicloud sdk + + :param conference_id: 会议ID。 + :type conference_id: str + :param x_conference_authorization: 会控Token,通过[[获取会控token](https://support.huaweicloud.com/api-meeting/meeting_21_0027.html)](tag:hws)[[获取会控token](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0027.html)](tag:hk)接口获得。 + :type x_conference_authorization: str + :param body: Body of the SetAttendeeLanChannelRequest + :type body: :class:`huaweicloudsdkmeeting.v1.RestSetAttendeeLanChannelBody` + """ + + + + self._conference_id = None + self._x_conference_authorization = None + self._body = None + self.discriminator = None + + self.conference_id = conference_id + self.x_conference_authorization = x_conference_authorization + if body is not None: + self.body = body + + @property + def conference_id(self): + """Gets the conference_id of this SetAttendeeLanChannelRequest. + + 会议ID。 + + :return: The conference_id of this SetAttendeeLanChannelRequest. + :rtype: str + """ + return self._conference_id + + @conference_id.setter + def conference_id(self, conference_id): + """Sets the conference_id of this SetAttendeeLanChannelRequest. + + 会议ID。 + + :param conference_id: The conference_id of this SetAttendeeLanChannelRequest. + :type conference_id: str + """ + self._conference_id = conference_id + + @property + def x_conference_authorization(self): + """Gets the x_conference_authorization of this SetAttendeeLanChannelRequest. + + 会控Token,通过[[获取会控token](https://support.huaweicloud.com/api-meeting/meeting_21_0027.html)](tag:hws)[[获取会控token](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0027.html)](tag:hk)接口获得。 + + :return: The x_conference_authorization of this SetAttendeeLanChannelRequest. + :rtype: str + """ + return self._x_conference_authorization + + @x_conference_authorization.setter + def x_conference_authorization(self, x_conference_authorization): + """Sets the x_conference_authorization of this SetAttendeeLanChannelRequest. + + 会控Token,通过[[获取会控token](https://support.huaweicloud.com/api-meeting/meeting_21_0027.html)](tag:hws)[[获取会控token](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0027.html)](tag:hk)接口获得。 + + :param x_conference_authorization: The x_conference_authorization of this SetAttendeeLanChannelRequest. + :type x_conference_authorization: str + """ + self._x_conference_authorization = x_conference_authorization + + @property + def body(self): + """Gets the body of this SetAttendeeLanChannelRequest. + + :return: The body of this SetAttendeeLanChannelRequest. + :rtype: :class:`huaweicloudsdkmeeting.v1.RestSetAttendeeLanChannelBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SetAttendeeLanChannelRequest. + + :param body: The body of this SetAttendeeLanChannelRequest. + :type body: :class:`huaweicloudsdkmeeting.v1.RestSetAttendeeLanChannelBody` + """ + 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, SetAttendeeLanChannelRequest): + 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-meeting/huaweicloudsdkmeeting/v1/model/set_attendee_lan_channel_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/set_attendee_lan_channel_response.py new file mode 100644 index 0000000000..172eaab093 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/set_attendee_lan_channel_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 SetAttendeeLanChannelResponse(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): + """SetAttendeeLanChannelResponse + + The model defined in huaweicloud sdk + + """ + + super(SetAttendeeLanChannelResponse, 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, SetAttendeeLanChannelResponse): + 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-meeting/huaweicloudsdkmeeting/v1/model/set_interpreter_group_request.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/set_interpreter_group_request.py new file mode 100644 index 0000000000..868613b690 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/set_interpreter_group_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetInterpreterGroupRequest: + + """ + 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 = { + 'conference_id': 'str', + 'x_conference_authorization': 'str', + 'body': 'RestSetInterpreterGroupBody' + } + + attribute_map = { + 'conference_id': 'conferenceID', + 'x_conference_authorization': 'X-Conference-Authorization', + 'body': 'body' + } + + def __init__(self, conference_id=None, x_conference_authorization=None, body=None): + """SetInterpreterGroupRequest + + The model defined in huaweicloud sdk + + :param conference_id: 会议ID。 + :type conference_id: str + :param x_conference_authorization: 会控Token,通过[[获取会控token](https://support.huaweicloud.com/api-meeting/meeting_21_0027.html)](tag:hws)[[获取会控token](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0027.html)](tag:hk)接口获得。 + :type x_conference_authorization: str + :param body: Body of the SetInterpreterGroupRequest + :type body: :class:`huaweicloudsdkmeeting.v1.RestSetInterpreterGroupBody` + """ + + + + self._conference_id = None + self._x_conference_authorization = None + self._body = None + self.discriminator = None + + self.conference_id = conference_id + self.x_conference_authorization = x_conference_authorization + if body is not None: + self.body = body + + @property + def conference_id(self): + """Gets the conference_id of this SetInterpreterGroupRequest. + + 会议ID。 + + :return: The conference_id of this SetInterpreterGroupRequest. + :rtype: str + """ + return self._conference_id + + @conference_id.setter + def conference_id(self, conference_id): + """Sets the conference_id of this SetInterpreterGroupRequest. + + 会议ID。 + + :param conference_id: The conference_id of this SetInterpreterGroupRequest. + :type conference_id: str + """ + self._conference_id = conference_id + + @property + def x_conference_authorization(self): + """Gets the x_conference_authorization of this SetInterpreterGroupRequest. + + 会控Token,通过[[获取会控token](https://support.huaweicloud.com/api-meeting/meeting_21_0027.html)](tag:hws)[[获取会控token](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0027.html)](tag:hk)接口获得。 + + :return: The x_conference_authorization of this SetInterpreterGroupRequest. + :rtype: str + """ + return self._x_conference_authorization + + @x_conference_authorization.setter + def x_conference_authorization(self, x_conference_authorization): + """Sets the x_conference_authorization of this SetInterpreterGroupRequest. + + 会控Token,通过[[获取会控token](https://support.huaweicloud.com/api-meeting/meeting_21_0027.html)](tag:hws)[[获取会控token](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0027.html)](tag:hk)接口获得。 + + :param x_conference_authorization: The x_conference_authorization of this SetInterpreterGroupRequest. + :type x_conference_authorization: str + """ + self._x_conference_authorization = x_conference_authorization + + @property + def body(self): + """Gets the body of this SetInterpreterGroupRequest. + + :return: The body of this SetInterpreterGroupRequest. + :rtype: :class:`huaweicloudsdkmeeting.v1.RestSetInterpreterGroupBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SetInterpreterGroupRequest. + + :param body: The body of this SetInterpreterGroupRequest. + :type body: :class:`huaweicloudsdkmeeting.v1.RestSetInterpreterGroupBody` + """ + 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, SetInterpreterGroupRequest): + 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-meeting/huaweicloudsdkmeeting/v1/model/set_interpreter_group_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/set_interpreter_group_response.py new file mode 100644 index 0000000000..d329ebed80 --- /dev/null +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/set_interpreter_group_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 SetInterpreterGroupResponse(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): + """SetInterpreterGroupResponse + + The model defined in huaweicloud sdk + + """ + + super(SetInterpreterGroupResponse, 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, SetInterpreterGroupResponse): + 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-meeting/huaweicloudsdkmeeting/v1/model/show_webinar_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_webinar_response.py index bf39b3b721..2db00d3217 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_webinar_response.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_webinar_response.py @@ -40,6 +40,9 @@ class ShowWebinarResponse(SdkResponse): 'audience_join_uri': 'str', 'audience_passwd': 'str', 'enable_recording': 'YesNoEnum', + 'live_address': 'str', + 'aux_address': 'str', + 'live_url': 'str', 'notify_setting': 'OpenNotifySetting', 'attendees': 'list[str]' } @@ -67,11 +70,14 @@ class ShowWebinarResponse(SdkResponse): 'audience_join_uri': 'audienceJoinUri', 'audience_passwd': 'audiencePasswd', 'enable_recording': 'enableRecording', + 'live_address': 'liveAddress', + 'aux_address': 'auxAddress', + 'live_url': 'liveUrl', 'notify_setting': 'notifySetting', 'attendees': 'attendees' } - def __init__(self, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, state=None, scheduser_id=None, dept_name=None, scheduser_name=None, vmr_pkg_name=None, call_restriction=None, scope=None, audience_scope=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None, enable_recording=None, notify_setting=None, attendees=None): + def __init__(self, conference_id=None, corp_id=None, subject=None, description=None, start_time=None, duration=None, time_zone_id=None, state=None, scheduser_id=None, dept_name=None, scheduser_name=None, vmr_pkg_name=None, call_restriction=None, scope=None, audience_scope=None, chair_join_uri=None, chair_passwd=None, guest_join_uri=None, guest_passwd=None, audience_join_uri=None, audience_passwd=None, enable_recording=None, live_address=None, aux_address=None, live_url=None, notify_setting=None, attendees=None): """ShowWebinarResponse The model defined in huaweicloud sdk @@ -120,6 +126,12 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N :type audience_passwd: str :param enable_recording: :type enable_recording: :class:`huaweicloudsdkmeeting.v1.YesNoEnum` + :param live_address: 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + :type live_address: str + :param aux_address: 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + :type aux_address: str + :param live_url: 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + :type live_url: str :param notify_setting: :type notify_setting: :class:`huaweicloudsdkmeeting.v1.OpenNotifySetting` :param attendees: 与会嘉宾名称列表。 @@ -150,6 +162,9 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N self._audience_join_uri = None self._audience_passwd = None self._enable_recording = None + self._live_address = None + self._aux_address = None + self._live_url = None self._notify_setting = None self._attendees = None self.discriminator = None @@ -198,6 +213,12 @@ def __init__(self, conference_id=None, corp_id=None, subject=None, description=N self.audience_passwd = audience_passwd if enable_recording is not None: self.enable_recording = enable_recording + if live_address is not None: + self.live_address = live_address + if aux_address is not None: + self.aux_address = aux_address + if live_url is not None: + self.live_url = live_url if notify_setting is not None: self.notify_setting = notify_setting if attendees is not None: @@ -679,6 +700,72 @@ def enable_recording(self, enable_recording): """ self._enable_recording = enable_recording + @property + def live_address(self): + """Gets the live_address of this ShowWebinarResponse. + + 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :return: The live_address of this ShowWebinarResponse. + :rtype: str + """ + return self._live_address + + @live_address.setter + def live_address(self, live_address): + """Sets the live_address of this ShowWebinarResponse. + + 主流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :param live_address: The live_address of this ShowWebinarResponse. + :type live_address: str + """ + self._live_address = live_address + + @property + def aux_address(self): + """Gets the aux_address of this ShowWebinarResponse. + + 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :return: The aux_address of this ShowWebinarResponse. + :rtype: str + """ + return self._aux_address + + @aux_address.setter + def aux_address(self, aux_address): + """Sets the aux_address of this ShowWebinarResponse. + + 辅流直播推流地址,在录播类型为 :直播、直播+录播时有效。最大不超过255个字符。 + + :param aux_address: The aux_address of this ShowWebinarResponse. + :type aux_address: str + """ + self._aux_address = aux_address + + @property + def live_url(self): + """Gets the live_url of this ShowWebinarResponse. + + 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + + :return: The live_url of this ShowWebinarResponse. + :rtype: str + """ + return self._live_url + + @live_url.setter + def live_url(self, live_url): + """Sets the live_url of this ShowWebinarResponse. + + 直播房间地址,在录播类型为录播+直播推流时有效。最大不超过255个字符。 + + :param live_url: The live_url of this ShowWebinarResponse. + :type live_url: str + """ + self._live_url = live_url + @property def notify_setting(self): """Gets the notify_setting of this ShowWebinarResponse. diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index 6c81bc38bd..f52b38280e 100644 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-metastudio/requirements.txt b/huaweicloud-sdk-metastudio/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-metastudio/requirements.txt +++ b/huaweicloud-sdk-metastudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-metastudio/setup.py b/huaweicloud-sdk-metastudio/setup.py index 08f8c7f7d5..844a47b44e 100644 --- a/huaweicloud-sdk-metastudio/setup.py +++ b/huaweicloud-sdk-metastudio/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmetastudio" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 2c31c9eb73..7c91d0ebcc 100644 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 64a1f42563..b7377aef6f 100644 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/__init__.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/__init__.py index b152f44370..f925935578 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/__init__.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/__init__.py @@ -22,6 +22,7 @@ from huaweicloudsdkmrs.v1.model.cluster_scaling_req import ClusterScalingReq from huaweicloudsdkmrs.v1.model.component_amb import ComponentAmb from huaweicloudsdkmrs.v1.model.component_amb_v11 import ComponentAmbV11 +from huaweicloudsdkmrs.v1.model.component_external_datasource import ComponentExternalDatasource from huaweicloudsdkmrs.v1.model.create_and_execute_job_request import CreateAndExecuteJobRequest from huaweicloudsdkmrs.v1.model.create_and_execute_job_response import CreateAndExecuteJobResponse from huaweicloudsdkmrs.v1.model.create_cluster_req_v11 import CreateClusterReqV11 @@ -38,6 +39,7 @@ from huaweicloudsdkmrs.v1.model.delete_cluster_tag_response import DeleteClusterTagResponse from huaweicloudsdkmrs.v1.model.delete_job_execution_request import DeleteJobExecutionRequest from huaweicloudsdkmrs.v1.model.delete_job_execution_response import DeleteJobExecutionResponse +from huaweicloudsdkmrs.v1.model.flavor_lists import FlavorLists from huaweicloudsdkmrs.v1.model.host_model import HostModel from huaweicloudsdkmrs.v1.model.job_exe_result import JobExeResult from huaweicloudsdkmrs.v1.model.list_all_tags_request import ListAllTagsRequest @@ -57,15 +59,20 @@ from huaweicloudsdkmrs.v1.model.list_resource_req import ListResourceReq from huaweicloudsdkmrs.v1.model.mrs_resource import MRSResource from huaweicloudsdkmrs.v1.model.match import Match +from huaweicloudsdkmrs.v1.model.node_constraint import NodeConstraint +from huaweicloudsdkmrs.v1.model.node_constraints import NodeConstraints from huaweicloudsdkmrs.v1.model.node_group_v10 import NodeGroupV10 from huaweicloudsdkmrs.v1.model.node_group_v11 import NodeGroupV11 from huaweicloudsdkmrs.v1.model.resources_plan import ResourcesPlan +from huaweicloudsdkmrs.v1.model.role_deploy_meta import RoleDeployMeta from huaweicloudsdkmrs.v1.model.rule import Rule from huaweicloudsdkmrs.v1.model.scale_script import ScaleScript from huaweicloudsdkmrs.v1.model.show_cluster_details_request import ShowClusterDetailsRequest from huaweicloudsdkmrs.v1.model.show_cluster_details_response import ShowClusterDetailsResponse from huaweicloudsdkmrs.v1.model.show_job_exes_request import ShowJobExesRequest from huaweicloudsdkmrs.v1.model.show_job_exes_response import ShowJobExesResponse +from huaweicloudsdkmrs.v1.model.show_mrs_version_metadata_request import ShowMrsVersionMetadataRequest +from huaweicloudsdkmrs.v1.model.show_mrs_version_metadata_response import ShowMrsVersionMetadataResponse from huaweicloudsdkmrs.v1.model.submit_job_req_v11 import SubmitJobReqV11 from huaweicloudsdkmrs.v1.model.tag import Tag from huaweicloudsdkmrs.v1.model.tag_plain import TagPlain @@ -75,4 +82,6 @@ from huaweicloudsdkmrs.v1.model.trigger import Trigger from huaweicloudsdkmrs.v1.model.update_cluster_scaling_request import UpdateClusterScalingRequest from huaweicloudsdkmrs.v1.model.update_cluster_scaling_response import UpdateClusterScalingResponse +from huaweicloudsdkmrs.v1.model.version_component import VersionComponent +from huaweicloudsdkmrs.v1.model.version_constraint import VersionConstraint diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/__init__.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/__init__.py index a69e4376e6..62a81a2f80 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/__init__.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/__init__.py @@ -20,6 +20,7 @@ from huaweicloudsdkmrs.v1.model.cluster_scaling_req import ClusterScalingReq from huaweicloudsdkmrs.v1.model.component_amb import ComponentAmb from huaweicloudsdkmrs.v1.model.component_amb_v11 import ComponentAmbV11 +from huaweicloudsdkmrs.v1.model.component_external_datasource import ComponentExternalDatasource from huaweicloudsdkmrs.v1.model.create_and_execute_job_request import CreateAndExecuteJobRequest from huaweicloudsdkmrs.v1.model.create_and_execute_job_response import CreateAndExecuteJobResponse from huaweicloudsdkmrs.v1.model.create_cluster_req_v11 import CreateClusterReqV11 @@ -36,6 +37,7 @@ from huaweicloudsdkmrs.v1.model.delete_cluster_tag_response import DeleteClusterTagResponse from huaweicloudsdkmrs.v1.model.delete_job_execution_request import DeleteJobExecutionRequest from huaweicloudsdkmrs.v1.model.delete_job_execution_response import DeleteJobExecutionResponse +from huaweicloudsdkmrs.v1.model.flavor_lists import FlavorLists from huaweicloudsdkmrs.v1.model.host_model import HostModel from huaweicloudsdkmrs.v1.model.job_exe_result import JobExeResult from huaweicloudsdkmrs.v1.model.list_all_tags_request import ListAllTagsRequest @@ -55,15 +57,20 @@ from huaweicloudsdkmrs.v1.model.list_resource_req import ListResourceReq from huaweicloudsdkmrs.v1.model.mrs_resource import MRSResource from huaweicloudsdkmrs.v1.model.match import Match +from huaweicloudsdkmrs.v1.model.node_constraint import NodeConstraint +from huaweicloudsdkmrs.v1.model.node_constraints import NodeConstraints from huaweicloudsdkmrs.v1.model.node_group_v10 import NodeGroupV10 from huaweicloudsdkmrs.v1.model.node_group_v11 import NodeGroupV11 from huaweicloudsdkmrs.v1.model.resources_plan import ResourcesPlan +from huaweicloudsdkmrs.v1.model.role_deploy_meta import RoleDeployMeta from huaweicloudsdkmrs.v1.model.rule import Rule from huaweicloudsdkmrs.v1.model.scale_script import ScaleScript from huaweicloudsdkmrs.v1.model.show_cluster_details_request import ShowClusterDetailsRequest from huaweicloudsdkmrs.v1.model.show_cluster_details_response import ShowClusterDetailsResponse from huaweicloudsdkmrs.v1.model.show_job_exes_request import ShowJobExesRequest from huaweicloudsdkmrs.v1.model.show_job_exes_response import ShowJobExesResponse +from huaweicloudsdkmrs.v1.model.show_mrs_version_metadata_request import ShowMrsVersionMetadataRequest +from huaweicloudsdkmrs.v1.model.show_mrs_version_metadata_response import ShowMrsVersionMetadataResponse from huaweicloudsdkmrs.v1.model.submit_job_req_v11 import SubmitJobReqV11 from huaweicloudsdkmrs.v1.model.tag import Tag from huaweicloudsdkmrs.v1.model.tag_plain import TagPlain @@ -73,3 +80,5 @@ from huaweicloudsdkmrs.v1.model.trigger import Trigger from huaweicloudsdkmrs.v1.model.update_cluster_scaling_request import UpdateClusterScalingRequest from huaweicloudsdkmrs.v1.model.update_cluster_scaling_response import UpdateClusterScalingResponse +from huaweicloudsdkmrs.v1.model.version_component import VersionComponent +from huaweicloudsdkmrs.v1.model.version_constraint import VersionConstraint diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/component_external_datasource.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/component_external_datasource.py new file mode 100644 index 0000000000..6510c9f4bf --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/component_external_datasource.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ComponentExternalDatasource: + + """ + 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', + 'types': 'list[str]' + } + + attribute_map = { + 'name': 'name', + 'types': 'types' + } + + def __init__(self, name=None, types=None): + """ComponentExternalDatasource + + The model defined in huaweicloud sdk + + :param name: 外部数据源名称 + :type name: str + :param types: 外部数据源类型 + :type types: list[str] + """ + + + + self._name = None + self._types = None + self.discriminator = None + + if name is not None: + self.name = name + if types is not None: + self.types = types + + @property + def name(self): + """Gets the name of this ComponentExternalDatasource. + + 外部数据源名称 + + :return: The name of this ComponentExternalDatasource. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ComponentExternalDatasource. + + 外部数据源名称 + + :param name: The name of this ComponentExternalDatasource. + :type name: str + """ + self._name = name + + @property + def types(self): + """Gets the types of this ComponentExternalDatasource. + + 外部数据源类型 + + :return: The types of this ComponentExternalDatasource. + :rtype: list[str] + """ + return self._types + + @types.setter + def types(self, types): + """Sets the types of this ComponentExternalDatasource. + + 外部数据源类型 + + :param types: The types of this ComponentExternalDatasource. + :type types: list[str] + """ + self._types = types + + 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, ComponentExternalDatasource): + 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-mrs/huaweicloudsdkmrs/v1/model/flavor_lists.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/flavor_lists.py new file mode 100644 index 0000000000..e43fdca1bc --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/flavor_lists.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FlavorLists: + + """ + 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': 'list[str]', + 'core': 'list[str]', + 'task': 'list[str]' + } + + attribute_map = { + 'master': 'master', + 'core': 'core', + 'task': 'task' + } + + def __init__(self, master=None, core=None, task=None): + """FlavorLists + + The model defined in huaweicloud sdk + + :param master: master节点支持的规格列表 + :type master: list[str] + :param core: core节点支持的规格列表 + :type core: list[str] + :param task: task节点支持的规格列表 + :type task: list[str] + """ + + + + self._master = None + self._core = None + self._task = None + self.discriminator = None + + if master is not None: + self.master = master + if core is not None: + self.core = core + if task is not None: + self.task = task + + @property + def master(self): + """Gets the master of this FlavorLists. + + master节点支持的规格列表 + + :return: The master of this FlavorLists. + :rtype: list[str] + """ + return self._master + + @master.setter + def master(self, master): + """Sets the master of this FlavorLists. + + master节点支持的规格列表 + + :param master: The master of this FlavorLists. + :type master: list[str] + """ + self._master = master + + @property + def core(self): + """Gets the core of this FlavorLists. + + core节点支持的规格列表 + + :return: The core of this FlavorLists. + :rtype: list[str] + """ + return self._core + + @core.setter + def core(self, core): + """Sets the core of this FlavorLists. + + core节点支持的规格列表 + + :param core: The core of this FlavorLists. + :type core: list[str] + """ + self._core = core + + @property + def task(self): + """Gets the task of this FlavorLists. + + task节点支持的规格列表 + + :return: The task of this FlavorLists. + :rtype: list[str] + """ + return self._task + + @task.setter + def task(self, task): + """Sets the task of this FlavorLists. + + task节点支持的规格列表 + + :param task: The task of this FlavorLists. + :type task: list[str] + """ + self._task = task + + 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, FlavorLists): + 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-mrs/huaweicloudsdkmrs/v1/model/node_constraint.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/node_constraint.py new file mode 100644 index 0000000000..0efa2f9620 --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/node_constraint.py @@ -0,0 +1,376 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class NodeConstraint: + + """ + 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 = { + 'other': 'dict(str, object)', + 'min_node_num': 'int', + 'max_node_num': 'int', + 'min_core_num': 'dict(str, int)', + 'min_mem_size': 'dict(str, int)', + 'min_disk_size': 'int', + 'max_node_group_num': 'int', + 'min_data_volume_total_size': 'dict(str, int)', + 'disk_type_constraint': 'dict(str, str)', + 'min_root_disk_size': 'int' + } + + attribute_map = { + 'other': 'other', + 'min_node_num': 'min_node_num', + 'max_node_num': 'max_node_num', + 'min_core_num': 'min_core_num', + 'min_mem_size': 'min_mem_size', + 'min_disk_size': 'min_disk_size', + 'max_node_group_num': 'max_node_group_num', + 'min_data_volume_total_size': 'min_data_volume_total_size', + 'disk_type_constraint': 'disk_type_constraint', + 'min_root_disk_size': 'min_root_disk_size' + } + + def __init__(self, other=None, min_node_num=None, max_node_num=None, min_core_num=None, min_mem_size=None, min_disk_size=None, max_node_group_num=None, min_data_volume_total_size=None, disk_type_constraint=None, min_root_disk_size=None): + """NodeConstraint + + The model defined in huaweicloud sdk + + :param other: 其他限制 + :type other: dict(str, object) + :param min_node_num: 最少节点数 + :type min_node_num: int + :param max_node_num: 最多节点数 + :type max_node_num: int + :param min_core_num: 最少核心数 + :type min_core_num: dict(str, int) + :param min_mem_size: 最小内存容量 + :type min_mem_size: dict(str, int) + :param min_disk_size: 最小磁盘容量 + :type min_disk_size: int + :param max_node_group_num: 最大节点组数 + :type max_node_group_num: int + :param min_data_volume_total_size: 最小数据卷容量 + :type min_data_volume_total_size: dict(str, int) + :param disk_type_constraint: 磁盘类型限制,包含当前节点组所支持的磁盘类型 + :type disk_type_constraint: dict(str, str) + :param min_root_disk_size: 最小系统磁盘大小 + :type min_root_disk_size: int + """ + + + + self._other = None + self._min_node_num = None + self._max_node_num = None + self._min_core_num = None + self._min_mem_size = None + self._min_disk_size = None + self._max_node_group_num = None + self._min_data_volume_total_size = None + self._disk_type_constraint = None + self._min_root_disk_size = None + self.discriminator = None + + if other is not None: + self.other = other + if min_node_num is not None: + self.min_node_num = min_node_num + if max_node_num is not None: + self.max_node_num = max_node_num + if min_core_num is not None: + self.min_core_num = min_core_num + if min_mem_size is not None: + self.min_mem_size = min_mem_size + if min_disk_size is not None: + self.min_disk_size = min_disk_size + if max_node_group_num is not None: + self.max_node_group_num = max_node_group_num + if min_data_volume_total_size is not None: + self.min_data_volume_total_size = min_data_volume_total_size + if disk_type_constraint is not None: + self.disk_type_constraint = disk_type_constraint + if min_root_disk_size is not None: + self.min_root_disk_size = min_root_disk_size + + @property + def other(self): + """Gets the other of this NodeConstraint. + + 其他限制 + + :return: The other of this NodeConstraint. + :rtype: dict(str, object) + """ + return self._other + + @other.setter + def other(self, other): + """Sets the other of this NodeConstraint. + + 其他限制 + + :param other: The other of this NodeConstraint. + :type other: dict(str, object) + """ + self._other = other + + @property + def min_node_num(self): + """Gets the min_node_num of this NodeConstraint. + + 最少节点数 + + :return: The min_node_num of this NodeConstraint. + :rtype: int + """ + return self._min_node_num + + @min_node_num.setter + def min_node_num(self, min_node_num): + """Sets the min_node_num of this NodeConstraint. + + 最少节点数 + + :param min_node_num: The min_node_num of this NodeConstraint. + :type min_node_num: int + """ + self._min_node_num = min_node_num + + @property + def max_node_num(self): + """Gets the max_node_num of this NodeConstraint. + + 最多节点数 + + :return: The max_node_num of this NodeConstraint. + :rtype: int + """ + return self._max_node_num + + @max_node_num.setter + def max_node_num(self, max_node_num): + """Sets the max_node_num of this NodeConstraint. + + 最多节点数 + + :param max_node_num: The max_node_num of this NodeConstraint. + :type max_node_num: int + """ + self._max_node_num = max_node_num + + @property + def min_core_num(self): + """Gets the min_core_num of this NodeConstraint. + + 最少核心数 + + :return: The min_core_num of this NodeConstraint. + :rtype: dict(str, int) + """ + return self._min_core_num + + @min_core_num.setter + def min_core_num(self, min_core_num): + """Sets the min_core_num of this NodeConstraint. + + 最少核心数 + + :param min_core_num: The min_core_num of this NodeConstraint. + :type min_core_num: dict(str, int) + """ + self._min_core_num = min_core_num + + @property + def min_mem_size(self): + """Gets the min_mem_size of this NodeConstraint. + + 最小内存容量 + + :return: The min_mem_size of this NodeConstraint. + :rtype: dict(str, int) + """ + return self._min_mem_size + + @min_mem_size.setter + def min_mem_size(self, min_mem_size): + """Sets the min_mem_size of this NodeConstraint. + + 最小内存容量 + + :param min_mem_size: The min_mem_size of this NodeConstraint. + :type min_mem_size: dict(str, int) + """ + self._min_mem_size = min_mem_size + + @property + def min_disk_size(self): + """Gets the min_disk_size of this NodeConstraint. + + 最小磁盘容量 + + :return: The min_disk_size of this NodeConstraint. + :rtype: int + """ + return self._min_disk_size + + @min_disk_size.setter + def min_disk_size(self, min_disk_size): + """Sets the min_disk_size of this NodeConstraint. + + 最小磁盘容量 + + :param min_disk_size: The min_disk_size of this NodeConstraint. + :type min_disk_size: int + """ + self._min_disk_size = min_disk_size + + @property + def max_node_group_num(self): + """Gets the max_node_group_num of this NodeConstraint. + + 最大节点组数 + + :return: The max_node_group_num of this NodeConstraint. + :rtype: int + """ + return self._max_node_group_num + + @max_node_group_num.setter + def max_node_group_num(self, max_node_group_num): + """Sets the max_node_group_num of this NodeConstraint. + + 最大节点组数 + + :param max_node_group_num: The max_node_group_num of this NodeConstraint. + :type max_node_group_num: int + """ + self._max_node_group_num = max_node_group_num + + @property + def min_data_volume_total_size(self): + """Gets the min_data_volume_total_size of this NodeConstraint. + + 最小数据卷容量 + + :return: The min_data_volume_total_size of this NodeConstraint. + :rtype: dict(str, int) + """ + return self._min_data_volume_total_size + + @min_data_volume_total_size.setter + def min_data_volume_total_size(self, min_data_volume_total_size): + """Sets the min_data_volume_total_size of this NodeConstraint. + + 最小数据卷容量 + + :param min_data_volume_total_size: The min_data_volume_total_size of this NodeConstraint. + :type min_data_volume_total_size: dict(str, int) + """ + self._min_data_volume_total_size = min_data_volume_total_size + + @property + def disk_type_constraint(self): + """Gets the disk_type_constraint of this NodeConstraint. + + 磁盘类型限制,包含当前节点组所支持的磁盘类型 + + :return: The disk_type_constraint of this NodeConstraint. + :rtype: dict(str, str) + """ + return self._disk_type_constraint + + @disk_type_constraint.setter + def disk_type_constraint(self, disk_type_constraint): + """Sets the disk_type_constraint of this NodeConstraint. + + 磁盘类型限制,包含当前节点组所支持的磁盘类型 + + :param disk_type_constraint: The disk_type_constraint of this NodeConstraint. + :type disk_type_constraint: dict(str, str) + """ + self._disk_type_constraint = disk_type_constraint + + @property + def min_root_disk_size(self): + """Gets the min_root_disk_size of this NodeConstraint. + + 最小系统磁盘大小 + + :return: The min_root_disk_size of this NodeConstraint. + :rtype: int + """ + return self._min_root_disk_size + + @min_root_disk_size.setter + def min_root_disk_size(self, min_root_disk_size): + """Sets the min_root_disk_size of this NodeConstraint. + + 最小系统磁盘大小 + + :param min_root_disk_size: The min_root_disk_size of this NodeConstraint. + :type min_root_disk_size: int + """ + self._min_root_disk_size = min_root_disk_size + + 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, NodeConstraint): + 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-mrs/huaweicloudsdkmrs/v1/model/node_constraints.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/node_constraints.py new file mode 100644 index 0000000000..fa15850650 --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/node_constraints.py @@ -0,0 +1,315 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class NodeConstraints: + + """ + 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 = { + 'other': 'dict(str, object)', + 'master': 'NodeConstraint', + 'core': 'NodeConstraint', + 'task': 'NodeConstraint', + 'core_separate': 'NodeConstraint', + 'core_combine': 'NodeConstraint', + 'task_separate': 'NodeConstraint', + 'task_combine': 'NodeConstraint', + 'node_group_task': 'NodeConstraint' + } + + attribute_map = { + 'other': 'other', + 'master': 'master', + 'core': 'core', + 'task': 'task', + 'core_separate': 'core_separate', + 'core_combine': 'core_combine', + 'task_separate': 'task_separate', + 'task_combine': 'task_combine', + 'node_group_task': 'node_group_task' + } + + def __init__(self, other=None, master=None, core=None, task=None, core_separate=None, core_combine=None, task_separate=None, task_combine=None, node_group_task=None): + """NodeConstraints + + The model defined in huaweicloud sdk + + :param other: 其他节点限制 + :type other: dict(str, object) + :param master: + :type master: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + :param core: + :type core: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + :param task: + :type task: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + :param core_separate: + :type core_separate: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + :param core_combine: + :type core_combine: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + :param task_separate: + :type task_separate: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + :param task_combine: + :type task_combine: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + :param node_group_task: + :type node_group_task: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + + + + self._other = None + self._master = None + self._core = None + self._task = None + self._core_separate = None + self._core_combine = None + self._task_separate = None + self._task_combine = None + self._node_group_task = None + self.discriminator = None + + if other is not None: + self.other = other + if master is not None: + self.master = master + if core is not None: + self.core = core + if task is not None: + self.task = task + if core_separate is not None: + self.core_separate = core_separate + if core_combine is not None: + self.core_combine = core_combine + if task_separate is not None: + self.task_separate = task_separate + if task_combine is not None: + self.task_combine = task_combine + if node_group_task is not None: + self.node_group_task = node_group_task + + @property + def other(self): + """Gets the other of this NodeConstraints. + + 其他节点限制 + + :return: The other of this NodeConstraints. + :rtype: dict(str, object) + """ + return self._other + + @other.setter + def other(self, other): + """Sets the other of this NodeConstraints. + + 其他节点限制 + + :param other: The other of this NodeConstraints. + :type other: dict(str, object) + """ + self._other = other + + @property + def master(self): + """Gets the master of this NodeConstraints. + + :return: The master of this NodeConstraints. + :rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + return self._master + + @master.setter + def master(self, master): + """Sets the master of this NodeConstraints. + + :param master: The master of this NodeConstraints. + :type master: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + self._master = master + + @property + def core(self): + """Gets the core of this NodeConstraints. + + :return: The core of this NodeConstraints. + :rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + return self._core + + @core.setter + def core(self, core): + """Sets the core of this NodeConstraints. + + :param core: The core of this NodeConstraints. + :type core: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + self._core = core + + @property + def task(self): + """Gets the task of this NodeConstraints. + + :return: The task of this NodeConstraints. + :rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + return self._task + + @task.setter + def task(self, task): + """Sets the task of this NodeConstraints. + + :param task: The task of this NodeConstraints. + :type task: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + self._task = task + + @property + def core_separate(self): + """Gets the core_separate of this NodeConstraints. + + :return: The core_separate of this NodeConstraints. + :rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + return self._core_separate + + @core_separate.setter + def core_separate(self, core_separate): + """Sets the core_separate of this NodeConstraints. + + :param core_separate: The core_separate of this NodeConstraints. + :type core_separate: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + self._core_separate = core_separate + + @property + def core_combine(self): + """Gets the core_combine of this NodeConstraints. + + :return: The core_combine of this NodeConstraints. + :rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + return self._core_combine + + @core_combine.setter + def core_combine(self, core_combine): + """Sets the core_combine of this NodeConstraints. + + :param core_combine: The core_combine of this NodeConstraints. + :type core_combine: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + self._core_combine = core_combine + + @property + def task_separate(self): + """Gets the task_separate of this NodeConstraints. + + :return: The task_separate of this NodeConstraints. + :rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + return self._task_separate + + @task_separate.setter + def task_separate(self, task_separate): + """Sets the task_separate of this NodeConstraints. + + :param task_separate: The task_separate of this NodeConstraints. + :type task_separate: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + self._task_separate = task_separate + + @property + def task_combine(self): + """Gets the task_combine of this NodeConstraints. + + :return: The task_combine of this NodeConstraints. + :rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + return self._task_combine + + @task_combine.setter + def task_combine(self, task_combine): + """Sets the task_combine of this NodeConstraints. + + :param task_combine: The task_combine of this NodeConstraints. + :type task_combine: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + self._task_combine = task_combine + + @property + def node_group_task(self): + """Gets the node_group_task of this NodeConstraints. + + :return: The node_group_task of this NodeConstraints. + :rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + return self._node_group_task + + @node_group_task.setter + def node_group_task(self, node_group_task): + """Sets the node_group_task of this NodeConstraints. + + :param node_group_task: The node_group_task of this NodeConstraints. + :type node_group_task: :class:`huaweicloudsdkmrs.v1.NodeConstraint` + """ + self._node_group_task = node_group_task + + 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, NodeConstraints): + 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-mrs/huaweicloudsdkmrs/v1/model/role_deploy_meta.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/role_deploy_meta.py new file mode 100644 index 0000000000..7e8292caee --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/role_deploy_meta.py @@ -0,0 +1,637 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RoleDeployMeta: + + """ + 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 = { + 'other': 'dict(str, object)', + 'name': 'str', + 'code_name': 'str', + 'component': 'str', + 'node_preference': 'str', + 'count': 'str', + 'affinity': 'str', + 'affinity_target': 'str', + 'multi_instance': 'int', + 'role_kind': 'str', + 'constraints': 'list[str]', + 'multi_az_placement': 'str', + 'arbitration_deployment': 'bool', + 'support_elb': 'bool', + 'multi_affinity_group_enable': 'bool', + 'local_disks_anti_affinity': 'bool', + 'multi_instance_name_pattern': 'str', + 'private_ip': 'str', + 'weight': 'str' + } + + attribute_map = { + 'other': 'other', + 'name': 'name', + 'code_name': 'code_name', + 'component': 'component', + 'node_preference': 'node_preference', + 'count': 'count', + 'affinity': 'affinity', + 'affinity_target': 'affinity_target', + 'multi_instance': 'multi_instance', + 'role_kind': 'role_kind', + 'constraints': 'constraints', + 'multi_az_placement': 'multi_az_placement', + 'arbitration_deployment': 'arbitration_deployment', + 'support_elb': 'support_elb', + 'multi_affinity_group_enable': 'multi_affinity_group_enable', + 'local_disks_anti_affinity': 'local_disks_anti_affinity', + 'multi_instance_name_pattern': 'multi_instance_name_pattern', + 'private_ip': 'private_ip', + 'weight': 'weight' + } + + def __init__(self, other=None, name=None, code_name=None, component=None, node_preference=None, count=None, affinity=None, affinity_target=None, multi_instance=None, role_kind=None, constraints=None, multi_az_placement=None, arbitration_deployment=None, support_elb=None, multi_affinity_group_enable=None, local_disks_anti_affinity=None, multi_instance_name_pattern=None, private_ip=None, weight=None): + """RoleDeployMeta + + The model defined in huaweicloud sdk + + :param other: 其他扩展属性 + :type other: dict(str, object) + :param name: 角色名称 + :type name: str + :param code_name: 角色简称 + :type code_name: str + :param component: 角色所属组件 + :type component: str + :param node_preference: 部署倾向 + :type node_preference: str + :param count: 角色数量限制 + :type count: str + :param affinity: 亲和 + :type affinity: str + :param affinity_target: 亲和目标 + :type affinity_target: str + :param multi_instance: 多实例 + :type multi_instance: int + :param role_kind: 角色类型 + :type role_kind: str + :param constraints: 角色限制,包含当前组件角色的一些功能限制,例如:\"no_scale_in\" + :type constraints: list[str] + :param multi_az_placement: 多az部署 + :type multi_az_placement: str + :param arbitration_deployment: 仲裁部署 + :type arbitration_deployment: bool + :param support_elb: 支持ELB + :type support_elb: bool + :param multi_affinity_group_enable: 启用多亲和组 + :type multi_affinity_group_enable: bool + :param local_disks_anti_affinity: 本地盘反亲和 + :type local_disks_anti_affinity: bool + :param multi_instance_name_pattern: 多实例名称模式 + :type multi_instance_name_pattern: str + :param private_ip: 私有IP + :type private_ip: str + :param weight: 权重 + :type weight: str + """ + + + + self._other = None + self._name = None + self._code_name = None + self._component = None + self._node_preference = None + self._count = None + self._affinity = None + self._affinity_target = None + self._multi_instance = None + self._role_kind = None + self._constraints = None + self._multi_az_placement = None + self._arbitration_deployment = None + self._support_elb = None + self._multi_affinity_group_enable = None + self._local_disks_anti_affinity = None + self._multi_instance_name_pattern = None + self._private_ip = None + self._weight = None + self.discriminator = None + + if other is not None: + self.other = other + if name is not None: + self.name = name + if code_name is not None: + self.code_name = code_name + if component is not None: + self.component = component + if node_preference is not None: + self.node_preference = node_preference + if count is not None: + self.count = count + if affinity is not None: + self.affinity = affinity + if affinity_target is not None: + self.affinity_target = affinity_target + if multi_instance is not None: + self.multi_instance = multi_instance + if role_kind is not None: + self.role_kind = role_kind + if constraints is not None: + self.constraints = constraints + if multi_az_placement is not None: + self.multi_az_placement = multi_az_placement + if arbitration_deployment is not None: + self.arbitration_deployment = arbitration_deployment + if support_elb is not None: + self.support_elb = support_elb + if multi_affinity_group_enable is not None: + self.multi_affinity_group_enable = multi_affinity_group_enable + if local_disks_anti_affinity is not None: + self.local_disks_anti_affinity = local_disks_anti_affinity + if multi_instance_name_pattern is not None: + self.multi_instance_name_pattern = multi_instance_name_pattern + if private_ip is not None: + self.private_ip = private_ip + if weight is not None: + self.weight = weight + + @property + def other(self): + """Gets the other of this RoleDeployMeta. + + 其他扩展属性 + + :return: The other of this RoleDeployMeta. + :rtype: dict(str, object) + """ + return self._other + + @other.setter + def other(self, other): + """Sets the other of this RoleDeployMeta. + + 其他扩展属性 + + :param other: The other of this RoleDeployMeta. + :type other: dict(str, object) + """ + self._other = other + + @property + def name(self): + """Gets the name of this RoleDeployMeta. + + 角色名称 + + :return: The name of this RoleDeployMeta. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RoleDeployMeta. + + 角色名称 + + :param name: The name of this RoleDeployMeta. + :type name: str + """ + self._name = name + + @property + def code_name(self): + """Gets the code_name of this RoleDeployMeta. + + 角色简称 + + :return: The code_name of this RoleDeployMeta. + :rtype: str + """ + return self._code_name + + @code_name.setter + def code_name(self, code_name): + """Sets the code_name of this RoleDeployMeta. + + 角色简称 + + :param code_name: The code_name of this RoleDeployMeta. + :type code_name: str + """ + self._code_name = code_name + + @property + def component(self): + """Gets the component of this RoleDeployMeta. + + 角色所属组件 + + :return: The component of this RoleDeployMeta. + :rtype: str + """ + return self._component + + @component.setter + def component(self, component): + """Sets the component of this RoleDeployMeta. + + 角色所属组件 + + :param component: The component of this RoleDeployMeta. + :type component: str + """ + self._component = component + + @property + def node_preference(self): + """Gets the node_preference of this RoleDeployMeta. + + 部署倾向 + + :return: The node_preference of this RoleDeployMeta. + :rtype: str + """ + return self._node_preference + + @node_preference.setter + def node_preference(self, node_preference): + """Sets the node_preference of this RoleDeployMeta. + + 部署倾向 + + :param node_preference: The node_preference of this RoleDeployMeta. + :type node_preference: str + """ + self._node_preference = node_preference + + @property + def count(self): + """Gets the count of this RoleDeployMeta. + + 角色数量限制 + + :return: The count of this RoleDeployMeta. + :rtype: str + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this RoleDeployMeta. + + 角色数量限制 + + :param count: The count of this RoleDeployMeta. + :type count: str + """ + self._count = count + + @property + def affinity(self): + """Gets the affinity of this RoleDeployMeta. + + 亲和 + + :return: The affinity of this RoleDeployMeta. + :rtype: str + """ + return self._affinity + + @affinity.setter + def affinity(self, affinity): + """Sets the affinity of this RoleDeployMeta. + + 亲和 + + :param affinity: The affinity of this RoleDeployMeta. + :type affinity: str + """ + self._affinity = affinity + + @property + def affinity_target(self): + """Gets the affinity_target of this RoleDeployMeta. + + 亲和目标 + + :return: The affinity_target of this RoleDeployMeta. + :rtype: str + """ + return self._affinity_target + + @affinity_target.setter + def affinity_target(self, affinity_target): + """Sets the affinity_target of this RoleDeployMeta. + + 亲和目标 + + :param affinity_target: The affinity_target of this RoleDeployMeta. + :type affinity_target: str + """ + self._affinity_target = affinity_target + + @property + def multi_instance(self): + """Gets the multi_instance of this RoleDeployMeta. + + 多实例 + + :return: The multi_instance of this RoleDeployMeta. + :rtype: int + """ + return self._multi_instance + + @multi_instance.setter + def multi_instance(self, multi_instance): + """Sets the multi_instance of this RoleDeployMeta. + + 多实例 + + :param multi_instance: The multi_instance of this RoleDeployMeta. + :type multi_instance: int + """ + self._multi_instance = multi_instance + + @property + def role_kind(self): + """Gets the role_kind of this RoleDeployMeta. + + 角色类型 + + :return: The role_kind of this RoleDeployMeta. + :rtype: str + """ + return self._role_kind + + @role_kind.setter + def role_kind(self, role_kind): + """Sets the role_kind of this RoleDeployMeta. + + 角色类型 + + :param role_kind: The role_kind of this RoleDeployMeta. + :type role_kind: str + """ + self._role_kind = role_kind + + @property + def constraints(self): + """Gets the constraints of this RoleDeployMeta. + + 角色限制,包含当前组件角色的一些功能限制,例如:\"no_scale_in\" + + :return: The constraints of this RoleDeployMeta. + :rtype: list[str] + """ + return self._constraints + + @constraints.setter + def constraints(self, constraints): + """Sets the constraints of this RoleDeployMeta. + + 角色限制,包含当前组件角色的一些功能限制,例如:\"no_scale_in\" + + :param constraints: The constraints of this RoleDeployMeta. + :type constraints: list[str] + """ + self._constraints = constraints + + @property + def multi_az_placement(self): + """Gets the multi_az_placement of this RoleDeployMeta. + + 多az部署 + + :return: The multi_az_placement of this RoleDeployMeta. + :rtype: str + """ + return self._multi_az_placement + + @multi_az_placement.setter + def multi_az_placement(self, multi_az_placement): + """Sets the multi_az_placement of this RoleDeployMeta. + + 多az部署 + + :param multi_az_placement: The multi_az_placement of this RoleDeployMeta. + :type multi_az_placement: str + """ + self._multi_az_placement = multi_az_placement + + @property + def arbitration_deployment(self): + """Gets the arbitration_deployment of this RoleDeployMeta. + + 仲裁部署 + + :return: The arbitration_deployment of this RoleDeployMeta. + :rtype: bool + """ + return self._arbitration_deployment + + @arbitration_deployment.setter + def arbitration_deployment(self, arbitration_deployment): + """Sets the arbitration_deployment of this RoleDeployMeta. + + 仲裁部署 + + :param arbitration_deployment: The arbitration_deployment of this RoleDeployMeta. + :type arbitration_deployment: bool + """ + self._arbitration_deployment = arbitration_deployment + + @property + def support_elb(self): + """Gets the support_elb of this RoleDeployMeta. + + 支持ELB + + :return: The support_elb of this RoleDeployMeta. + :rtype: bool + """ + return self._support_elb + + @support_elb.setter + def support_elb(self, support_elb): + """Sets the support_elb of this RoleDeployMeta. + + 支持ELB + + :param support_elb: The support_elb of this RoleDeployMeta. + :type support_elb: bool + """ + self._support_elb = support_elb + + @property + def multi_affinity_group_enable(self): + """Gets the multi_affinity_group_enable of this RoleDeployMeta. + + 启用多亲和组 + + :return: The multi_affinity_group_enable of this RoleDeployMeta. + :rtype: bool + """ + return self._multi_affinity_group_enable + + @multi_affinity_group_enable.setter + def multi_affinity_group_enable(self, multi_affinity_group_enable): + """Sets the multi_affinity_group_enable of this RoleDeployMeta. + + 启用多亲和组 + + :param multi_affinity_group_enable: The multi_affinity_group_enable of this RoleDeployMeta. + :type multi_affinity_group_enable: bool + """ + self._multi_affinity_group_enable = multi_affinity_group_enable + + @property + def local_disks_anti_affinity(self): + """Gets the local_disks_anti_affinity of this RoleDeployMeta. + + 本地盘反亲和 + + :return: The local_disks_anti_affinity of this RoleDeployMeta. + :rtype: bool + """ + return self._local_disks_anti_affinity + + @local_disks_anti_affinity.setter + def local_disks_anti_affinity(self, local_disks_anti_affinity): + """Sets the local_disks_anti_affinity of this RoleDeployMeta. + + 本地盘反亲和 + + :param local_disks_anti_affinity: The local_disks_anti_affinity of this RoleDeployMeta. + :type local_disks_anti_affinity: bool + """ + self._local_disks_anti_affinity = local_disks_anti_affinity + + @property + def multi_instance_name_pattern(self): + """Gets the multi_instance_name_pattern of this RoleDeployMeta. + + 多实例名称模式 + + :return: The multi_instance_name_pattern of this RoleDeployMeta. + :rtype: str + """ + return self._multi_instance_name_pattern + + @multi_instance_name_pattern.setter + def multi_instance_name_pattern(self, multi_instance_name_pattern): + """Sets the multi_instance_name_pattern of this RoleDeployMeta. + + 多实例名称模式 + + :param multi_instance_name_pattern: The multi_instance_name_pattern of this RoleDeployMeta. + :type multi_instance_name_pattern: str + """ + self._multi_instance_name_pattern = multi_instance_name_pattern + + @property + def private_ip(self): + """Gets the private_ip of this RoleDeployMeta. + + 私有IP + + :return: The private_ip of this RoleDeployMeta. + :rtype: str + """ + return self._private_ip + + @private_ip.setter + def private_ip(self, private_ip): + """Sets the private_ip of this RoleDeployMeta. + + 私有IP + + :param private_ip: The private_ip of this RoleDeployMeta. + :type private_ip: str + """ + self._private_ip = private_ip + + @property + def weight(self): + """Gets the weight of this RoleDeployMeta. + + 权重 + + :return: The weight of this RoleDeployMeta. + :rtype: str + """ + return self._weight + + @weight.setter + def weight(self, weight): + """Sets the weight of this RoleDeployMeta. + + 权重 + + :param weight: The weight of this RoleDeployMeta. + :type weight: str + """ + self._weight = weight + + 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, RoleDeployMeta): + 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-mrs/huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_request.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_request.py new file mode 100644 index 0000000000..b4dec31c21 --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowMrsVersionMetadataRequest: + + """ + 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 = { + 'version_name': 'str', + 'cluster_id': 'str' + } + + attribute_map = { + 'version_name': 'version_name', + 'cluster_id': 'cluster_id' + } + + def __init__(self, version_name=None, cluster_id=None): + """ShowMrsVersionMetadataRequest + + The model defined in huaweicloud sdk + + :param version_name: 集群版本。例如“MRS 3.1.0”。如果请求客户端不支持自动转义,则需要将空格转义为%20,例如“MRS%203.1.0”。 + :type version_name: str + :param cluster_id: 集群ID。如果指定集群ID,则获取该集群做过补丁更新的最新版本元数据。 + :type cluster_id: str + """ + + + + self._version_name = None + self._cluster_id = None + self.discriminator = None + + self.version_name = version_name + if cluster_id is not None: + self.cluster_id = cluster_id + + @property + def version_name(self): + """Gets the version_name of this ShowMrsVersionMetadataRequest. + + 集群版本。例如“MRS 3.1.0”。如果请求客户端不支持自动转义,则需要将空格转义为%20,例如“MRS%203.1.0”。 + + :return: The version_name of this ShowMrsVersionMetadataRequest. + :rtype: str + """ + return self._version_name + + @version_name.setter + def version_name(self, version_name): + """Sets the version_name of this ShowMrsVersionMetadataRequest. + + 集群版本。例如“MRS 3.1.0”。如果请求客户端不支持自动转义,则需要将空格转义为%20,例如“MRS%203.1.0”。 + + :param version_name: The version_name of this ShowMrsVersionMetadataRequest. + :type version_name: str + """ + self._version_name = version_name + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowMrsVersionMetadataRequest. + + 集群ID。如果指定集群ID,则获取该集群做过补丁更新的最新版本元数据。 + + :return: The cluster_id of this ShowMrsVersionMetadataRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowMrsVersionMetadataRequest. + + 集群ID。如果指定集群ID,则获取该集群做过补丁更新的最新版本元数据。 + + :param cluster_id: The cluster_id of this ShowMrsVersionMetadataRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_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, ShowMrsVersionMetadataRequest): + 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-mrs/huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_response.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_response.py new file mode 100644 index 0000000000..83b6b58472 --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_response.py @@ -0,0 +1,456 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowMrsVersionMetadataResponse(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 = { + 'other': 'dict(str, object)', + 'name': 'str', + 'template_type': 'str', + 'image_id': 'str', + 'status': 'str', + 'features': 'list[str]', + 'cluster_types': 'list[str]', + 'version_type': 'str', + 'components': 'list[VersionComponent]', + 'resource_requirement': 'list[str]', + 'constraints': 'VersionConstraint', + 'flavors': 'FlavorLists', + 'role_deploy_meta': 'list[RoleDeployMeta]' + } + + attribute_map = { + 'other': 'other', + 'name': 'name', + 'template_type': 'template_type', + 'image_id': 'image_id', + 'status': 'status', + 'features': 'features', + 'cluster_types': 'cluster_types', + 'version_type': 'version_type', + 'components': 'components', + 'resource_requirement': 'resource_requirement', + 'constraints': 'constraints', + 'flavors': 'flavors', + 'role_deploy_meta': 'role_deploy_meta' + } + + def __init__(self, other=None, name=None, template_type=None, image_id=None, status=None, features=None, cluster_types=None, version_type=None, components=None, resource_requirement=None, constraints=None, flavors=None, role_deploy_meta=None): + """ShowMrsVersionMetadataResponse + + The model defined in huaweicloud sdk + + :param other: 其他 + :type other: dict(str, object) + :param name: 镜像版本名称 + :type name: str + :param template_type: 模板类型 + :type template_type: str + :param image_id: 镜像ID + :type image_id: str + :param status: 版本状态 + :type status: str + :param features: 特性列表 + :type features: list[str] + :param cluster_types: 集群类型列表 + :type cluster_types: list[str] + :param version_type: 版本类型 + :type version_type: str + :param components: 组件列表 + :type components: list[:class:`huaweicloudsdkmrs.v1.VersionComponent`] + :param resource_requirement: 版本所需的ip等资源说明 + :type resource_requirement: list[str] + :param constraints: + :type constraints: :class:`huaweicloudsdkmrs.v1.VersionConstraint` + :param flavors: + :type flavors: :class:`huaweicloudsdkmrs.v1.FlavorLists` + :param role_deploy_meta: 版本组件实例角色部署策略 + :type role_deploy_meta: list[:class:`huaweicloudsdkmrs.v1.RoleDeployMeta`] + """ + + super(ShowMrsVersionMetadataResponse, self).__init__() + + self._other = None + self._name = None + self._template_type = None + self._image_id = None + self._status = None + self._features = None + self._cluster_types = None + self._version_type = None + self._components = None + self._resource_requirement = None + self._constraints = None + self._flavors = None + self._role_deploy_meta = None + self.discriminator = None + + if other is not None: + self.other = other + if name is not None: + self.name = name + if template_type is not None: + self.template_type = template_type + if image_id is not None: + self.image_id = image_id + if status is not None: + self.status = status + if features is not None: + self.features = features + if cluster_types is not None: + self.cluster_types = cluster_types + if version_type is not None: + self.version_type = version_type + if components is not None: + self.components = components + if resource_requirement is not None: + self.resource_requirement = resource_requirement + if constraints is not None: + self.constraints = constraints + if flavors is not None: + self.flavors = flavors + if role_deploy_meta is not None: + self.role_deploy_meta = role_deploy_meta + + @property + def other(self): + """Gets the other of this ShowMrsVersionMetadataResponse. + + 其他 + + :return: The other of this ShowMrsVersionMetadataResponse. + :rtype: dict(str, object) + """ + return self._other + + @other.setter + def other(self, other): + """Sets the other of this ShowMrsVersionMetadataResponse. + + 其他 + + :param other: The other of this ShowMrsVersionMetadataResponse. + :type other: dict(str, object) + """ + self._other = other + + @property + def name(self): + """Gets the name of this ShowMrsVersionMetadataResponse. + + 镜像版本名称 + + :return: The name of this ShowMrsVersionMetadataResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowMrsVersionMetadataResponse. + + 镜像版本名称 + + :param name: The name of this ShowMrsVersionMetadataResponse. + :type name: str + """ + self._name = name + + @property + def template_type(self): + """Gets the template_type of this ShowMrsVersionMetadataResponse. + + 模板类型 + + :return: The template_type of this ShowMrsVersionMetadataResponse. + :rtype: str + """ + return self._template_type + + @template_type.setter + def template_type(self, template_type): + """Sets the template_type of this ShowMrsVersionMetadataResponse. + + 模板类型 + + :param template_type: The template_type of this ShowMrsVersionMetadataResponse. + :type template_type: str + """ + self._template_type = template_type + + @property + def image_id(self): + """Gets the image_id of this ShowMrsVersionMetadataResponse. + + 镜像ID + + :return: The image_id of this ShowMrsVersionMetadataResponse. + :rtype: str + """ + return self._image_id + + @image_id.setter + def image_id(self, image_id): + """Sets the image_id of this ShowMrsVersionMetadataResponse. + + 镜像ID + + :param image_id: The image_id of this ShowMrsVersionMetadataResponse. + :type image_id: str + """ + self._image_id = image_id + + @property + def status(self): + """Gets the status of this ShowMrsVersionMetadataResponse. + + 版本状态 + + :return: The status of this ShowMrsVersionMetadataResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowMrsVersionMetadataResponse. + + 版本状态 + + :param status: The status of this ShowMrsVersionMetadataResponse. + :type status: str + """ + self._status = status + + @property + def features(self): + """Gets the features of this ShowMrsVersionMetadataResponse. + + 特性列表 + + :return: The features of this ShowMrsVersionMetadataResponse. + :rtype: list[str] + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this ShowMrsVersionMetadataResponse. + + 特性列表 + + :param features: The features of this ShowMrsVersionMetadataResponse. + :type features: list[str] + """ + self._features = features + + @property + def cluster_types(self): + """Gets the cluster_types of this ShowMrsVersionMetadataResponse. + + 集群类型列表 + + :return: The cluster_types of this ShowMrsVersionMetadataResponse. + :rtype: list[str] + """ + return self._cluster_types + + @cluster_types.setter + def cluster_types(self, cluster_types): + """Sets the cluster_types of this ShowMrsVersionMetadataResponse. + + 集群类型列表 + + :param cluster_types: The cluster_types of this ShowMrsVersionMetadataResponse. + :type cluster_types: list[str] + """ + self._cluster_types = cluster_types + + @property + def version_type(self): + """Gets the version_type of this ShowMrsVersionMetadataResponse. + + 版本类型 + + :return: The version_type of this ShowMrsVersionMetadataResponse. + :rtype: str + """ + return self._version_type + + @version_type.setter + def version_type(self, version_type): + """Sets the version_type of this ShowMrsVersionMetadataResponse. + + 版本类型 + + :param version_type: The version_type of this ShowMrsVersionMetadataResponse. + :type version_type: str + """ + self._version_type = version_type + + @property + def components(self): + """Gets the components of this ShowMrsVersionMetadataResponse. + + 组件列表 + + :return: The components of this ShowMrsVersionMetadataResponse. + :rtype: list[:class:`huaweicloudsdkmrs.v1.VersionComponent`] + """ + return self._components + + @components.setter + def components(self, components): + """Sets the components of this ShowMrsVersionMetadataResponse. + + 组件列表 + + :param components: The components of this ShowMrsVersionMetadataResponse. + :type components: list[:class:`huaweicloudsdkmrs.v1.VersionComponent`] + """ + self._components = components + + @property + def resource_requirement(self): + """Gets the resource_requirement of this ShowMrsVersionMetadataResponse. + + 版本所需的ip等资源说明 + + :return: The resource_requirement of this ShowMrsVersionMetadataResponse. + :rtype: list[str] + """ + return self._resource_requirement + + @resource_requirement.setter + def resource_requirement(self, resource_requirement): + """Sets the resource_requirement of this ShowMrsVersionMetadataResponse. + + 版本所需的ip等资源说明 + + :param resource_requirement: The resource_requirement of this ShowMrsVersionMetadataResponse. + :type resource_requirement: list[str] + """ + self._resource_requirement = resource_requirement + + @property + def constraints(self): + """Gets the constraints of this ShowMrsVersionMetadataResponse. + + :return: The constraints of this ShowMrsVersionMetadataResponse. + :rtype: :class:`huaweicloudsdkmrs.v1.VersionConstraint` + """ + return self._constraints + + @constraints.setter + def constraints(self, constraints): + """Sets the constraints of this ShowMrsVersionMetadataResponse. + + :param constraints: The constraints of this ShowMrsVersionMetadataResponse. + :type constraints: :class:`huaweicloudsdkmrs.v1.VersionConstraint` + """ + self._constraints = constraints + + @property + def flavors(self): + """Gets the flavors of this ShowMrsVersionMetadataResponse. + + :return: The flavors of this ShowMrsVersionMetadataResponse. + :rtype: :class:`huaweicloudsdkmrs.v1.FlavorLists` + """ + return self._flavors + + @flavors.setter + def flavors(self, flavors): + """Sets the flavors of this ShowMrsVersionMetadataResponse. + + :param flavors: The flavors of this ShowMrsVersionMetadataResponse. + :type flavors: :class:`huaweicloudsdkmrs.v1.FlavorLists` + """ + self._flavors = flavors + + @property + def role_deploy_meta(self): + """Gets the role_deploy_meta of this ShowMrsVersionMetadataResponse. + + 版本组件实例角色部署策略 + + :return: The role_deploy_meta of this ShowMrsVersionMetadataResponse. + :rtype: list[:class:`huaweicloudsdkmrs.v1.RoleDeployMeta`] + """ + return self._role_deploy_meta + + @role_deploy_meta.setter + def role_deploy_meta(self, role_deploy_meta): + """Sets the role_deploy_meta of this ShowMrsVersionMetadataResponse. + + 版本组件实例角色部署策略 + + :param role_deploy_meta: The role_deploy_meta of this ShowMrsVersionMetadataResponse. + :type role_deploy_meta: list[:class:`huaweicloudsdkmrs.v1.RoleDeployMeta`] + """ + self._role_deploy_meta = role_deploy_meta + + 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, ShowMrsVersionMetadataResponse): + 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-mrs/huaweicloudsdkmrs/v1/model/version_component.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/version_component.py new file mode 100644 index 0000000000..e62777c171 --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/version_component.py @@ -0,0 +1,434 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class VersionComponent: + + """ + 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 = { + 'other': 'dict(str, object)', + 'name': 'str', + 'version': 'str', + 'depend_on': 'list[str]', + 'description': 'str', + 'available_cluster_types': 'list[str]', + 'external_datasources': 'list[ComponentExternalDatasource]', + 'resource_requirement': 'list[str]', + 'valid_roles': 'list[str]', + 'visible': 'bool', + 'children_components': 'list[str]', + 'multi_az_support_status': 'str' + } + + attribute_map = { + 'other': 'other', + 'name': 'name', + 'version': 'version', + 'depend_on': 'depend_on', + 'description': 'description', + 'available_cluster_types': 'available_cluster_types', + 'external_datasources': 'external_datasources', + 'resource_requirement': 'resource_requirement', + 'valid_roles': 'valid_roles', + 'visible': 'visible', + 'children_components': 'children_components', + 'multi_az_support_status': 'multi_az_support_status' + } + + def __init__(self, other=None, name=None, version=None, depend_on=None, description=None, available_cluster_types=None, external_datasources=None, resource_requirement=None, valid_roles=None, visible=None, children_components=None, multi_az_support_status=None): + """VersionComponent + + The model defined in huaweicloud sdk + + :param other: 其他 + :type other: dict(str, object) + :param name: 组件名称 + :type name: str + :param version: 支持版本 + :type version: str + :param depend_on: 组件依赖项 + :type depend_on: list[str] + :param description: 组件描述 + :type description: str + :param available_cluster_types: 支持该组件的集群类型 + :type available_cluster_types: list[str] + :param external_datasources: 外部数据源 + :type external_datasources: list[:class:`huaweicloudsdkmrs.v1.ComponentExternalDatasource`] + :param resource_requirement: 所需的ip等资源说明 + :type resource_requirement: list[str] + :param valid_roles: 有效角色 + :type valid_roles: list[str] + :param visible: 是否可见 + :type visible: bool + :param children_components: 子组件 + :type children_components: list[str] + :param multi_az_support_status: 多az支持状态 + :type multi_az_support_status: str + """ + + + + self._other = None + self._name = None + self._version = None + self._depend_on = None + self._description = None + self._available_cluster_types = None + self._external_datasources = None + self._resource_requirement = None + self._valid_roles = None + self._visible = None + self._children_components = None + self._multi_az_support_status = None + self.discriminator = None + + if other is not None: + self.other = other + if name is not None: + self.name = name + if version is not None: + self.version = version + if depend_on is not None: + self.depend_on = depend_on + if description is not None: + self.description = description + if available_cluster_types is not None: + self.available_cluster_types = available_cluster_types + if external_datasources is not None: + self.external_datasources = external_datasources + if resource_requirement is not None: + self.resource_requirement = resource_requirement + if valid_roles is not None: + self.valid_roles = valid_roles + if visible is not None: + self.visible = visible + if children_components is not None: + self.children_components = children_components + if multi_az_support_status is not None: + self.multi_az_support_status = multi_az_support_status + + @property + def other(self): + """Gets the other of this VersionComponent. + + 其他 + + :return: The other of this VersionComponent. + :rtype: dict(str, object) + """ + return self._other + + @other.setter + def other(self, other): + """Sets the other of this VersionComponent. + + 其他 + + :param other: The other of this VersionComponent. + :type other: dict(str, object) + """ + self._other = other + + @property + def name(self): + """Gets the name of this VersionComponent. + + 组件名称 + + :return: The name of this VersionComponent. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this VersionComponent. + + 组件名称 + + :param name: The name of this VersionComponent. + :type name: str + """ + self._name = name + + @property + def version(self): + """Gets the version of this VersionComponent. + + 支持版本 + + :return: The version of this VersionComponent. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this VersionComponent. + + 支持版本 + + :param version: The version of this VersionComponent. + :type version: str + """ + self._version = version + + @property + def depend_on(self): + """Gets the depend_on of this VersionComponent. + + 组件依赖项 + + :return: The depend_on of this VersionComponent. + :rtype: list[str] + """ + return self._depend_on + + @depend_on.setter + def depend_on(self, depend_on): + """Sets the depend_on of this VersionComponent. + + 组件依赖项 + + :param depend_on: The depend_on of this VersionComponent. + :type depend_on: list[str] + """ + self._depend_on = depend_on + + @property + def description(self): + """Gets the description of this VersionComponent. + + 组件描述 + + :return: The description of this VersionComponent. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this VersionComponent. + + 组件描述 + + :param description: The description of this VersionComponent. + :type description: str + """ + self._description = description + + @property + def available_cluster_types(self): + """Gets the available_cluster_types of this VersionComponent. + + 支持该组件的集群类型 + + :return: The available_cluster_types of this VersionComponent. + :rtype: list[str] + """ + return self._available_cluster_types + + @available_cluster_types.setter + def available_cluster_types(self, available_cluster_types): + """Sets the available_cluster_types of this VersionComponent. + + 支持该组件的集群类型 + + :param available_cluster_types: The available_cluster_types of this VersionComponent. + :type available_cluster_types: list[str] + """ + self._available_cluster_types = available_cluster_types + + @property + def external_datasources(self): + """Gets the external_datasources of this VersionComponent. + + 外部数据源 + + :return: The external_datasources of this VersionComponent. + :rtype: list[:class:`huaweicloudsdkmrs.v1.ComponentExternalDatasource`] + """ + return self._external_datasources + + @external_datasources.setter + def external_datasources(self, external_datasources): + """Sets the external_datasources of this VersionComponent. + + 外部数据源 + + :param external_datasources: The external_datasources of this VersionComponent. + :type external_datasources: list[:class:`huaweicloudsdkmrs.v1.ComponentExternalDatasource`] + """ + self._external_datasources = external_datasources + + @property + def resource_requirement(self): + """Gets the resource_requirement of this VersionComponent. + + 所需的ip等资源说明 + + :return: The resource_requirement of this VersionComponent. + :rtype: list[str] + """ + return self._resource_requirement + + @resource_requirement.setter + def resource_requirement(self, resource_requirement): + """Sets the resource_requirement of this VersionComponent. + + 所需的ip等资源说明 + + :param resource_requirement: The resource_requirement of this VersionComponent. + :type resource_requirement: list[str] + """ + self._resource_requirement = resource_requirement + + @property + def valid_roles(self): + """Gets the valid_roles of this VersionComponent. + + 有效角色 + + :return: The valid_roles of this VersionComponent. + :rtype: list[str] + """ + return self._valid_roles + + @valid_roles.setter + def valid_roles(self, valid_roles): + """Sets the valid_roles of this VersionComponent. + + 有效角色 + + :param valid_roles: The valid_roles of this VersionComponent. + :type valid_roles: list[str] + """ + self._valid_roles = valid_roles + + @property + def visible(self): + """Gets the visible of this VersionComponent. + + 是否可见 + + :return: The visible of this VersionComponent. + :rtype: bool + """ + return self._visible + + @visible.setter + def visible(self, visible): + """Sets the visible of this VersionComponent. + + 是否可见 + + :param visible: The visible of this VersionComponent. + :type visible: bool + """ + self._visible = visible + + @property + def children_components(self): + """Gets the children_components of this VersionComponent. + + 子组件 + + :return: The children_components of this VersionComponent. + :rtype: list[str] + """ + return self._children_components + + @children_components.setter + def children_components(self, children_components): + """Sets the children_components of this VersionComponent. + + 子组件 + + :param children_components: The children_components of this VersionComponent. + :type children_components: list[str] + """ + self._children_components = children_components + + @property + def multi_az_support_status(self): + """Gets the multi_az_support_status of this VersionComponent. + + 多az支持状态 + + :return: The multi_az_support_status of this VersionComponent. + :rtype: str + """ + return self._multi_az_support_status + + @multi_az_support_status.setter + def multi_az_support_status(self, multi_az_support_status): + """Sets the multi_az_support_status of this VersionComponent. + + 多az支持状态 + + :param multi_az_support_status: The multi_az_support_status of this VersionComponent. + :type multi_az_support_status: str + """ + self._multi_az_support_status = multi_az_support_status + + 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, VersionComponent): + 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-mrs/huaweicloudsdkmrs/v1/model/version_constraint.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/version_constraint.py new file mode 100644 index 0000000000..2bc546fd00 --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/version_constraint.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class VersionConstraint: + + """ + 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 = { + 'other': 'dict(str, object)', + 'node_constraint': 'NodeConstraints', + 'safe_mode_kerberos_exclude_components': 'list[str]' + } + + attribute_map = { + 'other': 'other', + 'node_constraint': 'node_constraint', + 'safe_mode_kerberos_exclude_components': 'safe_mode_kerberos_exclude_components' + } + + def __init__(self, other=None, node_constraint=None, safe_mode_kerberos_exclude_components=None): + """VersionConstraint + + The model defined in huaweicloud sdk + + :param other: 其他限制 + :type other: dict(str, object) + :param node_constraint: + :type node_constraint: :class:`huaweicloudsdkmrs.v1.NodeConstraints` + :param safe_mode_kerberos_exclude_components: 安全模式kerberos排除组件列表 + :type safe_mode_kerberos_exclude_components: list[str] + """ + + + + self._other = None + self._node_constraint = None + self._safe_mode_kerberos_exclude_components = None + self.discriminator = None + + if other is not None: + self.other = other + if node_constraint is not None: + self.node_constraint = node_constraint + if safe_mode_kerberos_exclude_components is not None: + self.safe_mode_kerberos_exclude_components = safe_mode_kerberos_exclude_components + + @property + def other(self): + """Gets the other of this VersionConstraint. + + 其他限制 + + :return: The other of this VersionConstraint. + :rtype: dict(str, object) + """ + return self._other + + @other.setter + def other(self, other): + """Sets the other of this VersionConstraint. + + 其他限制 + + :param other: The other of this VersionConstraint. + :type other: dict(str, object) + """ + self._other = other + + @property + def node_constraint(self): + """Gets the node_constraint of this VersionConstraint. + + :return: The node_constraint of this VersionConstraint. + :rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraints` + """ + return self._node_constraint + + @node_constraint.setter + def node_constraint(self, node_constraint): + """Sets the node_constraint of this VersionConstraint. + + :param node_constraint: The node_constraint of this VersionConstraint. + :type node_constraint: :class:`huaweicloudsdkmrs.v1.NodeConstraints` + """ + self._node_constraint = node_constraint + + @property + def safe_mode_kerberos_exclude_components(self): + """Gets the safe_mode_kerberos_exclude_components of this VersionConstraint. + + 安全模式kerberos排除组件列表 + + :return: The safe_mode_kerberos_exclude_components of this VersionConstraint. + :rtype: list[str] + """ + return self._safe_mode_kerberos_exclude_components + + @safe_mode_kerberos_exclude_components.setter + def safe_mode_kerberos_exclude_components(self, safe_mode_kerberos_exclude_components): + """Sets the safe_mode_kerberos_exclude_components of this VersionConstraint. + + 安全模式kerberos排除组件列表 + + :param safe_mode_kerberos_exclude_components: The safe_mode_kerberos_exclude_components of this VersionConstraint. + :type safe_mode_kerberos_exclude_components: list[str] + """ + self._safe_mode_kerberos_exclude_components = safe_mode_kerberos_exclude_components + + 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, VersionConstraint): + 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-mrs/huaweicloudsdkmrs/v1/mrs_async_client.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/mrs_async_client.py index e312c75f8a..a898826734 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/mrs_async_client.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/mrs_async_client.py @@ -1349,6 +1349,73 @@ def _list_available_zones_http_info(self, request): return http_info + def show_mrs_version_metadata_async(self, request): + """查询对应版本元数据 + + 查询对应版本元数据。如果参数里指定集群id,则可查询集群更新过补丁之后的最新元数据。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowMrsVersionMetadata + :type request: :class:`huaweicloudsdkmrs.v1.ShowMrsVersionMetadataRequest` + :rtype: :class:`huaweicloudsdkmrs.v1.ShowMrsVersionMetadataResponse` + """ + http_info = self._show_mrs_version_metadata_http_info(request) + return self._call_api(**http_info) + + def show_mrs_version_metadata_async_invoker(self, request): + http_info = self._show_mrs_version_metadata_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_mrs_version_metadata_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/metadata/versions/{version_name}", + "request_type": request.__class__.__name__, + "response_type": "ShowMrsVersionMetadataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'version_name' in local_var_params: + path_params['version_name'] = local_var_params['version_name'] + + query_params = [] + if 'cluster_id' in local_var_params: + query_params.append(('cluster_id', local_var_params['cluster_id'])) + + 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 _call_api(self, **kwargs): try: kwargs["async_request"] = True diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/mrs_client.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/mrs_client.py index 00cc459b20..bd45e13b45 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/mrs_client.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/mrs_client.py @@ -1349,6 +1349,73 @@ def _list_available_zones_http_info(cls, request): return http_info + def show_mrs_version_metadata(self, request): + """查询对应版本元数据 + + 查询对应版本元数据。如果参数里指定集群id,则可查询集群更新过补丁之后的最新元数据。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowMrsVersionMetadata + :type request: :class:`huaweicloudsdkmrs.v1.ShowMrsVersionMetadataRequest` + :rtype: :class:`huaweicloudsdkmrs.v1.ShowMrsVersionMetadataResponse` + """ + http_info = self._show_mrs_version_metadata_http_info(request) + return self._call_api(**http_info) + + def show_mrs_version_metadata_invoker(self, request): + http_info = self._show_mrs_version_metadata_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_mrs_version_metadata_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/metadata/versions/{version_name}", + "request_type": request.__class__.__name__, + "response_type": "ShowMrsVersionMetadataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'version_name' in local_var_params: + path_params['version_name'] = local_var_params['version_name'] + + query_params = [] + if 'cluster_id' in local_var_params: + query_params.append(('cluster_id', local_var_params['cluster_id'])) + + 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 _call_api(self, **kwargs): try: return self.do_http_request(**kwargs) diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/region/mrs_region.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/region/mrs_region.py index 9ae254703e..7e1a863753 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/region/mrs_region.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/region/mrs_region.py @@ -49,6 +49,8 @@ class MrsRegion: "https://mrs.ap-southeast-4.myhuaweicloud.cn") EU_WEST_101 = Region("eu-west-101", "https://mrs.eu-west-101.myhuaweicloud.eu") + ME_EAST_1 = Region("me-east-1", + "https://mrs.me-east-1.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, @@ -71,6 +73,7 @@ class MrsRegion: "tr-west-1": TR_WEST_1, "ap-southeast-4": AP_SOUTHEAST_4, "eu-west-101": EU_WEST_101, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/__init__.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/__init__.py index 0b9ae3a53f..a64e329106 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/__init__.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/__init__.py @@ -54,6 +54,7 @@ from huaweicloudsdkmrs.v2.model.job_submit_result import JobSubmitResult from huaweicloudsdkmrs.v2.model.list_data_connector_request import ListDataConnectorRequest from huaweicloudsdkmrs.v2.model.list_data_connector_response import ListDataConnectorResponse +from huaweicloudsdkmrs.v2.model.modify_default_tags_request_body import ModifyDefaultTagsRequestBody from huaweicloudsdkmrs.v2.model.node_group_v2 import NodeGroupV2 from huaweicloudsdkmrs.v2.model.resources_plan import ResourcesPlan from huaweicloudsdkmrs.v2.model.rule import Rule @@ -77,6 +78,10 @@ from huaweicloudsdkmrs.v2.model.show_sql_result_response import ShowSqlResultResponse from huaweicloudsdkmrs.v2.model.show_sql_result_with_job_request import ShowSqlResultWithJobRequest from huaweicloudsdkmrs.v2.model.show_sql_result_with_job_response import ShowSqlResultWithJobResponse +from huaweicloudsdkmrs.v2.model.show_tag_quota_request import ShowTagQuotaRequest +from huaweicloudsdkmrs.v2.model.show_tag_quota_response import ShowTagQuotaResponse +from huaweicloudsdkmrs.v2.model.show_tag_status_request import ShowTagStatusRequest +from huaweicloudsdkmrs.v2.model.show_tag_status_response import ShowTagStatusResponse from huaweicloudsdkmrs.v2.model.shrink_cluster_request import ShrinkClusterRequest from huaweicloudsdkmrs.v2.model.shrink_cluster_response import ShrinkClusterResponse from huaweicloudsdkmrs.v2.model.shrink_param import ShrinkParam @@ -84,6 +89,8 @@ from huaweicloudsdkmrs.v2.model.step_config import StepConfig from huaweicloudsdkmrs.v2.model.stop_job_request import StopJobRequest from huaweicloudsdkmrs.v2.model.stop_job_response import StopJobResponse +from huaweicloudsdkmrs.v2.model.switch_cluster_tags_request import SwitchClusterTagsRequest +from huaweicloudsdkmrs.v2.model.switch_cluster_tags_response import SwitchClusterTagsResponse from huaweicloudsdkmrs.v2.model.tag import Tag from huaweicloudsdkmrs.v2.model.trigger import Trigger from huaweicloudsdkmrs.v2.model.update_agency_mapping_request import UpdateAgencyMappingRequest diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/__init__.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/__init__.py index dea3e78dba..f4c8600629 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/__init__.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/__init__.py @@ -52,6 +52,7 @@ from huaweicloudsdkmrs.v2.model.job_submit_result import JobSubmitResult from huaweicloudsdkmrs.v2.model.list_data_connector_request import ListDataConnectorRequest from huaweicloudsdkmrs.v2.model.list_data_connector_response import ListDataConnectorResponse +from huaweicloudsdkmrs.v2.model.modify_default_tags_request_body import ModifyDefaultTagsRequestBody from huaweicloudsdkmrs.v2.model.node_group_v2 import NodeGroupV2 from huaweicloudsdkmrs.v2.model.resources_plan import ResourcesPlan from huaweicloudsdkmrs.v2.model.rule import Rule @@ -75,6 +76,10 @@ from huaweicloudsdkmrs.v2.model.show_sql_result_response import ShowSqlResultResponse from huaweicloudsdkmrs.v2.model.show_sql_result_with_job_request import ShowSqlResultWithJobRequest from huaweicloudsdkmrs.v2.model.show_sql_result_with_job_response import ShowSqlResultWithJobResponse +from huaweicloudsdkmrs.v2.model.show_tag_quota_request import ShowTagQuotaRequest +from huaweicloudsdkmrs.v2.model.show_tag_quota_response import ShowTagQuotaResponse +from huaweicloudsdkmrs.v2.model.show_tag_status_request import ShowTagStatusRequest +from huaweicloudsdkmrs.v2.model.show_tag_status_response import ShowTagStatusResponse from huaweicloudsdkmrs.v2.model.shrink_cluster_request import ShrinkClusterRequest from huaweicloudsdkmrs.v2.model.shrink_cluster_response import ShrinkClusterResponse from huaweicloudsdkmrs.v2.model.shrink_param import ShrinkParam @@ -82,6 +87,8 @@ from huaweicloudsdkmrs.v2.model.step_config import StepConfig from huaweicloudsdkmrs.v2.model.stop_job_request import StopJobRequest from huaweicloudsdkmrs.v2.model.stop_job_response import StopJobResponse +from huaweicloudsdkmrs.v2.model.switch_cluster_tags_request import SwitchClusterTagsRequest +from huaweicloudsdkmrs.v2.model.switch_cluster_tags_response import SwitchClusterTagsResponse from huaweicloudsdkmrs.v2.model.tag import Tag from huaweicloudsdkmrs.v2.model.trigger import Trigger from huaweicloudsdkmrs.v2.model.update_agency_mapping_request import UpdateAgencyMappingRequest diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/modify_default_tags_request_body.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/modify_default_tags_request_body.py new file mode 100644 index 0000000000..4fb75570f3 --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/modify_default_tags_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyDefaultTagsRequestBody: + + """ + 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 = { + 'action': 'str' + } + + attribute_map = { + 'action': 'action' + } + + def __init__(self, action=None): + """ModifyDefaultTagsRequestBody + + The model defined in huaweicloud sdk + + :param action: 操作类型,支持创建和删除 + :type action: str + """ + + + + self._action = None + self.discriminator = None + + self.action = action + + @property + def action(self): + """Gets the action of this ModifyDefaultTagsRequestBody. + + 操作类型,支持创建和删除 + + :return: The action of this ModifyDefaultTagsRequestBody. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this ModifyDefaultTagsRequestBody. + + 操作类型,支持创建和删除 + + :param action: The action of this ModifyDefaultTagsRequestBody. + :type action: str + """ + self._action = action + + 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, ModifyDefaultTagsRequestBody): + 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-mrs/huaweicloudsdkmrs/v2/model/show_tag_quota_request.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/show_tag_quota_request.py new file mode 100644 index 0000000000..af602e9691 --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/show_tag_quota_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTagQuotaRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'auto_scaling_policy_tags': 'bool' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'auto_scaling_policy_tags': 'auto_scaling_policy_tags' + } + + def __init__(self, cluster_id=None, auto_scaling_policy_tags=None): + """ShowTagQuotaRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID。 + :type cluster_id: str + :param auto_scaling_policy_tags: 是否查询弹性伸缩策略标签 + :type auto_scaling_policy_tags: bool + """ + + + + self._cluster_id = None + self._auto_scaling_policy_tags = None + self.discriminator = None + + self.cluster_id = cluster_id + if auto_scaling_policy_tags is not None: + self.auto_scaling_policy_tags = auto_scaling_policy_tags + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowTagQuotaRequest. + + 集群ID。 + + :return: The cluster_id of this ShowTagQuotaRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowTagQuotaRequest. + + 集群ID。 + + :param cluster_id: The cluster_id of this ShowTagQuotaRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def auto_scaling_policy_tags(self): + """Gets the auto_scaling_policy_tags of this ShowTagQuotaRequest. + + 是否查询弹性伸缩策略标签 + + :return: The auto_scaling_policy_tags of this ShowTagQuotaRequest. + :rtype: bool + """ + return self._auto_scaling_policy_tags + + @auto_scaling_policy_tags.setter + def auto_scaling_policy_tags(self, auto_scaling_policy_tags): + """Sets the auto_scaling_policy_tags of this ShowTagQuotaRequest. + + 是否查询弹性伸缩策略标签 + + :param auto_scaling_policy_tags: The auto_scaling_policy_tags of this ShowTagQuotaRequest. + :type auto_scaling_policy_tags: bool + """ + self._auto_scaling_policy_tags = auto_scaling_policy_tags + + 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, ShowTagQuotaRequest): + 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-mrs/huaweicloudsdkmrs/v2/model/show_tag_quota_response.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/show_tag_quota_response.py new file mode 100644 index 0000000000..5f5aa5160f --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/show_tag_quota_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 ShowTagQuotaResponse(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 = { + 'total_quota': 'int', + 'available_quota': 'int' + } + + attribute_map = { + 'total_quota': 'total_quota', + 'available_quota': 'available_quota' + } + + def __init__(self, total_quota=None, available_quota=None): + """ShowTagQuotaResponse + + The model defined in huaweicloud sdk + + :param total_quota: 总配额大小 + :type total_quota: int + :param available_quota: 可使用配额大小 + :type available_quota: int + """ + + super(ShowTagQuotaResponse, self).__init__() + + self._total_quota = None + self._available_quota = None + self.discriminator = None + + if total_quota is not None: + self.total_quota = total_quota + if available_quota is not None: + self.available_quota = available_quota + + @property + def total_quota(self): + """Gets the total_quota of this ShowTagQuotaResponse. + + 总配额大小 + + :return: The total_quota of this ShowTagQuotaResponse. + :rtype: int + """ + return self._total_quota + + @total_quota.setter + def total_quota(self, total_quota): + """Sets the total_quota of this ShowTagQuotaResponse. + + 总配额大小 + + :param total_quota: The total_quota of this ShowTagQuotaResponse. + :type total_quota: int + """ + self._total_quota = total_quota + + @property + def available_quota(self): + """Gets the available_quota of this ShowTagQuotaResponse. + + 可使用配额大小 + + :return: The available_quota of this ShowTagQuotaResponse. + :rtype: int + """ + return self._available_quota + + @available_quota.setter + def available_quota(self, available_quota): + """Sets the available_quota of this ShowTagQuotaResponse. + + 可使用配额大小 + + :param available_quota: The available_quota of this ShowTagQuotaResponse. + :type available_quota: int + """ + self._available_quota = available_quota + + 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, ShowTagQuotaResponse): + 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-mrs/huaweicloudsdkmrs/v2/model/show_tag_status_request.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/show_tag_status_request.py new file mode 100644 index 0000000000..ed04642891 --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/show_tag_status_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTagStatusRequest: + + """ + 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 = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ShowTagStatusRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID。 + :type cluster_id: str + """ + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowTagStatusRequest. + + 集群ID。 + + :return: The cluster_id of this ShowTagStatusRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowTagStatusRequest. + + 集群ID。 + + :param cluster_id: The cluster_id of this ShowTagStatusRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_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, ShowTagStatusRequest): + 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-mrs/huaweicloudsdkmrs/v2/model/show_tag_status_response.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/show_tag_status_response.py new file mode 100644 index 0000000000..533c2bb6b4 --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/show_tag_status_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 ShowTagStatusResponse(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 = { + 'status': 'str', + 'default_tags_enable': 'bool' + } + + attribute_map = { + 'status': 'status', + 'default_tags_enable': 'default_tags_enable' + } + + def __init__(self, status=None, default_tags_enable=None): + """ShowTagStatusResponse + + The model defined in huaweicloud sdk + + :param status: 标签处理状态 + :type status: str + :param default_tags_enable: 默认标签是否已开启 + :type default_tags_enable: bool + """ + + super(ShowTagStatusResponse, self).__init__() + + self._status = None + self._default_tags_enable = None + self.discriminator = None + + if status is not None: + self.status = status + if default_tags_enable is not None: + self.default_tags_enable = default_tags_enable + + @property + def status(self): + """Gets the status of this ShowTagStatusResponse. + + 标签处理状态 + + :return: The status of this ShowTagStatusResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowTagStatusResponse. + + 标签处理状态 + + :param status: The status of this ShowTagStatusResponse. + :type status: str + """ + self._status = status + + @property + def default_tags_enable(self): + """Gets the default_tags_enable of this ShowTagStatusResponse. + + 默认标签是否已开启 + + :return: The default_tags_enable of this ShowTagStatusResponse. + :rtype: bool + """ + return self._default_tags_enable + + @default_tags_enable.setter + def default_tags_enable(self, default_tags_enable): + """Sets the default_tags_enable of this ShowTagStatusResponse. + + 默认标签是否已开启 + + :param default_tags_enable: The default_tags_enable of this ShowTagStatusResponse. + :type default_tags_enable: bool + """ + self._default_tags_enable = default_tags_enable + + 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, ShowTagStatusResponse): + 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-mrs/huaweicloudsdkmrs/v2/model/switch_cluster_tags_request.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/switch_cluster_tags_request.py new file mode 100644 index 0000000000..90b4608b3b --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/switch_cluster_tags_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SwitchClusterTagsRequest: + + """ + 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 = { + 'cluster_id': 'str', + 'body': 'ModifyDefaultTagsRequestBody' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """SwitchClusterTagsRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID。 + :type cluster_id: str + :param body: Body of the SwitchClusterTagsRequest + :type body: :class:`huaweicloudsdkmrs.v2.ModifyDefaultTagsRequestBody` + """ + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this SwitchClusterTagsRequest. + + 集群ID。 + + :return: The cluster_id of this SwitchClusterTagsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this SwitchClusterTagsRequest. + + 集群ID。 + + :param cluster_id: The cluster_id of this SwitchClusterTagsRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this SwitchClusterTagsRequest. + + :return: The body of this SwitchClusterTagsRequest. + :rtype: :class:`huaweicloudsdkmrs.v2.ModifyDefaultTagsRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SwitchClusterTagsRequest. + + :param body: The body of this SwitchClusterTagsRequest. + :type body: :class:`huaweicloudsdkmrs.v2.ModifyDefaultTagsRequestBody` + """ + 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, SwitchClusterTagsRequest): + 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-mrs/huaweicloudsdkmrs/v2/model/switch_cluster_tags_response.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/switch_cluster_tags_response.py new file mode 100644 index 0000000000..7ea677f60c --- /dev/null +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/model/switch_cluster_tags_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 SwitchClusterTagsResponse(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): + """SwitchClusterTagsResponse + + The model defined in huaweicloud sdk + + """ + + super(SwitchClusterTagsResponse, 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, SwitchClusterTagsResponse): + 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-mrs/huaweicloudsdkmrs/v2/mrs_async_client.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/mrs_async_client.py index 6857446cee..654e8bf1f7 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/mrs_async_client.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/mrs_async_client.py @@ -1814,6 +1814,205 @@ def _show_sql_result_http_info(self, request): return http_info + def show_tag_quota_async(self, request): + """查询标签配额 + + 查询标签配额信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowTagQuota + :type request: :class:`huaweicloudsdkmrs.v2.ShowTagQuotaRequest` + :rtype: :class:`huaweicloudsdkmrs.v2.ShowTagQuotaResponse` + """ + http_info = self._show_tag_quota_http_info(request) + return self._call_api(**http_info) + + def show_tag_quota_async_invoker(self, request): + http_info = self._show_tag_quota_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_tag_quota_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/tags/quota", + "request_type": request.__class__.__name__, + "response_type": "ShowTagQuotaResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'auto_scaling_policy_tags' in local_var_params: + query_params.append(('auto_scaling_policy_tags', local_var_params['auto_scaling_policy_tags'])) + + 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_tag_status_async(self, request): + """查询默认标签状态 + + 查询集群默认标签状态 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowTagStatus + :type request: :class:`huaweicloudsdkmrs.v2.ShowTagStatusRequest` + :rtype: :class:`huaweicloudsdkmrs.v2.ShowTagStatusResponse` + """ + http_info = self._show_tag_status_http_info(request) + return self._call_api(**http_info) + + def show_tag_status_async_invoker(self, request): + http_info = self._show_tag_status_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_tag_status_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/tags/status", + "request_type": request.__class__.__name__, + "response_type": "ShowTagStatusResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 switch_cluster_tags_async(self, request): + """集群操作默认标签 + + 对已有集群启用或关闭集群默认标签。开启后,集群内节点会打上集群默认标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SwitchClusterTags + :type request: :class:`huaweicloudsdkmrs.v2.SwitchClusterTagsRequest` + :rtype: :class:`huaweicloudsdkmrs.v2.SwitchClusterTagsResponse` + """ + http_info = self._switch_cluster_tags_http_info(request) + return self._call_api(**http_info) + + def switch_cluster_tags_async_invoker(self, request): + http_info = self._switch_cluster_tags_http_info(request) + return AsyncInvoker(self, http_info) + + def _switch_cluster_tags_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/tags/switch", + "request_type": request.__class__.__name__, + "response_type": "SwitchClusterTagsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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_mrs_version_list_async(self, request): """展示MRS版本列表 diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/mrs_client.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/mrs_client.py index 43a0fa3d70..f4cbd99330 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/mrs_client.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/mrs_client.py @@ -1814,6 +1814,205 @@ def _show_sql_result_http_info(cls, request): return http_info + def show_tag_quota(self, request): + """查询标签配额 + + 查询标签配额信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowTagQuota + :type request: :class:`huaweicloudsdkmrs.v2.ShowTagQuotaRequest` + :rtype: :class:`huaweicloudsdkmrs.v2.ShowTagQuotaResponse` + """ + http_info = self._show_tag_quota_http_info(request) + return self._call_api(**http_info) + + def show_tag_quota_invoker(self, request): + http_info = self._show_tag_quota_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_tag_quota_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/tags/quota", + "request_type": request.__class__.__name__, + "response_type": "ShowTagQuotaResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'auto_scaling_policy_tags' in local_var_params: + query_params.append(('auto_scaling_policy_tags', local_var_params['auto_scaling_policy_tags'])) + + 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_tag_status(self, request): + """查询默认标签状态 + + 查询集群默认标签状态 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowTagStatus + :type request: :class:`huaweicloudsdkmrs.v2.ShowTagStatusRequest` + :rtype: :class:`huaweicloudsdkmrs.v2.ShowTagStatusResponse` + """ + http_info = self._show_tag_status_http_info(request) + return self._call_api(**http_info) + + def show_tag_status_invoker(self, request): + http_info = self._show_tag_status_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_tag_status_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/tags/status", + "request_type": request.__class__.__name__, + "response_type": "ShowTagStatusResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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 switch_cluster_tags(self, request): + """集群操作默认标签 + + 对已有集群启用或关闭集群默认标签。开启后,集群内节点会打上集群默认标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SwitchClusterTags + :type request: :class:`huaweicloudsdkmrs.v2.SwitchClusterTagsRequest` + :rtype: :class:`huaweicloudsdkmrs.v2.SwitchClusterTagsResponse` + """ + http_info = self._switch_cluster_tags_http_info(request) + return self._call_api(**http_info) + + def switch_cluster_tags_invoker(self, request): + http_info = self._switch_cluster_tags_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _switch_cluster_tags_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/tags/switch", + "request_type": request.__class__.__name__, + "response_type": "SwitchClusterTagsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_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;charset=UTF-8']) + + 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_mrs_version_list(self, request): """展示MRS版本列表 diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py index 9ae254703e..7e1a863753 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py @@ -49,6 +49,8 @@ class MrsRegion: "https://mrs.ap-southeast-4.myhuaweicloud.cn") EU_WEST_101 = Region("eu-west-101", "https://mrs.eu-west-101.myhuaweicloud.eu") + ME_EAST_1 = Region("me-east-1", + "https://mrs.me-east-1.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, @@ -71,6 +73,7 @@ class MrsRegion: "tr-west-1": TR_WEST_1, "ap-southeast-4": AP_SOUTHEAST_4, "eu-west-101": EU_WEST_101, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index e1268b26f5..faf576fcfb 100644 --- a/huaweicloud-sdk-mrs/setup.py +++ b/huaweicloud-sdk-mrs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmrs" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-msgsms/requirements.txt b/huaweicloud-sdk-msgsms/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-msgsms/requirements.txt +++ b/huaweicloud-sdk-msgsms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-msgsms/setup.py b/huaweicloud-sdk-msgsms/setup.py index 4e9779047b..08edeb7f6c 100644 --- a/huaweicloud-sdk-msgsms/setup.py +++ b/huaweicloud-sdk-msgsms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmsgsms" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mssi/requirements.txt b/huaweicloud-sdk-mssi/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-mssi/requirements.txt +++ b/huaweicloud-sdk-mssi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-mssi/setup.py b/huaweicloud-sdk-mssi/setup.py index 624b93d2f4..0646062d8c 100644 --- a/huaweicloud-sdk-mssi/setup.py +++ b/huaweicloud-sdk-mssi/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmssi" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nat/huaweicloudsdknat/v2/model/create_nat_tag_request_body.py b/huaweicloud-sdk-nat/huaweicloudsdknat/v2/model/create_nat_tag_request_body.py index 4a359337ee..1ac10a8be6 100644 --- a/huaweicloud-sdk-nat/huaweicloudsdknat/v2/model/create_nat_tag_request_body.py +++ b/huaweicloud-sdk-nat/huaweicloudsdknat/v2/model/create_nat_tag_request_body.py @@ -17,7 +17,7 @@ class CreateNatTagRequestBody: sensitive_list = [] openapi_types = { - 'tag': 'object' + 'tag': 'TagBody' } attribute_map = { @@ -29,8 +29,8 @@ def __init__(self, tag=None): The model defined in huaweicloud sdk - :param tag: 标签列表。请参考表TagBody字段数据结构说明。 - :type tag: object + :param tag: + :type tag: :class:`huaweicloudsdknat.v2.TagBody` """ @@ -44,10 +44,8 @@ def __init__(self, tag=None): def tag(self): """Gets the tag of this CreateNatTagRequestBody. - 标签列表。请参考表TagBody字段数据结构说明。 - :return: The tag of this CreateNatTagRequestBody. - :rtype: object + :rtype: :class:`huaweicloudsdknat.v2.TagBody` """ return self._tag @@ -55,10 +53,8 @@ def tag(self): def tag(self, tag): """Sets the tag of this CreateNatTagRequestBody. - 标签列表。请参考表TagBody字段数据结构说明。 - :param tag: The tag of this CreateNatTagRequestBody. - :type tag: object + :type tag: :class:`huaweicloudsdknat.v2.TagBody` """ self._tag = tag diff --git a/huaweicloud-sdk-nat/huaweicloudsdknat/v2/nat_async_client.py b/huaweicloud-sdk-nat/huaweicloudsdknat/v2/nat_async_client.py index 579bf438d8..eb4aa3c9be 100644 --- a/huaweicloud-sdk-nat/huaweicloudsdknat/v2/nat_async_client.py +++ b/huaweicloud-sdk-nat/huaweicloudsdknat/v2/nat_async_client.py @@ -1215,6 +1215,75 @@ def _show_transit_ip_tags_http_info(self, request): return http_info + def batch_create_delete_nat_gateway_tag_async(self, request): + """批量添加/删除公网NAT网关资源标签 + + - 为指定公网NAT网关实例批量添加或删除标签。 + - 标签管理服务需要使用该接口批量管理实例的标签。 + - 一个资源上最多有10个标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchCreateDeleteNatGatewayTag + :type request: :class:`huaweicloudsdknat.v2.BatchCreateDeleteNatGatewayTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.BatchCreateDeleteNatGatewayTagResponse` + """ + http_info = self._batch_create_delete_nat_gateway_tag_http_info(request) + return self._call_api(**http_info) + + def batch_create_delete_nat_gateway_tag_async_invoker(self, request): + http_info = self._batch_create_delete_nat_gateway_tag_http_info(request) + return AsyncInvoker(self, http_info) + + def _batch_create_delete_nat_gateway_tag_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags/action", + "request_type": request.__class__.__name__, + "response_type": "BatchCreateDeleteNatGatewayTagResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'nat_gateway_id' in local_var_params: + path_params['nat_gateway_id'] = local_var_params['nat_gateway_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 batch_create_delete_private_nat_tags_async(self, request): """批量添加删除私网NAT网关标签 @@ -1349,6 +1418,73 @@ def _create_nat_gateway_http_info(self, request): return http_info + def create_nat_gateway_tag_async(self, request): + """添加公网NAT网关资源标签 + + - 添加公网NAT网关资源标签。一个资源上最多有10个标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateNatGatewayTag + :type request: :class:`huaweicloudsdknat.v2.CreateNatGatewayTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.CreateNatGatewayTagResponse` + """ + http_info = self._create_nat_gateway_tag_http_info(request) + return self._call_api(**http_info) + + def create_nat_gateway_tag_async_invoker(self, request): + http_info = self._create_nat_gateway_tag_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_nat_gateway_tag_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags", + "request_type": request.__class__.__name__, + "response_type": "CreateNatGatewayTagResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'nat_gateway_id' in local_var_params: + path_params['nat_gateway_id'] = local_var_params['nat_gateway_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_private_nat_async(self, request): """创建私网NAT网关 @@ -1548,6 +1684,73 @@ def _delete_nat_gateway_http_info(self, request): return http_info + def delete_nat_gateway_tag_async(self, request): + """删除公网NAT网关资源标签 + + - 删除指定公网NAT网关资源实例的标签信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteNatGatewayTag + :type request: :class:`huaweicloudsdknat.v2.DeleteNatGatewayTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.DeleteNatGatewayTagResponse` + """ + http_info = self._delete_nat_gateway_tag_http_info(request) + return self._call_api(**http_info) + + def delete_nat_gateway_tag_async_invoker(self, request): + http_info = self._delete_nat_gateway_tag_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_nat_gateway_tag_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags/{key}", + "request_type": request.__class__.__name__, + "response_type": "DeleteNatGatewayTagResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'nat_gateway_id' in local_var_params: + path_params['nat_gateway_id'] = local_var_params['nat_gateway_id'] + if 'key' in local_var_params: + path_params['key'] = local_var_params['key'] + + 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_private_nat_async(self, request): """删除私网NAT网关 @@ -1681,31 +1884,33 @@ def _delete_private_nat_tag_http_info(self, request): return http_info - def list_nat_gateways_async(self, request): - """查询公网NAT网关列表 + def list_nat_gateway_by_tag_async(self, request): + """查询公网NAT网关资源实例 - 查询公网NAT网关实例列表。 + - 使用标签过滤公网NAT网关资源实例。 + - 标签管理服务需要提供按标签过滤公网NAT网关服务实例并汇总显示在列表中,需要公网NAT网关服务提供查询能力。 + - 资源默认按照创建时间倒序,资源tag也按照创建时间倒序。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListNatGateways - :type request: :class:`huaweicloudsdknat.v2.ListNatGatewaysRequest` - :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewaysResponse` + :param request: Request instance for ListNatGatewayByTag + :type request: :class:`huaweicloudsdknat.v2.ListNatGatewayByTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewayByTagResponse` """ - http_info = self._list_nat_gateways_http_info(request) + http_info = self._list_nat_gateway_by_tag_http_info(request) return self._call_api(**http_info) - def list_nat_gateways_async_invoker(self, request): - http_info = self._list_nat_gateways_http_info(request) + def list_nat_gateway_by_tag_async_invoker(self, request): + http_info = self._list_nat_gateway_by_tag_http_info(request) return AsyncInvoker(self, http_info) - def _list_nat_gateways_http_info(self, request): + def _list_nat_gateway_by_tag_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v2/{project_id}/nat_gateways", + "method": "POST", + "resource_path": "/v3/{project_id}/nat_gateways/resource_instances/action", "request_type": request.__class__.__name__, - "response_type": "ListNatGatewaysResponse" + "response_type": "ListNatGatewayByTagResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1717,37 +1922,166 @@ def _list_nat_gateways_http_info(self, request): path_params = {} query_params = [] - if 'id' in local_var_params: - query_params.append(('id', local_var_params['id'])) - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - if 'description' in local_var_params: - query_params.append(('description', local_var_params['description'])) - if 'created_at' in local_var_params: - query_params.append(('created_at', local_var_params['created_at'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) - collection_formats['status'] = 'csv' - if 'spec' in local_var_params: - query_params.append(('spec', local_var_params['spec'])) - collection_formats['spec'] = 'csv' - if 'admin_state_up' in local_var_params: - query_params.append(('admin_state_up', local_var_params['admin_state_up'])) - if 'internal_network_id' in local_var_params: - query_params.append(('internal_network_id', local_var_params['internal_network_id'])) - if 'router_id' in local_var_params: - query_params.append(('router_id', local_var_params['router_id'])) - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) header_params = {} form_params = {} body = None - if isinstance(request, SdkStreamRequest): + 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 list_nat_gateway_tag_async(self, request): + """查询公网NAT网关项目标签 + + - 查询租户在指定项目和公网NAT网关实例类型的所有标签集合。 + - 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListNatGatewayTag + :type request: :class:`huaweicloudsdknat.v2.ListNatGatewayTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewayTagResponse` + """ + http_info = self._list_nat_gateway_tag_http_info(request) + return self._call_api(**http_info) + + def list_nat_gateway_tag_async_invoker(self, request): + http_info = self._list_nat_gateway_tag_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_nat_gateway_tag_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/nat_gateways/tags", + "request_type": request.__class__.__name__, + "response_type": "ListNatGatewayTagResponse" + } + + 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 = {} + + 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_nat_gateways_async(self, request): + """查询公网NAT网关列表 + + 查询公网NAT网关实例列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListNatGateways + :type request: :class:`huaweicloudsdknat.v2.ListNatGatewaysRequest` + :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewaysResponse` + """ + http_info = self._list_nat_gateways_http_info(request) + return self._call_api(**http_info) + + def list_nat_gateways_async_invoker(self, request): + http_info = self._list_nat_gateways_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_nat_gateways_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/nat_gateways", + "request_type": request.__class__.__name__, + "response_type": "ListNatGatewaysResponse" + } + + 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 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'description' in local_var_params: + query_params.append(('description', local_var_params['description'])) + if 'created_at' in local_var_params: + query_params.append(('created_at', local_var_params['created_at'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'csv' + if 'spec' in local_var_params: + query_params.append(('spec', local_var_params['spec'])) + collection_formats['spec'] = 'csv' + if 'admin_state_up' in local_var_params: + query_params.append(('admin_state_up', local_var_params['admin_state_up'])) + if 'internal_network_id' in local_var_params: + query_params.append(('internal_network_id', local_var_params['internal_network_id'])) + if 'router_id' in local_var_params: + query_params.append(('router_id', local_var_params['router_id'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] @@ -2056,6 +2390,72 @@ def _show_nat_gateway_http_info(self, request): return http_info + def show_nat_gateway_tag_async(self, request): + """查询公网NAT网关资源标签 + + - 查询指定公网NAT网关实例的标签信息。 + - 标签管理服务需要使用该接口查询指定公网NAT网关实例的全部标签数据。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowNatGatewayTag + :type request: :class:`huaweicloudsdknat.v2.ShowNatGatewayTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.ShowNatGatewayTagResponse` + """ + http_info = self._show_nat_gateway_tag_http_info(request) + return self._call_api(**http_info) + + def show_nat_gateway_tag_async_invoker(self, request): + http_info = self._show_nat_gateway_tag_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_nat_gateway_tag_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags", + "request_type": request.__class__.__name__, + "response_type": "ShowNatGatewayTagResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'nat_gateway_id' in local_var_params: + path_params['nat_gateway_id'] = local_var_params['nat_gateway_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_private_nat_async(self, request): """查询指定的私网NAT网关详情 @@ -2603,406 +3003,6 @@ def _show_transit_ip_http_info(self, request): return http_info - def batch_create_delete_nat_gateway_tag_async(self, request): - """批量添加/删除公网NAT网关资源标签 - - - 为指定公网NAT网关实例批量添加或删除标签。 - - 标签管理服务需要使用该接口批量管理实例的标签。 - - 一个资源上最多有10个标签。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for BatchCreateDeleteNatGatewayTag - :type request: :class:`huaweicloudsdknat.v2.BatchCreateDeleteNatGatewayTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.BatchCreateDeleteNatGatewayTagResponse` - """ - http_info = self._batch_create_delete_nat_gateway_tag_http_info(request) - return self._call_api(**http_info) - - def batch_create_delete_nat_gateway_tag_async_invoker(self, request): - http_info = self._batch_create_delete_nat_gateway_tag_http_info(request) - return AsyncInvoker(self, http_info) - - def _batch_create_delete_nat_gateway_tag_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags/action", - "request_type": request.__class__.__name__, - "response_type": "BatchCreateDeleteNatGatewayTagResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'nat_gateway_id' in local_var_params: - path_params['nat_gateway_id'] = local_var_params['nat_gateway_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_nat_gateway_tag_async(self, request): - """添加公网NAT网关资源标签 - - - 添加公网NAT网关资源标签。一个资源上最多有10个标签。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for CreateNatGatewayTag - :type request: :class:`huaweicloudsdknat.v2.CreateNatGatewayTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.CreateNatGatewayTagResponse` - """ - http_info = self._create_nat_gateway_tag_http_info(request) - return self._call_api(**http_info) - - def create_nat_gateway_tag_async_invoker(self, request): - http_info = self._create_nat_gateway_tag_http_info(request) - return AsyncInvoker(self, http_info) - - def _create_nat_gateway_tag_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags", - "request_type": request.__class__.__name__, - "response_type": "CreateNatGatewayTagResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'nat_gateway_id' in local_var_params: - path_params['nat_gateway_id'] = local_var_params['nat_gateway_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 delete_nat_gateway_tag_async(self, request): - """删除公网NAT网关资源标签 - - - 删除指定公网NAT网关资源实例的标签信息。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for DeleteNatGatewayTag - :type request: :class:`huaweicloudsdknat.v2.DeleteNatGatewayTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.DeleteNatGatewayTagResponse` - """ - http_info = self._delete_nat_gateway_tag_http_info(request) - return self._call_api(**http_info) - - def delete_nat_gateway_tag_async_invoker(self, request): - http_info = self._delete_nat_gateway_tag_http_info(request) - return AsyncInvoker(self, http_info) - - def _delete_nat_gateway_tag_http_info(self, request): - http_info = { - "method": "DELETE", - "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags/{key}", - "request_type": request.__class__.__name__, - "response_type": "DeleteNatGatewayTagResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'nat_gateway_id' in local_var_params: - path_params['nat_gateway_id'] = local_var_params['nat_gateway_id'] - if 'key' in local_var_params: - path_params['key'] = local_var_params['key'] - - 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 list_nat_gateway_by_tag_async(self, request): - """查询公网NAT网关资源实例 - - - 使用标签过滤公网NAT网关资源实例。 - - 标签管理服务需要提供按标签过滤公网NAT网关服务实例并汇总显示在列表中,需要公网NAT网关服务提供查询能力。 - - 资源默认按照创建时间倒序,资源tag也按照创建时间倒序。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for ListNatGatewayByTag - :type request: :class:`huaweicloudsdknat.v2.ListNatGatewayByTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewayByTagResponse` - """ - http_info = self._list_nat_gateway_by_tag_http_info(request) - return self._call_api(**http_info) - - def list_nat_gateway_by_tag_async_invoker(self, request): - http_info = self._list_nat_gateway_by_tag_http_info(request) - return AsyncInvoker(self, http_info) - - def _list_nat_gateway_by_tag_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/nat_gateways/resource_instances/action", - "request_type": request.__class__.__name__, - "response_type": "ListNatGatewayByTagResponse" - } - - 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 = {} - - 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 list_nat_gateway_tag_async(self, request): - """查询公网NAT网关项目标签 - - - 查询租户在指定项目和公网NAT网关实例类型的所有标签集合。 - - 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for ListNatGatewayTag - :type request: :class:`huaweicloudsdknat.v2.ListNatGatewayTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewayTagResponse` - """ - http_info = self._list_nat_gateway_tag_http_info(request) - return self._call_api(**http_info) - - def list_nat_gateway_tag_async_invoker(self, request): - http_info = self._list_nat_gateway_tag_http_info(request) - return AsyncInvoker(self, http_info) - - def _list_nat_gateway_tag_http_info(self, request): - http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/nat_gateways/tags", - "request_type": request.__class__.__name__, - "response_type": "ListNatGatewayTagResponse" - } - - 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 = {} - - 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_nat_gateway_tag_async(self, request): - """查询公网NAT网关资源标签 - - - 查询指定公网NAT网关实例的标签信息。 - - 标签管理服务需要使用该接口查询指定公网NAT网关实例的全部标签数据。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for ShowNatGatewayTag - :type request: :class:`huaweicloudsdknat.v2.ShowNatGatewayTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.ShowNatGatewayTagResponse` - """ - http_info = self._show_nat_gateway_tag_http_info(request) - return self._call_api(**http_info) - - def show_nat_gateway_tag_async_invoker(self, request): - http_info = self._show_nat_gateway_tag_http_info(request) - return AsyncInvoker(self, http_info) - - def _show_nat_gateway_tag_http_info(self, request): - http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags", - "request_type": request.__class__.__name__, - "response_type": "ShowNatGatewayTagResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'nat_gateway_id' in local_var_params: - path_params['nat_gateway_id'] = local_var_params['nat_gateway_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 create_nat_gateway_snat_rule_async(self, request): """创建SNAT规则 diff --git a/huaweicloud-sdk-nat/huaweicloudsdknat/v2/nat_client.py b/huaweicloud-sdk-nat/huaweicloudsdknat/v2/nat_client.py index 7b6c8034c7..8f3002d6de 100644 --- a/huaweicloud-sdk-nat/huaweicloudsdknat/v2/nat_client.py +++ b/huaweicloud-sdk-nat/huaweicloudsdknat/v2/nat_client.py @@ -1215,6 +1215,75 @@ def _show_transit_ip_tags_http_info(cls, request): return http_info + def batch_create_delete_nat_gateway_tag(self, request): + """批量添加/删除公网NAT网关资源标签 + + - 为指定公网NAT网关实例批量添加或删除标签。 + - 标签管理服务需要使用该接口批量管理实例的标签。 + - 一个资源上最多有10个标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchCreateDeleteNatGatewayTag + :type request: :class:`huaweicloudsdknat.v2.BatchCreateDeleteNatGatewayTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.BatchCreateDeleteNatGatewayTagResponse` + """ + http_info = self._batch_create_delete_nat_gateway_tag_http_info(request) + return self._call_api(**http_info) + + def batch_create_delete_nat_gateway_tag_invoker(self, request): + http_info = self._batch_create_delete_nat_gateway_tag_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _batch_create_delete_nat_gateway_tag_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags/action", + "request_type": request.__class__.__name__, + "response_type": "BatchCreateDeleteNatGatewayTagResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'nat_gateway_id' in local_var_params: + path_params['nat_gateway_id'] = local_var_params['nat_gateway_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 batch_create_delete_private_nat_tags(self, request): """批量添加删除私网NAT网关标签 @@ -1349,6 +1418,73 @@ def _create_nat_gateway_http_info(cls, request): return http_info + def create_nat_gateway_tag(self, request): + """添加公网NAT网关资源标签 + + - 添加公网NAT网关资源标签。一个资源上最多有10个标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateNatGatewayTag + :type request: :class:`huaweicloudsdknat.v2.CreateNatGatewayTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.CreateNatGatewayTagResponse` + """ + http_info = self._create_nat_gateway_tag_http_info(request) + return self._call_api(**http_info) + + def create_nat_gateway_tag_invoker(self, request): + http_info = self._create_nat_gateway_tag_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_nat_gateway_tag_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags", + "request_type": request.__class__.__name__, + "response_type": "CreateNatGatewayTagResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'nat_gateway_id' in local_var_params: + path_params['nat_gateway_id'] = local_var_params['nat_gateway_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_private_nat(self, request): """创建私网NAT网关 @@ -1548,6 +1684,73 @@ def _delete_nat_gateway_http_info(cls, request): return http_info + def delete_nat_gateway_tag(self, request): + """删除公网NAT网关资源标签 + + - 删除指定公网NAT网关资源实例的标签信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteNatGatewayTag + :type request: :class:`huaweicloudsdknat.v2.DeleteNatGatewayTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.DeleteNatGatewayTagResponse` + """ + http_info = self._delete_nat_gateway_tag_http_info(request) + return self._call_api(**http_info) + + def delete_nat_gateway_tag_invoker(self, request): + http_info = self._delete_nat_gateway_tag_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_nat_gateway_tag_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags/{key}", + "request_type": request.__class__.__name__, + "response_type": "DeleteNatGatewayTagResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'nat_gateway_id' in local_var_params: + path_params['nat_gateway_id'] = local_var_params['nat_gateway_id'] + if 'key' in local_var_params: + path_params['key'] = local_var_params['key'] + + 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_private_nat(self, request): """删除私网NAT网关 @@ -1681,31 +1884,33 @@ def _delete_private_nat_tag_http_info(cls, request): return http_info - def list_nat_gateways(self, request): - """查询公网NAT网关列表 + def list_nat_gateway_by_tag(self, request): + """查询公网NAT网关资源实例 - 查询公网NAT网关实例列表。 + - 使用标签过滤公网NAT网关资源实例。 + - 标签管理服务需要提供按标签过滤公网NAT网关服务实例并汇总显示在列表中,需要公网NAT网关服务提供查询能力。 + - 资源默认按照创建时间倒序,资源tag也按照创建时间倒序。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListNatGateways - :type request: :class:`huaweicloudsdknat.v2.ListNatGatewaysRequest` - :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewaysResponse` + :param request: Request instance for ListNatGatewayByTag + :type request: :class:`huaweicloudsdknat.v2.ListNatGatewayByTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewayByTagResponse` """ - http_info = self._list_nat_gateways_http_info(request) + http_info = self._list_nat_gateway_by_tag_http_info(request) return self._call_api(**http_info) - def list_nat_gateways_invoker(self, request): - http_info = self._list_nat_gateways_http_info(request) + def list_nat_gateway_by_tag_invoker(self, request): + http_info = self._list_nat_gateway_by_tag_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_nat_gateways_http_info(cls, request): + def _list_nat_gateway_by_tag_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v2/{project_id}/nat_gateways", + "method": "POST", + "resource_path": "/v3/{project_id}/nat_gateways/resource_instances/action", "request_type": request.__class__.__name__, - "response_type": "ListNatGatewaysResponse" + "response_type": "ListNatGatewayByTagResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1717,37 +1922,166 @@ def _list_nat_gateways_http_info(cls, request): path_params = {} query_params = [] - if 'id' in local_var_params: - query_params.append(('id', local_var_params['id'])) - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - if 'description' in local_var_params: - query_params.append(('description', local_var_params['description'])) - if 'created_at' in local_var_params: - query_params.append(('created_at', local_var_params['created_at'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'status' in local_var_params: - query_params.append(('status', local_var_params['status'])) - collection_formats['status'] = 'csv' - if 'spec' in local_var_params: - query_params.append(('spec', local_var_params['spec'])) - collection_formats['spec'] = 'csv' - if 'admin_state_up' in local_var_params: - query_params.append(('admin_state_up', local_var_params['admin_state_up'])) - if 'internal_network_id' in local_var_params: - query_params.append(('internal_network_id', local_var_params['internal_network_id'])) - if 'router_id' in local_var_params: - query_params.append(('router_id', local_var_params['router_id'])) - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) header_params = {} form_params = {} body = None - if isinstance(request, SdkStreamRequest): + 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 list_nat_gateway_tag(self, request): + """查询公网NAT网关项目标签 + + - 查询租户在指定项目和公网NAT网关实例类型的所有标签集合。 + - 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListNatGatewayTag + :type request: :class:`huaweicloudsdknat.v2.ListNatGatewayTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewayTagResponse` + """ + http_info = self._list_nat_gateway_tag_http_info(request) + return self._call_api(**http_info) + + def list_nat_gateway_tag_invoker(self, request): + http_info = self._list_nat_gateway_tag_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_nat_gateway_tag_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/nat_gateways/tags", + "request_type": request.__class__.__name__, + "response_type": "ListNatGatewayTagResponse" + } + + 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 = {} + + 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_nat_gateways(self, request): + """查询公网NAT网关列表 + + 查询公网NAT网关实例列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListNatGateways + :type request: :class:`huaweicloudsdknat.v2.ListNatGatewaysRequest` + :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewaysResponse` + """ + http_info = self._list_nat_gateways_http_info(request) + return self._call_api(**http_info) + + def list_nat_gateways_invoker(self, request): + http_info = self._list_nat_gateways_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_nat_gateways_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/nat_gateways", + "request_type": request.__class__.__name__, + "response_type": "ListNatGatewaysResponse" + } + + 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 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'description' in local_var_params: + query_params.append(('description', local_var_params['description'])) + if 'created_at' in local_var_params: + query_params.append(('created_at', local_var_params['created_at'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'csv' + if 'spec' in local_var_params: + query_params.append(('spec', local_var_params['spec'])) + collection_formats['spec'] = 'csv' + if 'admin_state_up' in local_var_params: + query_params.append(('admin_state_up', local_var_params['admin_state_up'])) + if 'internal_network_id' in local_var_params: + query_params.append(('internal_network_id', local_var_params['internal_network_id'])) + if 'router_id' in local_var_params: + query_params.append(('router_id', local_var_params['router_id'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] @@ -2056,6 +2390,72 @@ def _show_nat_gateway_http_info(cls, request): return http_info + def show_nat_gateway_tag(self, request): + """查询公网NAT网关资源标签 + + - 查询指定公网NAT网关实例的标签信息。 + - 标签管理服务需要使用该接口查询指定公网NAT网关实例的全部标签数据。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowNatGatewayTag + :type request: :class:`huaweicloudsdknat.v2.ShowNatGatewayTagRequest` + :rtype: :class:`huaweicloudsdknat.v2.ShowNatGatewayTagResponse` + """ + http_info = self._show_nat_gateway_tag_http_info(request) + return self._call_api(**http_info) + + def show_nat_gateway_tag_invoker(self, request): + http_info = self._show_nat_gateway_tag_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_nat_gateway_tag_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags", + "request_type": request.__class__.__name__, + "response_type": "ShowNatGatewayTagResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'nat_gateway_id' in local_var_params: + path_params['nat_gateway_id'] = local_var_params['nat_gateway_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_private_nat(self, request): """查询指定的私网NAT网关详情 @@ -2603,406 +3003,6 @@ def _show_transit_ip_http_info(cls, request): return http_info - def batch_create_delete_nat_gateway_tag(self, request): - """批量添加/删除公网NAT网关资源标签 - - - 为指定公网NAT网关实例批量添加或删除标签。 - - 标签管理服务需要使用该接口批量管理实例的标签。 - - 一个资源上最多有10个标签。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for BatchCreateDeleteNatGatewayTag - :type request: :class:`huaweicloudsdknat.v2.BatchCreateDeleteNatGatewayTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.BatchCreateDeleteNatGatewayTagResponse` - """ - http_info = self._batch_create_delete_nat_gateway_tag_http_info(request) - return self._call_api(**http_info) - - def batch_create_delete_nat_gateway_tag_invoker(self, request): - http_info = self._batch_create_delete_nat_gateway_tag_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _batch_create_delete_nat_gateway_tag_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags/action", - "request_type": request.__class__.__name__, - "response_type": "BatchCreateDeleteNatGatewayTagResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'nat_gateway_id' in local_var_params: - path_params['nat_gateway_id'] = local_var_params['nat_gateway_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_nat_gateway_tag(self, request): - """添加公网NAT网关资源标签 - - - 添加公网NAT网关资源标签。一个资源上最多有10个标签。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for CreateNatGatewayTag - :type request: :class:`huaweicloudsdknat.v2.CreateNatGatewayTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.CreateNatGatewayTagResponse` - """ - http_info = self._create_nat_gateway_tag_http_info(request) - return self._call_api(**http_info) - - def create_nat_gateway_tag_invoker(self, request): - http_info = self._create_nat_gateway_tag_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _create_nat_gateway_tag_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags", - "request_type": request.__class__.__name__, - "response_type": "CreateNatGatewayTagResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'nat_gateway_id' in local_var_params: - path_params['nat_gateway_id'] = local_var_params['nat_gateway_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 delete_nat_gateway_tag(self, request): - """删除公网NAT网关资源标签 - - - 删除指定公网NAT网关资源实例的标签信息。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for DeleteNatGatewayTag - :type request: :class:`huaweicloudsdknat.v2.DeleteNatGatewayTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.DeleteNatGatewayTagResponse` - """ - http_info = self._delete_nat_gateway_tag_http_info(request) - return self._call_api(**http_info) - - def delete_nat_gateway_tag_invoker(self, request): - http_info = self._delete_nat_gateway_tag_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _delete_nat_gateway_tag_http_info(cls, request): - http_info = { - "method": "DELETE", - "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags/{key}", - "request_type": request.__class__.__name__, - "response_type": "DeleteNatGatewayTagResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'nat_gateway_id' in local_var_params: - path_params['nat_gateway_id'] = local_var_params['nat_gateway_id'] - if 'key' in local_var_params: - path_params['key'] = local_var_params['key'] - - 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 list_nat_gateway_by_tag(self, request): - """查询公网NAT网关资源实例 - - - 使用标签过滤公网NAT网关资源实例。 - - 标签管理服务需要提供按标签过滤公网NAT网关服务实例并汇总显示在列表中,需要公网NAT网关服务提供查询能力。 - - 资源默认按照创建时间倒序,资源tag也按照创建时间倒序。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for ListNatGatewayByTag - :type request: :class:`huaweicloudsdknat.v2.ListNatGatewayByTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewayByTagResponse` - """ - http_info = self._list_nat_gateway_by_tag_http_info(request) - return self._call_api(**http_info) - - def list_nat_gateway_by_tag_invoker(self, request): - http_info = self._list_nat_gateway_by_tag_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _list_nat_gateway_by_tag_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v3/{project_id}/nat_gateways/resource_instances/action", - "request_type": request.__class__.__name__, - "response_type": "ListNatGatewayByTagResponse" - } - - 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 = {} - - 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 list_nat_gateway_tag(self, request): - """查询公网NAT网关项目标签 - - - 查询租户在指定项目和公网NAT网关实例类型的所有标签集合。 - - 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for ListNatGatewayTag - :type request: :class:`huaweicloudsdknat.v2.ListNatGatewayTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.ListNatGatewayTagResponse` - """ - http_info = self._list_nat_gateway_tag_http_info(request) - return self._call_api(**http_info) - - def list_nat_gateway_tag_invoker(self, request): - http_info = self._list_nat_gateway_tag_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _list_nat_gateway_tag_http_info(cls, request): - http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/nat_gateways/tags", - "request_type": request.__class__.__name__, - "response_type": "ListNatGatewayTagResponse" - } - - 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 = {} - - 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_nat_gateway_tag(self, request): - """查询公网NAT网关资源标签 - - - 查询指定公网NAT网关实例的标签信息。 - - 标签管理服务需要使用该接口查询指定公网NAT网关实例的全部标签数据。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for ShowNatGatewayTag - :type request: :class:`huaweicloudsdknat.v2.ShowNatGatewayTagRequest` - :rtype: :class:`huaweicloudsdknat.v2.ShowNatGatewayTagResponse` - """ - http_info = self._show_nat_gateway_tag_http_info(request) - return self._call_api(**http_info) - - def show_nat_gateway_tag_invoker(self, request): - http_info = self._show_nat_gateway_tag_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _show_nat_gateway_tag_http_info(cls, request): - http_info = { - "method": "GET", - "resource_path": "/v3/{project_id}/nat_gateways/{nat_gateway_id}/tags", - "request_type": request.__class__.__name__, - "response_type": "ShowNatGatewayTagResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'nat_gateway_id' in local_var_params: - path_params['nat_gateway_id'] = local_var_params['nat_gateway_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 create_nat_gateway_snat_rule(self, request): """创建SNAT规则 diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index a7a0c2dfd2..3521fa4d60 100644 --- a/huaweicloud-sdk-nat/setup.py +++ b/huaweicloud-sdk-nat/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdknat" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index 4234a945d8..50b3794f66 100644 --- a/huaweicloud-sdk-nlp/setup.py +++ b/huaweicloud-sdk-nlp/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdknlp" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index f486d3a9e6..9be8d75aa8 100644 --- a/huaweicloud-sdk-ocr/setup.py +++ b/huaweicloud-sdk-ocr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkocr" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-octopus/requirements.txt b/huaweicloud-sdk-octopus/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-octopus/requirements.txt +++ b/huaweicloud-sdk-octopus/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-octopus/setup.py b/huaweicloud-sdk-octopus/setup.py index 51290c9c15..21d8026867 100644 --- a/huaweicloud-sdk-octopus/setup.py +++ b/huaweicloud-sdk-octopus/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoctopus" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index 1bd8be9015..136df1948d 100644 --- a/huaweicloud-sdk-oms/setup.py +++ b/huaweicloud-sdk-oms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoms" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-optverse/requirements.txt b/huaweicloud-sdk-optverse/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-optverse/requirements.txt +++ b/huaweicloud-sdk-optverse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-optverse/setup.py b/huaweicloud-sdk-optverse/setup.py index 89dae66c84..17f0e28a4d 100644 --- a/huaweicloud-sdk-optverse/setup.py +++ b/huaweicloud-sdk-optverse/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoptverse" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-organizations/requirements.txt b/huaweicloud-sdk-organizations/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-organizations/requirements.txt +++ b/huaweicloud-sdk-organizations/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-organizations/setup.py b/huaweicloud-sdk-organizations/setup.py index 1c50c3cef7..1da61a6c61 100644 --- a/huaweicloud-sdk-organizations/setup.py +++ b/huaweicloud-sdk-organizations/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkorganizations" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oroas/requirements.txt b/huaweicloud-sdk-oroas/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-oroas/requirements.txt +++ b/huaweicloud-sdk-oroas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-oroas/setup.py b/huaweicloud-sdk-oroas/setup.py index 8441f1c291..c4710d8635 100644 --- a/huaweicloud-sdk-oroas/setup.py +++ b/huaweicloud-sdk-oroas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoroas" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index aa781dd691..ede7a9cc97 100644 --- a/huaweicloud-sdk-osm/setup.py +++ b/huaweicloud-sdk-osm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkosm" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-pangulargemodels/requirements.txt b/huaweicloud-sdk-pangulargemodels/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-pangulargemodels/requirements.txt +++ b/huaweicloud-sdk-pangulargemodels/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-pangulargemodels/setup.py b/huaweicloud-sdk-pangulargemodels/setup.py index eb67a86f45..3e31c38392 100644 --- a/huaweicloud-sdk-pangulargemodels/setup.py +++ b/huaweicloud-sdk-pangulargemodels/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkpangulargemodels" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index 0aa8d2c5ab..ac6d3d20e1 100644 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py b/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py index 7630ea5f57..8e8a6cbc75 100644 --- a/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py +++ b/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py @@ -53,6 +53,8 @@ class RabbitMQRegion: "https://dms.tr-west-1.myhuaweicloud.com") AE_AD_1 = Region("ae-ad-1", "https://dms.ae-ad-1.myhuaweicloud.com") + EU_WEST_0 = Region("eu-west-0", + "https://dms.eu-west-0.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -77,6 +79,7 @@ class RabbitMQRegion: "ap-southeast-4": AP_SOUTHEAST_4, "tr-west-1": TR_WEST_1, "ae-ad-1": AE_AD_1, + "eu-west-0": EU_WEST_0, } @classmethod diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index 115f50a993..a2ee06e2ca 100644 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ram/requirements.txt b/huaweicloud-sdk-ram/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ram/requirements.txt +++ b/huaweicloud-sdk-ram/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ram/setup.py b/huaweicloud-sdk-ram/setup.py index 4dc355df68..90a310892a 100644 --- a/huaweicloud-sdk-ram/setup.py +++ b/huaweicloud-sdk-ram/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkram" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py index c23c35b5a7..d0b85960a8 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py @@ -6,6 +6,8 @@ from huaweicloudsdkrds.v3.rds_async_client import RdsAsyncClient from huaweicloudsdkrds.v3.model.ad_domain_info import ADDomainInfo +from huaweicloudsdkrds.v3.model.add_log_config_response_body import AddLogConfigResponseBody +from huaweicloudsdkrds.v3.model.add_log_configs import AddLogConfigs from huaweicloudsdkrds.v3.model.add_msdtc_request_body import AddMsdtcRequestBody from huaweicloudsdkrds.v3.model.add_postgresql_hba_conf_request import AddPostgresqlHbaConfRequest from huaweicloudsdkrds.v3.model.add_postgresql_hba_conf_response import AddPostgresqlHbaConfResponse @@ -126,6 +128,10 @@ from huaweicloudsdkrds.v3.model.delete_instance_response import DeleteInstanceResponse from huaweicloudsdkrds.v3.model.delete_job_request import DeleteJobRequest from huaweicloudsdkrds.v3.model.delete_job_response import DeleteJobResponse +from huaweicloudsdkrds.v3.model.delete_log_config_response_body import DeleteLogConfigResponseBody +from huaweicloudsdkrds.v3.model.delete_log_configs import DeleteLogConfigs +from huaweicloudsdkrds.v3.model.delete_log_lts_configs_request import DeleteLogLtsConfigsRequest +from huaweicloudsdkrds.v3.model.delete_log_lts_configs_response import DeleteLogLtsConfigsResponse from huaweicloudsdkrds.v3.model.delete_manual_backup_request import DeleteManualBackupRequest from huaweicloudsdkrds.v3.model.delete_manual_backup_response import DeleteManualBackupResponse from huaweicloudsdkrds.v3.model.delete_postgresql_database_request import DeletePostgresqlDatabaseRequest @@ -241,6 +247,8 @@ from huaweicloudsdkrds.v3.model.list_job_info_detail_response import ListJobInfoDetailResponse from huaweicloudsdkrds.v3.model.list_job_info_request import ListJobInfoRequest from huaweicloudsdkrds.v3.model.list_job_info_response import ListJobInfoResponse +from huaweicloudsdkrds.v3.model.list_log_lts_configs_request import ListLogLtsConfigsRequest +from huaweicloudsdkrds.v3.model.list_log_lts_configs_response import ListLogLtsConfigsResponse from huaweicloudsdkrds.v3.model.list_msdtc_hosts_request import ListMsdtcHostsRequest from huaweicloudsdkrds.v3.model.list_msdtc_hosts_response import ListMsdtcHostsResponse from huaweicloudsdkrds.v3.model.list_off_site_backups_request import ListOffSiteBackupsRequest @@ -421,6 +429,8 @@ from huaweicloudsdkrds.v3.model.set_db_user_pwd_response import SetDbUserPwdResponse from huaweicloudsdkrds.v3.model.set_instances_db_shrink_request import SetInstancesDbShrinkRequest from huaweicloudsdkrds.v3.model.set_instances_db_shrink_response import SetInstancesDbShrinkResponse +from huaweicloudsdkrds.v3.model.set_log_lts_configs_request import SetLogLtsConfigsRequest +from huaweicloudsdkrds.v3.model.set_log_lts_configs_response import SetLogLtsConfigsResponse from huaweicloudsdkrds.v3.model.set_off_site_backup_policy_request import SetOffSiteBackupPolicyRequest from huaweicloudsdkrds.v3.model.set_off_site_backup_policy_request_body import SetOffSiteBackupPolicyRequestBody from huaweicloudsdkrds.v3.model.set_off_site_backup_policy_response import SetOffSiteBackupPolicyResponse diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py index 5a292ffc0c..7fd5c71080 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py @@ -4,6 +4,8 @@ # import models into model package from huaweicloudsdkrds.v3.model.ad_domain_info import ADDomainInfo +from huaweicloudsdkrds.v3.model.add_log_config_response_body import AddLogConfigResponseBody +from huaweicloudsdkrds.v3.model.add_log_configs import AddLogConfigs from huaweicloudsdkrds.v3.model.add_msdtc_request_body import AddMsdtcRequestBody from huaweicloudsdkrds.v3.model.add_postgresql_hba_conf_request import AddPostgresqlHbaConfRequest from huaweicloudsdkrds.v3.model.add_postgresql_hba_conf_response import AddPostgresqlHbaConfResponse @@ -124,6 +126,10 @@ from huaweicloudsdkrds.v3.model.delete_instance_response import DeleteInstanceResponse from huaweicloudsdkrds.v3.model.delete_job_request import DeleteJobRequest from huaweicloudsdkrds.v3.model.delete_job_response import DeleteJobResponse +from huaweicloudsdkrds.v3.model.delete_log_config_response_body import DeleteLogConfigResponseBody +from huaweicloudsdkrds.v3.model.delete_log_configs import DeleteLogConfigs +from huaweicloudsdkrds.v3.model.delete_log_lts_configs_request import DeleteLogLtsConfigsRequest +from huaweicloudsdkrds.v3.model.delete_log_lts_configs_response import DeleteLogLtsConfigsResponse from huaweicloudsdkrds.v3.model.delete_manual_backup_request import DeleteManualBackupRequest from huaweicloudsdkrds.v3.model.delete_manual_backup_response import DeleteManualBackupResponse from huaweicloudsdkrds.v3.model.delete_postgresql_database_request import DeletePostgresqlDatabaseRequest @@ -239,6 +245,8 @@ from huaweicloudsdkrds.v3.model.list_job_info_detail_response import ListJobInfoDetailResponse from huaweicloudsdkrds.v3.model.list_job_info_request import ListJobInfoRequest from huaweicloudsdkrds.v3.model.list_job_info_response import ListJobInfoResponse +from huaweicloudsdkrds.v3.model.list_log_lts_configs_request import ListLogLtsConfigsRequest +from huaweicloudsdkrds.v3.model.list_log_lts_configs_response import ListLogLtsConfigsResponse from huaweicloudsdkrds.v3.model.list_msdtc_hosts_request import ListMsdtcHostsRequest from huaweicloudsdkrds.v3.model.list_msdtc_hosts_response import ListMsdtcHostsResponse from huaweicloudsdkrds.v3.model.list_off_site_backups_request import ListOffSiteBackupsRequest @@ -419,6 +427,8 @@ from huaweicloudsdkrds.v3.model.set_db_user_pwd_response import SetDbUserPwdResponse from huaweicloudsdkrds.v3.model.set_instances_db_shrink_request import SetInstancesDbShrinkRequest from huaweicloudsdkrds.v3.model.set_instances_db_shrink_response import SetInstancesDbShrinkResponse +from huaweicloudsdkrds.v3.model.set_log_lts_configs_request import SetLogLtsConfigsRequest +from huaweicloudsdkrds.v3.model.set_log_lts_configs_response import SetLogLtsConfigsResponse from huaweicloudsdkrds.v3.model.set_off_site_backup_policy_request import SetOffSiteBackupPolicyRequest from huaweicloudsdkrds.v3.model.set_off_site_backup_policy_request_body import SetOffSiteBackupPolicyRequestBody from huaweicloudsdkrds.v3.model.set_off_site_backup_policy_response import SetOffSiteBackupPolicyResponse diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/add_log_config_response_body.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/add_log_config_response_body.py new file mode 100644 index 0000000000..dd90e2e637 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/add_log_config_response_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddLogConfigResponseBody: + + """ + 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 = { + 'log_configs': 'list[AddLogConfigs]' + } + + attribute_map = { + 'log_configs': 'log_configs' + } + + def __init__(self, log_configs=None): + """AddLogConfigResponseBody + + The model defined in huaweicloud sdk + + :param log_configs: 实例日志配置信息。 + :type log_configs: list[:class:`huaweicloudsdkrds.v3.AddLogConfigs`] + """ + + + + self._log_configs = None + self.discriminator = None + + self.log_configs = log_configs + + @property + def log_configs(self): + """Gets the log_configs of this AddLogConfigResponseBody. + + 实例日志配置信息。 + + :return: The log_configs of this AddLogConfigResponseBody. + :rtype: list[:class:`huaweicloudsdkrds.v3.AddLogConfigs`] + """ + return self._log_configs + + @log_configs.setter + def log_configs(self, log_configs): + """Sets the log_configs of this AddLogConfigResponseBody. + + 实例日志配置信息。 + + :param log_configs: The log_configs of this AddLogConfigResponseBody. + :type log_configs: list[:class:`huaweicloudsdkrds.v3.AddLogConfigs`] + """ + self._log_configs = log_configs + + 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, AddLogConfigResponseBody): + 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-rds/huaweicloudsdkrds/v3/model/add_log_configs.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/add_log_configs.py new file mode 100644 index 0000000000..181a57c51f --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/add_log_configs.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddLogConfigs: + + """ + 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_id': 'str', + 'log_type': 'str', + 'lts_group_id': 'str', + 'lts_stream_id': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'log_type': 'log_type', + 'lts_group_id': 'lts_group_id', + 'lts_stream_id': 'lts_stream_id' + } + + def __init__(self, instance_id=None, log_type=None, lts_group_id=None, lts_stream_id=None): + """AddLogConfigs + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param log_type: 日志类型。 + :type log_type: str + :param lts_group_id: LTS日志组ID。 + :type lts_group_id: str + :param lts_stream_id: LTS日志流ID。 + :type lts_stream_id: str + """ + + + + self._instance_id = None + self._log_type = None + self._lts_group_id = None + self._lts_stream_id = None + self.discriminator = None + + self.instance_id = instance_id + self.log_type = log_type + self.lts_group_id = lts_group_id + self.lts_stream_id = lts_stream_id + + @property + def instance_id(self): + """Gets the instance_id of this AddLogConfigs. + + 实例ID。 + + :return: The instance_id of this AddLogConfigs. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this AddLogConfigs. + + 实例ID。 + + :param instance_id: The instance_id of this AddLogConfigs. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def log_type(self): + """Gets the log_type of this AddLogConfigs. + + 日志类型。 + + :return: The log_type of this AddLogConfigs. + :rtype: str + """ + return self._log_type + + @log_type.setter + def log_type(self, log_type): + """Sets the log_type of this AddLogConfigs. + + 日志类型。 + + :param log_type: The log_type of this AddLogConfigs. + :type log_type: str + """ + self._log_type = log_type + + @property + def lts_group_id(self): + """Gets the lts_group_id of this AddLogConfigs. + + LTS日志组ID。 + + :return: The lts_group_id of this AddLogConfigs. + :rtype: str + """ + return self._lts_group_id + + @lts_group_id.setter + def lts_group_id(self, lts_group_id): + """Sets the lts_group_id of this AddLogConfigs. + + LTS日志组ID。 + + :param lts_group_id: The lts_group_id of this AddLogConfigs. + :type lts_group_id: str + """ + self._lts_group_id = lts_group_id + + @property + def lts_stream_id(self): + """Gets the lts_stream_id of this AddLogConfigs. + + LTS日志流ID。 + + :return: The lts_stream_id of this AddLogConfigs. + :rtype: str + """ + return self._lts_stream_id + + @lts_stream_id.setter + def lts_stream_id(self, lts_stream_id): + """Sets the lts_stream_id of this AddLogConfigs. + + LTS日志流ID。 + + :param lts_stream_id: The lts_stream_id of this AddLogConfigs. + :type lts_stream_id: str + """ + self._lts_stream_id = lts_stream_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, AddLogConfigs): + 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-rds/huaweicloudsdkrds/v3/model/datastore.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/datastore.py index ae76b2c638..2137265ebc 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/datastore.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/datastore.py @@ -37,7 +37,7 @@ def __init__(self, type=None, version=None, complete_version=None): :type type: str :param version: 数据库版本。 - MySQL引擎支持5.6、5.7、8.0版本。取值示例:5.7。具有相应权限的用户才可使用8.0,您可联系华为云客服人员申请。 - PostgreSQL引擎支持9.5、9.6、10、11版本。取值示例:9.6。 - Microsoft SQL Server:仅支持2017 企业版、2017 标准版、2017 web版、2014 标准版、2014 企业版、2016 标准版、2016 企业版、2012 企业版、2012 标准版、2012 web版、2008 R2 企业版、2008 R2 web版、2014 web版、2016 web版。取值示例2014_SE。 例如:2017标准版可填写2017_SE,2017企业版可填写2017_EE,2017web版可以填写2017_WEB :type version: str - :param complete_version: 数据库完整版本号。仅在数据库引擎是”PostgreSQL”时返回。 + :param complete_version: 数据库完整版本号。仅在数据库引擎是”MySQL”和”PostgreSQL”时返回。 :type complete_version: str """ @@ -101,7 +101,7 @@ def version(self, version): def complete_version(self): """Gets the complete_version of this Datastore. - 数据库完整版本号。仅在数据库引擎是”PostgreSQL”时返回。 + 数据库完整版本号。仅在数据库引擎是”MySQL”和”PostgreSQL”时返回。 :return: The complete_version of this Datastore. :rtype: str @@ -112,7 +112,7 @@ def complete_version(self): def complete_version(self, complete_version): """Sets the complete_version of this Datastore. - 数据库完整版本号。仅在数据库引擎是”PostgreSQL”时返回。 + 数据库完整版本号。仅在数据库引擎是”MySQL”和”PostgreSQL”时返回。 :param complete_version: The complete_version of this Datastore. :type complete_version: str diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/delete_log_config_response_body.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/delete_log_config_response_body.py new file mode 100644 index 0000000000..662da15f0e --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/delete_log_config_response_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteLogConfigResponseBody: + + """ + 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 = { + 'log_configs': 'list[DeleteLogConfigs]' + } + + attribute_map = { + 'log_configs': 'log_configs' + } + + def __init__(self, log_configs=None): + """DeleteLogConfigResponseBody + + The model defined in huaweicloud sdk + + :param log_configs: 实例日志配置信息。 + :type log_configs: list[:class:`huaweicloudsdkrds.v3.DeleteLogConfigs`] + """ + + + + self._log_configs = None + self.discriminator = None + + self.log_configs = log_configs + + @property + def log_configs(self): + """Gets the log_configs of this DeleteLogConfigResponseBody. + + 实例日志配置信息。 + + :return: The log_configs of this DeleteLogConfigResponseBody. + :rtype: list[:class:`huaweicloudsdkrds.v3.DeleteLogConfigs`] + """ + return self._log_configs + + @log_configs.setter + def log_configs(self, log_configs): + """Sets the log_configs of this DeleteLogConfigResponseBody. + + 实例日志配置信息。 + + :param log_configs: The log_configs of this DeleteLogConfigResponseBody. + :type log_configs: list[:class:`huaweicloudsdkrds.v3.DeleteLogConfigs`] + """ + self._log_configs = log_configs + + 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, DeleteLogConfigResponseBody): + 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-rds/huaweicloudsdkrds/v3/model/delete_log_configs.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/delete_log_configs.py new file mode 100644 index 0000000000..d89d8ef55f --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/delete_log_configs.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteLogConfigs: + + """ + 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_id': 'str', + 'log_type': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'log_type': 'log_type' + } + + def __init__(self, instance_id=None, log_type=None): + """DeleteLogConfigs + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param log_type: 日志类型。 + :type log_type: str + """ + + + + self._instance_id = None + self._log_type = None + self.discriminator = None + + self.instance_id = instance_id + self.log_type = log_type + + @property + def instance_id(self): + """Gets the instance_id of this DeleteLogConfigs. + + 实例ID。 + + :return: The instance_id of this DeleteLogConfigs. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteLogConfigs. + + 实例ID。 + + :param instance_id: The instance_id of this DeleteLogConfigs. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def log_type(self): + """Gets the log_type of this DeleteLogConfigs. + + 日志类型。 + + :return: The log_type of this DeleteLogConfigs. + :rtype: str + """ + return self._log_type + + @log_type.setter + def log_type(self, log_type): + """Sets the log_type of this DeleteLogConfigs. + + 日志类型。 + + :param log_type: The log_type of this DeleteLogConfigs. + :type log_type: str + """ + self._log_type = log_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, DeleteLogConfigs): + 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-rds/huaweicloudsdkrds/v3/model/delete_log_lts_configs_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/delete_log_lts_configs_request.py new file mode 100644 index 0000000000..33f73354a6 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/delete_log_lts_configs_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteLogLtsConfigsRequest: + + """ + 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 = { + 'engine': 'str', + 'x_language': 'str', + 'body': 'DeleteLogConfigResponseBody' + } + + attribute_map = { + 'engine': 'engine', + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, engine=None, x_language=None, body=None): + """DeleteLogLtsConfigsRequest + + The model defined in huaweicloud sdk + + :param engine: 引擎。 + :type engine: str + :param x_language: 语言。 + :type x_language: str + :param body: Body of the DeleteLogLtsConfigsRequest + :type body: :class:`huaweicloudsdkrds.v3.DeleteLogConfigResponseBody` + """ + + + + self._engine = None + self._x_language = None + self._body = None + self.discriminator = None + + self.engine = engine + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def engine(self): + """Gets the engine of this DeleteLogLtsConfigsRequest. + + 引擎。 + + :return: The engine of this DeleteLogLtsConfigsRequest. + :rtype: str + """ + return self._engine + + @engine.setter + def engine(self, engine): + """Sets the engine of this DeleteLogLtsConfigsRequest. + + 引擎。 + + :param engine: The engine of this DeleteLogLtsConfigsRequest. + :type engine: str + """ + self._engine = engine + + @property + def x_language(self): + """Gets the x_language of this DeleteLogLtsConfigsRequest. + + 语言。 + + :return: The x_language of this DeleteLogLtsConfigsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this DeleteLogLtsConfigsRequest. + + 语言。 + + :param x_language: The x_language of this DeleteLogLtsConfigsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this DeleteLogLtsConfigsRequest. + + :return: The body of this DeleteLogLtsConfigsRequest. + :rtype: :class:`huaweicloudsdkrds.v3.DeleteLogConfigResponseBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteLogLtsConfigsRequest. + + :param body: The body of this DeleteLogLtsConfigsRequest. + :type body: :class:`huaweicloudsdkrds.v3.DeleteLogConfigResponseBody` + """ + 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, DeleteLogLtsConfigsRequest): + 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-rds/huaweicloudsdkrds/v3/model/delete_log_lts_configs_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/delete_log_lts_configs_response.py new file mode 100644 index 0000000000..4fe4c3ee70 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/delete_log_lts_configs_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 DeleteLogLtsConfigsResponse(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): + """DeleteLogLtsConfigsResponse + + The model defined in huaweicloud sdk + + """ + + super(DeleteLogLtsConfigsResponse, 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, DeleteLogLtsConfigsResponse): + 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-rds/huaweicloudsdkrds/v3/model/list_log_lts_configs_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_log_lts_configs_request.py new file mode 100644 index 0000000000..02080b96b2 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_log_lts_configs_request.py @@ -0,0 +1,346 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListLogLtsConfigsRequest: + + """ + 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 = { + 'engine': 'str', + 'enterprise_project_id': 'str', + 'instance_id': 'str', + 'instance_name': 'str', + 'limit': 'int', + 'offset': 'int', + 'sort': 'str', + 'instance_status': 'str', + 'x_language': 'str' + } + + attribute_map = { + 'engine': 'engine', + 'enterprise_project_id': 'enterprise_project_id', + 'instance_id': 'instance_id', + 'instance_name': 'instance_name', + 'limit': 'limit', + 'offset': 'offset', + 'sort': 'sort', + 'instance_status': 'instance_status', + 'x_language': 'X-Language' + } + + def __init__(self, engine=None, enterprise_project_id=None, instance_id=None, instance_name=None, limit=None, offset=None, sort=None, instance_status=None, x_language=None): + """ListLogLtsConfigsRequest + + The model defined in huaweicloud sdk + + :param engine: 引擎。 + :type engine: str + :param enterprise_project_id: 企业项目ID。默认为空。 + :type enterprise_project_id: str + :param instance_id: 实例ID。默认为空。 + :type instance_id: str + :param instance_name: 实例名称。默认为空。 + :type instance_name: str + :param limit: 查询记录数。默认10。 + :type limit: int + :param offset: 索引位置,偏移量。默认0。 + :type offset: int + :param sort: 排序 + :type sort: str + :param instance_status: 实例状态 + :type instance_status: str + :param x_language: 语言。 + :type x_language: str + """ + + + + self._engine = None + self._enterprise_project_id = None + self._instance_id = None + self._instance_name = None + self._limit = None + self._offset = None + self._sort = None + self._instance_status = None + self._x_language = None + self.discriminator = None + + self.engine = engine + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if instance_id is not None: + self.instance_id = instance_id + if instance_name is not None: + self.instance_name = instance_name + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if sort is not None: + self.sort = sort + if instance_status is not None: + self.instance_status = instance_status + if x_language is not None: + self.x_language = x_language + + @property + def engine(self): + """Gets the engine of this ListLogLtsConfigsRequest. + + 引擎。 + + :return: The engine of this ListLogLtsConfigsRequest. + :rtype: str + """ + return self._engine + + @engine.setter + def engine(self, engine): + """Sets the engine of this ListLogLtsConfigsRequest. + + 引擎。 + + :param engine: The engine of this ListLogLtsConfigsRequest. + :type engine: str + """ + self._engine = engine + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ListLogLtsConfigsRequest. + + 企业项目ID。默认为空。 + + :return: The enterprise_project_id of this ListLogLtsConfigsRequest. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this ListLogLtsConfigsRequest. + + 企业项目ID。默认为空。 + + :param enterprise_project_id: The enterprise_project_id of this ListLogLtsConfigsRequest. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def instance_id(self): + """Gets the instance_id of this ListLogLtsConfigsRequest. + + 实例ID。默认为空。 + + :return: The instance_id of this ListLogLtsConfigsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListLogLtsConfigsRequest. + + 实例ID。默认为空。 + + :param instance_id: The instance_id of this ListLogLtsConfigsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def instance_name(self): + """Gets the instance_name of this ListLogLtsConfigsRequest. + + 实例名称。默认为空。 + + :return: The instance_name of this ListLogLtsConfigsRequest. + :rtype: str + """ + return self._instance_name + + @instance_name.setter + def instance_name(self, instance_name): + """Sets the instance_name of this ListLogLtsConfigsRequest. + + 实例名称。默认为空。 + + :param instance_name: The instance_name of this ListLogLtsConfigsRequest. + :type instance_name: str + """ + self._instance_name = instance_name + + @property + def limit(self): + """Gets the limit of this ListLogLtsConfigsRequest. + + 查询记录数。默认10。 + + :return: The limit of this ListLogLtsConfigsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListLogLtsConfigsRequest. + + 查询记录数。默认10。 + + :param limit: The limit of this ListLogLtsConfigsRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListLogLtsConfigsRequest. + + 索引位置,偏移量。默认0。 + + :return: The offset of this ListLogLtsConfigsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListLogLtsConfigsRequest. + + 索引位置,偏移量。默认0。 + + :param offset: The offset of this ListLogLtsConfigsRequest. + :type offset: int + """ + self._offset = offset + + @property + def sort(self): + """Gets the sort of this ListLogLtsConfigsRequest. + + 排序 + + :return: The sort of this ListLogLtsConfigsRequest. + :rtype: str + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this ListLogLtsConfigsRequest. + + 排序 + + :param sort: The sort of this ListLogLtsConfigsRequest. + :type sort: str + """ + self._sort = sort + + @property + def instance_status(self): + """Gets the instance_status of this ListLogLtsConfigsRequest. + + 实例状态 + + :return: The instance_status of this ListLogLtsConfigsRequest. + :rtype: str + """ + return self._instance_status + + @instance_status.setter + def instance_status(self, instance_status): + """Sets the instance_status of this ListLogLtsConfigsRequest. + + 实例状态 + + :param instance_status: The instance_status of this ListLogLtsConfigsRequest. + :type instance_status: str + """ + self._instance_status = instance_status + + @property + def x_language(self): + """Gets the x_language of this ListLogLtsConfigsRequest. + + 语言。 + + :return: The x_language of this ListLogLtsConfigsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListLogLtsConfigsRequest. + + 语言。 + + :param x_language: The x_language of this ListLogLtsConfigsRequest. + :type x_language: str + """ + self._x_language = x_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, ListLogLtsConfigsRequest): + 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-rds/huaweicloudsdkrds/v3/model/list_log_lts_configs_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_log_lts_configs_response.py new file mode 100644 index 0000000000..4cfeae1aa3 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_log_lts_configs_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 ListLogLtsConfigsResponse(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): + """ListLogLtsConfigsResponse + + The model defined in huaweicloud sdk + + """ + + super(ListLogLtsConfigsResponse, 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, ListLogLtsConfigsResponse): + 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-rds/huaweicloudsdkrds/v3/model/postgre_sql_restore_database_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgre_sql_restore_database_request.py index d5d09e9631..b423eb7c96 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgre_sql_restore_database_request.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/postgre_sql_restore_database_request.py @@ -38,8 +38,7 @@ def __init__(self, instances=None): self._instances = None self.discriminator = None - if instances is not None: - self.instances = instances + self.instances = instances @property def instances(self): diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_database_info.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_database_info.py index f231371b34..dcd0788454 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_database_info.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_database_info.py @@ -43,10 +43,8 @@ def __init__(self, old_name=None, new_name=None): self._new_name = None self.discriminator = None - if old_name is not None: - self.old_name = old_name - if new_name is not None: - self.new_name = new_name + self.old_name = old_name + self.new_name = new_name @property def old_name(self): diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_database_instance.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_database_instance.py index 6638502625..57afa35ca7 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_database_instance.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_database_instance.py @@ -48,12 +48,9 @@ def __init__(self, restore_time=None, instance_id=None, databases=None): self._databases = None self.discriminator = None - if restore_time is not None: - self.restore_time = restore_time - if instance_id is not None: - self.instance_id = instance_id - if databases is not None: - self.databases = databases + self.restore_time = restore_time + self.instance_id = instance_id + self.databases = databases @property def restore_time(self): diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_log_lts_configs_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_log_lts_configs_request.py new file mode 100644 index 0000000000..522d292cca --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_log_lts_configs_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetLogLtsConfigsRequest: + + """ + 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 = { + 'engine': 'str', + 'x_language': 'str', + 'body': 'AddLogConfigResponseBody' + } + + attribute_map = { + 'engine': 'engine', + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, engine=None, x_language=None, body=None): + """SetLogLtsConfigsRequest + + The model defined in huaweicloud sdk + + :param engine: 引擎。 + :type engine: str + :param x_language: 语言。 + :type x_language: str + :param body: Body of the SetLogLtsConfigsRequest + :type body: :class:`huaweicloudsdkrds.v3.AddLogConfigResponseBody` + """ + + + + self._engine = None + self._x_language = None + self._body = None + self.discriminator = None + + self.engine = engine + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def engine(self): + """Gets the engine of this SetLogLtsConfigsRequest. + + 引擎。 + + :return: The engine of this SetLogLtsConfigsRequest. + :rtype: str + """ + return self._engine + + @engine.setter + def engine(self, engine): + """Sets the engine of this SetLogLtsConfigsRequest. + + 引擎。 + + :param engine: The engine of this SetLogLtsConfigsRequest. + :type engine: str + """ + self._engine = engine + + @property + def x_language(self): + """Gets the x_language of this SetLogLtsConfigsRequest. + + 语言。 + + :return: The x_language of this SetLogLtsConfigsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this SetLogLtsConfigsRequest. + + 语言。 + + :param x_language: The x_language of this SetLogLtsConfigsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this SetLogLtsConfigsRequest. + + :return: The body of this SetLogLtsConfigsRequest. + :rtype: :class:`huaweicloudsdkrds.v3.AddLogConfigResponseBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SetLogLtsConfigsRequest. + + :param body: The body of this SetLogLtsConfigsRequest. + :type body: :class:`huaweicloudsdkrds.v3.AddLogConfigResponseBody` + """ + 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, SetLogLtsConfigsRequest): + 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-rds/huaweicloudsdkrds/v3/model/set_log_lts_configs_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_log_lts_configs_response.py new file mode 100644 index 0000000000..a2dc0a3f24 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_log_lts_configs_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 SetLogLtsConfigsResponse(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): + """SetLogLtsConfigsResponse + + The model defined in huaweicloud sdk + + """ + + super(SetLogLtsConfigsResponse, 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, SetLogLtsConfigsResponse): + 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-rds/huaweicloudsdkrds/v3/rds_async_client.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py index 23651a2421..13b4a7c365 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py @@ -1452,6 +1452,75 @@ def _delete_job_http_info(self, request): return http_info + def delete_log_lts_configs_async(self, request): + """delete_log_lts_configs + + 解除LTS配置信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteLogLtsConfigs + :type request: :class:`huaweicloudsdkrds.v3.DeleteLogLtsConfigsRequest` + :rtype: :class:`huaweicloudsdkrds.v3.DeleteLogLtsConfigsResponse` + """ + http_info = self._delete_log_lts_configs_http_info(request) + return self._call_api(**http_info) + + def delete_log_lts_configs_async_invoker(self, request): + http_info = self._delete_log_lts_configs_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_log_lts_configs_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/{engine}/instances/logs/lts-configs", + "request_type": request.__class__.__name__, + "response_type": "DeleteLogLtsConfigsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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_manual_backup_async(self, request): """删除手动备份 @@ -3229,6 +3298,87 @@ def _list_job_info_detail_http_info(self, request): return http_info + def list_log_lts_configs_async(self, request): + """list_log_lts_configs + + 获取LTS配置信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListLogLtsConfigs + :type request: :class:`huaweicloudsdkrds.v3.ListLogLtsConfigsRequest` + :rtype: :class:`huaweicloudsdkrds.v3.ListLogLtsConfigsResponse` + """ + http_info = self._list_log_lts_configs_http_info(request) + return self._call_api(**http_info) + + def list_log_lts_configs_async_invoker(self, request): + http_info = self._list_log_lts_configs_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_log_lts_configs_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/{engine}/instances/logs/lts-configs", + "request_type": request.__class__.__name__, + "response_type": "ListLogLtsConfigsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + + query_params = [] + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'instance_name' in local_var_params: + query_params.append(('instance_name', local_var_params['instance_name'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'sort' in local_var_params: + query_params.append(('sort', local_var_params['sort'])) + if 'instance_status' in local_var_params: + query_params.append(('instance_status', local_var_params['instance_status'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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_off_site_backups_async(self, request): """查询跨区域备份列表 @@ -5400,6 +5550,75 @@ def _set_binlog_clear_policy_http_info(self, request): return http_info + def set_log_lts_configs_async(self, request): + """set_log_lts_configs + + 关联LTS配置信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SetLogLtsConfigs + :type request: :class:`huaweicloudsdkrds.v3.SetLogLtsConfigsRequest` + :rtype: :class:`huaweicloudsdkrds.v3.SetLogLtsConfigsResponse` + """ + http_info = self._set_log_lts_configs_http_info(request) + return self._call_api(**http_info) + + def set_log_lts_configs_async_invoker(self, request): + http_info = self._set_log_lts_configs_http_info(request) + return AsyncInvoker(self, http_info) + + def _set_log_lts_configs_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/{engine}/instances/logs/lts-configs", + "request_type": request.__class__.__name__, + "response_type": "SetLogLtsConfigsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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 set_off_site_backup_policy_async(self, request): """设置跨区域备份策略 diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py index d3e04a39f3..89a85fb2f9 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py @@ -1452,6 +1452,75 @@ def _delete_job_http_info(cls, request): return http_info + def delete_log_lts_configs(self, request): + """delete_log_lts_configs + + 解除LTS配置信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteLogLtsConfigs + :type request: :class:`huaweicloudsdkrds.v3.DeleteLogLtsConfigsRequest` + :rtype: :class:`huaweicloudsdkrds.v3.DeleteLogLtsConfigsResponse` + """ + http_info = self._delete_log_lts_configs_http_info(request) + return self._call_api(**http_info) + + def delete_log_lts_configs_invoker(self, request): + http_info = self._delete_log_lts_configs_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_log_lts_configs_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v3/{project_id}/{engine}/instances/logs/lts-configs", + "request_type": request.__class__.__name__, + "response_type": "DeleteLogLtsConfigsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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_manual_backup(self, request): """删除手动备份 @@ -3229,6 +3298,87 @@ def _list_job_info_detail_http_info(cls, request): return http_info + def list_log_lts_configs(self, request): + """list_log_lts_configs + + 获取LTS配置信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListLogLtsConfigs + :type request: :class:`huaweicloudsdkrds.v3.ListLogLtsConfigsRequest` + :rtype: :class:`huaweicloudsdkrds.v3.ListLogLtsConfigsResponse` + """ + http_info = self._list_log_lts_configs_http_info(request) + return self._call_api(**http_info) + + def list_log_lts_configs_invoker(self, request): + http_info = self._list_log_lts_configs_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_log_lts_configs_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/{engine}/instances/logs/lts-configs", + "request_type": request.__class__.__name__, + "response_type": "ListLogLtsConfigsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + + query_params = [] + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'instance_name' in local_var_params: + query_params.append(('instance_name', local_var_params['instance_name'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'sort' in local_var_params: + query_params.append(('sort', local_var_params['sort'])) + if 'instance_status' in local_var_params: + query_params.append(('instance_status', local_var_params['instance_status'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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_off_site_backups(self, request): """查询跨区域备份列表 @@ -5400,6 +5550,75 @@ def _set_binlog_clear_policy_http_info(cls, request): return http_info + def set_log_lts_configs(self, request): + """set_log_lts_configs + + 关联LTS配置信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SetLogLtsConfigs + :type request: :class:`huaweicloudsdkrds.v3.SetLogLtsConfigsRequest` + :rtype: :class:`huaweicloudsdkrds.v3.SetLogLtsConfigsResponse` + """ + http_info = self._set_log_lts_configs_http_info(request) + return self._call_api(**http_info) + + def set_log_lts_configs_invoker(self, request): + http_info = self._set_log_lts_configs_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _set_log_lts_configs_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/{engine}/instances/logs/lts-configs", + "request_type": request.__class__.__name__, + "response_type": "SetLogLtsConfigsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + 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 set_off_site_backup_policy(self, request): """设置跨区域备份策略 diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index e94b917e8a..b3b63d879e 100644 --- a/huaweicloud-sdk-rds/setup.py +++ b/huaweicloud-sdk-rds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrds" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index b353b24a1b..690e8fbb34 100644 --- a/huaweicloud-sdk-res/setup.py +++ b/huaweicloud-sdk-res/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkres" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rgc/requirements.txt b/huaweicloud-sdk-rgc/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-rgc/requirements.txt +++ b/huaweicloud-sdk-rgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-rgc/setup.py b/huaweicloud-sdk-rgc/setup.py index 0b8f4c1ee3..90d30ce4b4 100644 --- a/huaweicloud-sdk-rgc/setup.py +++ b/huaweicloud-sdk-rgc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrgc" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index 0a53549549..4fbc74a914 100644 --- a/huaweicloud-sdk-rms/setup.py +++ b/huaweicloud-sdk-rms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrms" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/__init__.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/__init__.py index 1a2149d122..98a1041901 100644 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/__init__.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/__init__.py @@ -35,6 +35,7 @@ from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_req import CreatePostPaidInstanceReq from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_request import CreatePostPaidInstanceRequest from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_response import CreatePostPaidInstanceResponse +from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_req import CreateRocketMqMigrationTaskReq from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_request import CreateRocketMqMigrationTaskRequest from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_response import CreateRocketMqMigrationTaskResponse from huaweicloudsdkrocketmq.v2.model.create_topic_or_batch_delete_topic_req import CreateTopicOrBatchDeleteTopicReq @@ -91,6 +92,12 @@ from huaweicloudsdkrocketmq.v2.model.message_property_list import MessagePropertyList from huaweicloudsdkrocketmq.v2.model.metadata_delete_req import MetadataDeleteReq from huaweicloudsdkrocketmq.v2.model.metadata_task import MetadataTask +from huaweicloudsdkrocketmq.v2.model.migration_rabbit_binding_metadata import MigrationRabbitBindingMetadata +from huaweicloudsdkrocketmq.v2.model.migration_rabbit_exchange_metadata import MigrationRabbitExchangeMetadata +from huaweicloudsdkrocketmq.v2.model.migration_rabbit_queue_metadata import MigrationRabbitQueueMetadata +from huaweicloudsdkrocketmq.v2.model.migration_rabbit_vhost_metadata import MigrationRabbitVhostMetadata +from huaweicloudsdkrocketmq.v2.model.migration_rocket_mq_subscription_group import MigrationRocketMqSubscriptionGroup +from huaweicloudsdkrocketmq.v2.model.migration_rocket_mq_topic_config import MigrationRocketMqTopicConfig from huaweicloudsdkrocketmq.v2.model.modify_config_req import ModifyConfigReq from huaweicloudsdkrocketmq.v2.model.queue import Queue from huaweicloudsdkrocketmq.v2.model.resend_req import ResendReq diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/__init__.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/__init__.py index 1e0943f11b..920e998ea0 100644 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/__init__.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/__init__.py @@ -33,6 +33,7 @@ from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_req import CreatePostPaidInstanceReq from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_request import CreatePostPaidInstanceRequest from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_response import CreatePostPaidInstanceResponse +from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_req import CreateRocketMqMigrationTaskReq from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_request import CreateRocketMqMigrationTaskRequest from huaweicloudsdkrocketmq.v2.model.create_rocket_mq_migration_task_response import CreateRocketMqMigrationTaskResponse from huaweicloudsdkrocketmq.v2.model.create_topic_or_batch_delete_topic_req import CreateTopicOrBatchDeleteTopicReq @@ -89,6 +90,12 @@ from huaweicloudsdkrocketmq.v2.model.message_property_list import MessagePropertyList from huaweicloudsdkrocketmq.v2.model.metadata_delete_req import MetadataDeleteReq from huaweicloudsdkrocketmq.v2.model.metadata_task import MetadataTask +from huaweicloudsdkrocketmq.v2.model.migration_rabbit_binding_metadata import MigrationRabbitBindingMetadata +from huaweicloudsdkrocketmq.v2.model.migration_rabbit_exchange_metadata import MigrationRabbitExchangeMetadata +from huaweicloudsdkrocketmq.v2.model.migration_rabbit_queue_metadata import MigrationRabbitQueueMetadata +from huaweicloudsdkrocketmq.v2.model.migration_rabbit_vhost_metadata import MigrationRabbitVhostMetadata +from huaweicloudsdkrocketmq.v2.model.migration_rocket_mq_subscription_group import MigrationRocketMqSubscriptionGroup +from huaweicloudsdkrocketmq.v2.model.migration_rocket_mq_topic_config import MigrationRocketMqTopicConfig from huaweicloudsdkrocketmq.v2.model.modify_config_req import ModifyConfigReq from huaweicloudsdkrocketmq.v2.model.queue import Queue from huaweicloudsdkrocketmq.v2.model.resend_req import ResendReq diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_req.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_req.py new file mode 100644 index 0000000000..f0fe84bfeb --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_req.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRocketMqMigrationTaskReq: + + """ + 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 = { + 'topic_config_table': 'dict(str, MigrationRocketMqTopicConfig)', + 'subscription_group_table': 'dict(str, MigrationRocketMqSubscriptionGroup)', + 'vhosts': 'list[MigrationRabbitVhostMetadata]', + 'queues': 'list[MigrationRabbitQueueMetadata]', + 'exchanges': 'list[MigrationRabbitExchangeMetadata]', + 'bindings': 'list[MigrationRabbitBindingMetadata]' + } + + attribute_map = { + 'topic_config_table': 'topicConfigTable', + 'subscription_group_table': 'subscriptionGroupTable', + 'vhosts': 'vhosts', + 'queues': 'queues', + 'exchanges': 'exchanges', + 'bindings': 'bindings' + } + + def __init__(self, topic_config_table=None, subscription_group_table=None, vhosts=None, queues=None, exchanges=None, bindings=None): + """CreateRocketMqMigrationTaskReq + + The model defined in huaweicloud sdk + + :param topic_config_table: RocketMQ topic 元数据,键为topic名,值为topic配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。 + :type topic_config_table: dict(str, MigrationRocketMqTopicConfig) + :param subscription_group_table: RocketMQ消费组元数据,键为消费组名,值为消费组配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。 + :type subscription_group_table: dict(str, MigrationRocketMqSubscriptionGroup) + :param vhosts: RabbitMQ vhost元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + :type vhosts: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitVhostMetadata`] + :param queues: RabbitMQ队列元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + :type queues: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitQueueMetadata`] + :param exchanges: RabbitMQ交换机元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + :type exchanges: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitExchangeMetadata`] + :param bindings: RabbitMQ binding元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + :type bindings: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitBindingMetadata`] + """ + + + + self._topic_config_table = None + self._subscription_group_table = None + self._vhosts = None + self._queues = None + self._exchanges = None + self._bindings = None + self.discriminator = None + + if topic_config_table is not None: + self.topic_config_table = topic_config_table + if subscription_group_table is not None: + self.subscription_group_table = subscription_group_table + if vhosts is not None: + self.vhosts = vhosts + if queues is not None: + self.queues = queues + if exchanges is not None: + self.exchanges = exchanges + if bindings is not None: + self.bindings = bindings + + @property + def topic_config_table(self): + """Gets the topic_config_table of this CreateRocketMqMigrationTaskReq. + + RocketMQ topic 元数据,键为topic名,值为topic配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。 + + :return: The topic_config_table of this CreateRocketMqMigrationTaskReq. + :rtype: dict(str, MigrationRocketMqTopicConfig) + """ + return self._topic_config_table + + @topic_config_table.setter + def topic_config_table(self, topic_config_table): + """Sets the topic_config_table of this CreateRocketMqMigrationTaskReq. + + RocketMQ topic 元数据,键为topic名,值为topic配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。 + + :param topic_config_table: The topic_config_table of this CreateRocketMqMigrationTaskReq. + :type topic_config_table: dict(str, MigrationRocketMqTopicConfig) + """ + self._topic_config_table = topic_config_table + + @property + def subscription_group_table(self): + """Gets the subscription_group_table of this CreateRocketMqMigrationTaskReq. + + RocketMQ消费组元数据,键为消费组名,值为消费组配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。 + + :return: The subscription_group_table of this CreateRocketMqMigrationTaskReq. + :rtype: dict(str, MigrationRocketMqSubscriptionGroup) + """ + return self._subscription_group_table + + @subscription_group_table.setter + def subscription_group_table(self, subscription_group_table): + """Sets the subscription_group_table of this CreateRocketMqMigrationTaskReq. + + RocketMQ消费组元数据,键为消费组名,值为消费组配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。 + + :param subscription_group_table: The subscription_group_table of this CreateRocketMqMigrationTaskReq. + :type subscription_group_table: dict(str, MigrationRocketMqSubscriptionGroup) + """ + self._subscription_group_table = subscription_group_table + + @property + def vhosts(self): + """Gets the vhosts of this CreateRocketMqMigrationTaskReq. + + RabbitMQ vhost元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + + :return: The vhosts of this CreateRocketMqMigrationTaskReq. + :rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitVhostMetadata`] + """ + return self._vhosts + + @vhosts.setter + def vhosts(self, vhosts): + """Sets the vhosts of this CreateRocketMqMigrationTaskReq. + + RabbitMQ vhost元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + + :param vhosts: The vhosts of this CreateRocketMqMigrationTaskReq. + :type vhosts: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitVhostMetadata`] + """ + self._vhosts = vhosts + + @property + def queues(self): + """Gets the queues of this CreateRocketMqMigrationTaskReq. + + RabbitMQ队列元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + + :return: The queues of this CreateRocketMqMigrationTaskReq. + :rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitQueueMetadata`] + """ + return self._queues + + @queues.setter + def queues(self, queues): + """Sets the queues of this CreateRocketMqMigrationTaskReq. + + RabbitMQ队列元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + + :param queues: The queues of this CreateRocketMqMigrationTaskReq. + :type queues: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitQueueMetadata`] + """ + self._queues = queues + + @property + def exchanges(self): + """Gets the exchanges of this CreateRocketMqMigrationTaskReq. + + RabbitMQ交换机元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + + :return: The exchanges of this CreateRocketMqMigrationTaskReq. + :rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitExchangeMetadata`] + """ + return self._exchanges + + @exchanges.setter + def exchanges(self, exchanges): + """Sets the exchanges of this CreateRocketMqMigrationTaskReq. + + RabbitMQ交换机元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + + :param exchanges: The exchanges of this CreateRocketMqMigrationTaskReq. + :type exchanges: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitExchangeMetadata`] + """ + self._exchanges = exchanges + + @property + def bindings(self): + """Gets the bindings of this CreateRocketMqMigrationTaskReq. + + RabbitMQ binding元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + + :return: The bindings of this CreateRocketMqMigrationTaskReq. + :rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitBindingMetadata`] + """ + return self._bindings + + @bindings.setter + def bindings(self, bindings): + """Sets the bindings of this CreateRocketMqMigrationTaskReq. + + RabbitMQ binding元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。 + + :param bindings: The bindings of this CreateRocketMqMigrationTaskReq. + :type bindings: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitBindingMetadata`] + """ + self._bindings = bindings + + 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, CreateRocketMqMigrationTaskReq): + 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-rocketmq/huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py index 30cd53f398..324a36fccf 100644 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py @@ -21,7 +21,7 @@ class CreateRocketMqMigrationTaskRequest: 'overwrite': 'str', 'name': 'str', 'type': 'str', - 'body': 'dict(str, object)' + 'body': 'CreateRocketMqMigrationTaskReq' } attribute_map = { @@ -45,8 +45,8 @@ def __init__(self, instance_id=None, overwrite=None, name=None, type=None, body= :type name: str :param type: 迁移任务类型,分为自建RocketMQ上云(rocketmq)、自建RabbitMQ上云(rabbitToRocket) :type type: str - :param body: 元数据json文件。 - :type body: dict(str, object) + :param body: Body of the CreateRocketMqMigrationTaskRequest + :type body: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskReq` """ @@ -157,10 +157,8 @@ def type(self, type): def body(self): """Gets the body of this CreateRocketMqMigrationTaskRequest. - 元数据json文件。 - :return: The body of this CreateRocketMqMigrationTaskRequest. - :rtype: dict(str, object) + :rtype: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskReq` """ return self._body @@ -168,10 +166,8 @@ def body(self): def body(self, body): """Sets the body of this CreateRocketMqMigrationTaskRequest. - 元数据json文件。 - :param body: The body of this CreateRocketMqMigrationTaskRequest. - :type body: dict(str, object) + :type body: :class:`huaweicloudsdkrocketmq.v2.CreateRocketMqMigrationTaskReq` """ self._body = body diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_binding_metadata.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_binding_metadata.py new file mode 100644 index 0000000000..439e6f3a4d --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_binding_metadata.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MigrationRabbitBindingMetadata: + + """ + 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 = { + 'vhost': 'str', + 'source': 'str', + 'destination': 'str', + 'destination_type': 'str', + 'routing_key': 'str' + } + + attribute_map = { + 'vhost': 'vhost', + 'source': 'source', + 'destination': 'destination', + 'destination_type': 'destination_type', + 'routing_key': 'routing_key' + } + + def __init__(self, vhost=None, source=None, destination=None, destination_type=None, routing_key=None): + """MigrationRabbitBindingMetadata + + The model defined in huaweicloud sdk + + :param vhost: vhost名称。 + :type vhost: str + :param source: 消息的来源。 + :type source: str + :param destination: 消息的目标。 + :type destination: str + :param destination_type: 目标的类型。 + :type destination_type: str + :param routing_key: 路由键。 + :type routing_key: str + """ + + + + self._vhost = None + self._source = None + self._destination = None + self._destination_type = None + self._routing_key = None + self.discriminator = None + + if vhost is not None: + self.vhost = vhost + if source is not None: + self.source = source + if destination is not None: + self.destination = destination + if destination_type is not None: + self.destination_type = destination_type + if routing_key is not None: + self.routing_key = routing_key + + @property + def vhost(self): + """Gets the vhost of this MigrationRabbitBindingMetadata. + + vhost名称。 + + :return: The vhost of this MigrationRabbitBindingMetadata. + :rtype: str + """ + return self._vhost + + @vhost.setter + def vhost(self, vhost): + """Sets the vhost of this MigrationRabbitBindingMetadata. + + vhost名称。 + + :param vhost: The vhost of this MigrationRabbitBindingMetadata. + :type vhost: str + """ + self._vhost = vhost + + @property + def source(self): + """Gets the source of this MigrationRabbitBindingMetadata. + + 消息的来源。 + + :return: The source of this MigrationRabbitBindingMetadata. + :rtype: str + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this MigrationRabbitBindingMetadata. + + 消息的来源。 + + :param source: The source of this MigrationRabbitBindingMetadata. + :type source: str + """ + self._source = source + + @property + def destination(self): + """Gets the destination of this MigrationRabbitBindingMetadata. + + 消息的目标。 + + :return: The destination of this MigrationRabbitBindingMetadata. + :rtype: str + """ + return self._destination + + @destination.setter + def destination(self, destination): + """Sets the destination of this MigrationRabbitBindingMetadata. + + 消息的目标。 + + :param destination: The destination of this MigrationRabbitBindingMetadata. + :type destination: str + """ + self._destination = destination + + @property + def destination_type(self): + """Gets the destination_type of this MigrationRabbitBindingMetadata. + + 目标的类型。 + + :return: The destination_type of this MigrationRabbitBindingMetadata. + :rtype: str + """ + return self._destination_type + + @destination_type.setter + def destination_type(self, destination_type): + """Sets the destination_type of this MigrationRabbitBindingMetadata. + + 目标的类型。 + + :param destination_type: The destination_type of this MigrationRabbitBindingMetadata. + :type destination_type: str + """ + self._destination_type = destination_type + + @property + def routing_key(self): + """Gets the routing_key of this MigrationRabbitBindingMetadata. + + 路由键。 + + :return: The routing_key of this MigrationRabbitBindingMetadata. + :rtype: str + """ + return self._routing_key + + @routing_key.setter + def routing_key(self, routing_key): + """Sets the routing_key of this MigrationRabbitBindingMetadata. + + 路由键。 + + :param routing_key: The routing_key of this MigrationRabbitBindingMetadata. + :type routing_key: str + """ + self._routing_key = routing_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, MigrationRabbitBindingMetadata): + 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-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_exchange_metadata.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_exchange_metadata.py new file mode 100644 index 0000000000..84cdd01f11 --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_exchange_metadata.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MigrationRabbitExchangeMetadata: + + """ + 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 = { + 'vhost': 'str', + 'name': 'str', + 'type': 'str', + 'durable': 'bool' + } + + attribute_map = { + 'vhost': 'vhost', + 'name': 'name', + 'type': 'type', + 'durable': 'durable' + } + + def __init__(self, vhost=None, name=None, type=None, durable=None): + """MigrationRabbitExchangeMetadata + + The model defined in huaweicloud sdk + + :param vhost: vhost名称。 + :type vhost: str + :param name: 交换机名称。 + :type name: str + :param type: 交换机类型。 + :type type: str + :param durable: 是否持久化。 + :type durable: bool + """ + + + + self._vhost = None + self._name = None + self._type = None + self._durable = None + self.discriminator = None + + if vhost is not None: + self.vhost = vhost + if name is not None: + self.name = name + if type is not None: + self.type = type + if durable is not None: + self.durable = durable + + @property + def vhost(self): + """Gets the vhost of this MigrationRabbitExchangeMetadata. + + vhost名称。 + + :return: The vhost of this MigrationRabbitExchangeMetadata. + :rtype: str + """ + return self._vhost + + @vhost.setter + def vhost(self, vhost): + """Sets the vhost of this MigrationRabbitExchangeMetadata. + + vhost名称。 + + :param vhost: The vhost of this MigrationRabbitExchangeMetadata. + :type vhost: str + """ + self._vhost = vhost + + @property + def name(self): + """Gets the name of this MigrationRabbitExchangeMetadata. + + 交换机名称。 + + :return: The name of this MigrationRabbitExchangeMetadata. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this MigrationRabbitExchangeMetadata. + + 交换机名称。 + + :param name: The name of this MigrationRabbitExchangeMetadata. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this MigrationRabbitExchangeMetadata. + + 交换机类型。 + + :return: The type of this MigrationRabbitExchangeMetadata. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this MigrationRabbitExchangeMetadata. + + 交换机类型。 + + :param type: The type of this MigrationRabbitExchangeMetadata. + :type type: str + """ + self._type = type + + @property + def durable(self): + """Gets the durable of this MigrationRabbitExchangeMetadata. + + 是否持久化。 + + :return: The durable of this MigrationRabbitExchangeMetadata. + :rtype: bool + """ + return self._durable + + @durable.setter + def durable(self, durable): + """Sets the durable of this MigrationRabbitExchangeMetadata. + + 是否持久化。 + + :param durable: The durable of this MigrationRabbitExchangeMetadata. + :type durable: bool + """ + self._durable = durable + + 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, MigrationRabbitExchangeMetadata): + 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-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_queue_metadata.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_queue_metadata.py new file mode 100644 index 0000000000..d013287851 --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_queue_metadata.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MigrationRabbitQueueMetadata: + + """ + 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 = { + 'vhost': 'str', + 'name': 'str', + 'durable': 'bool' + } + + attribute_map = { + 'vhost': 'vhost', + 'name': 'name', + 'durable': 'durable' + } + + def __init__(self, vhost=None, name=None, durable=None): + """MigrationRabbitQueueMetadata + + The model defined in huaweicloud sdk + + :param vhost: vhost名称。 + :type vhost: str + :param name: 队列名称。 + :type name: str + :param durable: 是否持久化。 + :type durable: bool + """ + + + + self._vhost = None + self._name = None + self._durable = None + self.discriminator = None + + if vhost is not None: + self.vhost = vhost + if name is not None: + self.name = name + if durable is not None: + self.durable = durable + + @property + def vhost(self): + """Gets the vhost of this MigrationRabbitQueueMetadata. + + vhost名称。 + + :return: The vhost of this MigrationRabbitQueueMetadata. + :rtype: str + """ + return self._vhost + + @vhost.setter + def vhost(self, vhost): + """Sets the vhost of this MigrationRabbitQueueMetadata. + + vhost名称。 + + :param vhost: The vhost of this MigrationRabbitQueueMetadata. + :type vhost: str + """ + self._vhost = vhost + + @property + def name(self): + """Gets the name of this MigrationRabbitQueueMetadata. + + 队列名称。 + + :return: The name of this MigrationRabbitQueueMetadata. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this MigrationRabbitQueueMetadata. + + 队列名称。 + + :param name: The name of this MigrationRabbitQueueMetadata. + :type name: str + """ + self._name = name + + @property + def durable(self): + """Gets the durable of this MigrationRabbitQueueMetadata. + + 是否持久化。 + + :return: The durable of this MigrationRabbitQueueMetadata. + :rtype: bool + """ + return self._durable + + @durable.setter + def durable(self, durable): + """Sets the durable of this MigrationRabbitQueueMetadata. + + 是否持久化。 + + :param durable: The durable of this MigrationRabbitQueueMetadata. + :type durable: bool + """ + self._durable = durable + + 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, MigrationRabbitQueueMetadata): + 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-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition_logics.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_vhost_metadata.py similarity index 83% rename from huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition_logics.py rename to huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_vhost_metadata.py index 284415340c..8f9688ed9b 100644 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition_logics.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rabbit_vhost_metadata.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class DataobjectSearchConditionLogics: +class MigrationRabbitVhostMetadata: """ Attributes: @@ -25,11 +25,11 @@ class DataobjectSearchConditionLogics: } def __init__(self, name=None): - """DataobjectSearchConditionLogics + """MigrationRabbitVhostMetadata The model defined in huaweicloud sdk - :param name: 表达式名称 + :param name: vhost名称。 :type name: str """ @@ -43,22 +43,22 @@ def __init__(self, name=None): @property def name(self): - """Gets the name of this DataobjectSearchConditionLogics. + """Gets the name of this MigrationRabbitVhostMetadata. - 表达式名称 + vhost名称。 - :return: The name of this DataobjectSearchConditionLogics. + :return: The name of this MigrationRabbitVhostMetadata. :rtype: str """ return self._name @name.setter def name(self, name): - """Sets the name of this DataobjectSearchConditionLogics. + """Sets the name of this MigrationRabbitVhostMetadata. - 表达式名称 + vhost名称。 - :param name: The name of this DataobjectSearchConditionLogics. + :param name: The name of this MigrationRabbitVhostMetadata. :type name: str """ self._name = name @@ -105,7 +105,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DataobjectSearchConditionLogics): + if not isinstance(other, MigrationRabbitVhostMetadata): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_subscription_group.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_subscription_group.py new file mode 100644 index 0000000000..d65d7bee81 --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_subscription_group.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MigrationRocketMqSubscriptionGroup: + + """ + 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 = { + 'group_name': 'str', + 'consume_broadcast_enable': 'bool', + 'consume_enable': 'bool', + 'consume_from_min_enable': 'bool', + 'notify_consumer_ids_changed_enable': 'bool', + 'retry_max_times': 'int', + 'retry_queue_nums': 'int', + 'which_broker_when_consume_slow': 'int' + } + + attribute_map = { + 'group_name': 'groupName', + 'consume_broadcast_enable': 'consumeBroadcastEnable', + 'consume_enable': 'consumeEnable', + 'consume_from_min_enable': 'consumeFromMinEnable', + 'notify_consumer_ids_changed_enable': 'notifyConsumerIdsChangedEnable', + 'retry_max_times': 'retryMaxTimes', + 'retry_queue_nums': 'retryQueueNums', + 'which_broker_when_consume_slow': 'whichBrokerWhenConsumeSlow' + } + + def __init__(self, group_name=None, consume_broadcast_enable=None, consume_enable=None, consume_from_min_enable=None, notify_consumer_ids_changed_enable=None, retry_max_times=None, retry_queue_nums=None, which_broker_when_consume_slow=None): + """MigrationRocketMqSubscriptionGroup + + The model defined in huaweicloud sdk + + :param group_name: 消费组名。 + :type group_name: str + :param consume_broadcast_enable: 是否允许以广播模式消费。 + :type consume_broadcast_enable: bool + :param consume_enable: 是否允许消费。 + :type consume_enable: bool + :param consume_from_min_enable: 是否从最小偏移量开始消费。 + :type consume_from_min_enable: bool + :param notify_consumer_ids_changed_enable: 消费者ID变化时是否通知。 + :type notify_consumer_ids_changed_enable: bool + :param retry_max_times: 消费最大重试次数。 + :type retry_max_times: int + :param retry_queue_nums: 重试队列个数。 + :type retry_queue_nums: int + :param which_broker_when_consume_slow: 慢消费时选择的broker节点ID。 + :type which_broker_when_consume_slow: int + """ + + + + self._group_name = None + self._consume_broadcast_enable = None + self._consume_enable = None + self._consume_from_min_enable = None + self._notify_consumer_ids_changed_enable = None + self._retry_max_times = None + self._retry_queue_nums = None + self._which_broker_when_consume_slow = None + self.discriminator = None + + if group_name is not None: + self.group_name = group_name + if consume_broadcast_enable is not None: + self.consume_broadcast_enable = consume_broadcast_enable + if consume_enable is not None: + self.consume_enable = consume_enable + if consume_from_min_enable is not None: + self.consume_from_min_enable = consume_from_min_enable + if notify_consumer_ids_changed_enable is not None: + self.notify_consumer_ids_changed_enable = notify_consumer_ids_changed_enable + if retry_max_times is not None: + self.retry_max_times = retry_max_times + if retry_queue_nums is not None: + self.retry_queue_nums = retry_queue_nums + if which_broker_when_consume_slow is not None: + self.which_broker_when_consume_slow = which_broker_when_consume_slow + + @property + def group_name(self): + """Gets the group_name of this MigrationRocketMqSubscriptionGroup. + + 消费组名。 + + :return: The group_name of this MigrationRocketMqSubscriptionGroup. + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this MigrationRocketMqSubscriptionGroup. + + 消费组名。 + + :param group_name: The group_name of this MigrationRocketMqSubscriptionGroup. + :type group_name: str + """ + self._group_name = group_name + + @property + def consume_broadcast_enable(self): + """Gets the consume_broadcast_enable of this MigrationRocketMqSubscriptionGroup. + + 是否允许以广播模式消费。 + + :return: The consume_broadcast_enable of this MigrationRocketMqSubscriptionGroup. + :rtype: bool + """ + return self._consume_broadcast_enable + + @consume_broadcast_enable.setter + def consume_broadcast_enable(self, consume_broadcast_enable): + """Sets the consume_broadcast_enable of this MigrationRocketMqSubscriptionGroup. + + 是否允许以广播模式消费。 + + :param consume_broadcast_enable: The consume_broadcast_enable of this MigrationRocketMqSubscriptionGroup. + :type consume_broadcast_enable: bool + """ + self._consume_broadcast_enable = consume_broadcast_enable + + @property + def consume_enable(self): + """Gets the consume_enable of this MigrationRocketMqSubscriptionGroup. + + 是否允许消费。 + + :return: The consume_enable of this MigrationRocketMqSubscriptionGroup. + :rtype: bool + """ + return self._consume_enable + + @consume_enable.setter + def consume_enable(self, consume_enable): + """Sets the consume_enable of this MigrationRocketMqSubscriptionGroup. + + 是否允许消费。 + + :param consume_enable: The consume_enable of this MigrationRocketMqSubscriptionGroup. + :type consume_enable: bool + """ + self._consume_enable = consume_enable + + @property + def consume_from_min_enable(self): + """Gets the consume_from_min_enable of this MigrationRocketMqSubscriptionGroup. + + 是否从最小偏移量开始消费。 + + :return: The consume_from_min_enable of this MigrationRocketMqSubscriptionGroup. + :rtype: bool + """ + return self._consume_from_min_enable + + @consume_from_min_enable.setter + def consume_from_min_enable(self, consume_from_min_enable): + """Sets the consume_from_min_enable of this MigrationRocketMqSubscriptionGroup. + + 是否从最小偏移量开始消费。 + + :param consume_from_min_enable: The consume_from_min_enable of this MigrationRocketMqSubscriptionGroup. + :type consume_from_min_enable: bool + """ + self._consume_from_min_enable = consume_from_min_enable + + @property + def notify_consumer_ids_changed_enable(self): + """Gets the notify_consumer_ids_changed_enable of this MigrationRocketMqSubscriptionGroup. + + 消费者ID变化时是否通知。 + + :return: The notify_consumer_ids_changed_enable of this MigrationRocketMqSubscriptionGroup. + :rtype: bool + """ + return self._notify_consumer_ids_changed_enable + + @notify_consumer_ids_changed_enable.setter + def notify_consumer_ids_changed_enable(self, notify_consumer_ids_changed_enable): + """Sets the notify_consumer_ids_changed_enable of this MigrationRocketMqSubscriptionGroup. + + 消费者ID变化时是否通知。 + + :param notify_consumer_ids_changed_enable: The notify_consumer_ids_changed_enable of this MigrationRocketMqSubscriptionGroup. + :type notify_consumer_ids_changed_enable: bool + """ + self._notify_consumer_ids_changed_enable = notify_consumer_ids_changed_enable + + @property + def retry_max_times(self): + """Gets the retry_max_times of this MigrationRocketMqSubscriptionGroup. + + 消费最大重试次数。 + + :return: The retry_max_times of this MigrationRocketMqSubscriptionGroup. + :rtype: int + """ + return self._retry_max_times + + @retry_max_times.setter + def retry_max_times(self, retry_max_times): + """Sets the retry_max_times of this MigrationRocketMqSubscriptionGroup. + + 消费最大重试次数。 + + :param retry_max_times: The retry_max_times of this MigrationRocketMqSubscriptionGroup. + :type retry_max_times: int + """ + self._retry_max_times = retry_max_times + + @property + def retry_queue_nums(self): + """Gets the retry_queue_nums of this MigrationRocketMqSubscriptionGroup. + + 重试队列个数。 + + :return: The retry_queue_nums of this MigrationRocketMqSubscriptionGroup. + :rtype: int + """ + return self._retry_queue_nums + + @retry_queue_nums.setter + def retry_queue_nums(self, retry_queue_nums): + """Sets the retry_queue_nums of this MigrationRocketMqSubscriptionGroup. + + 重试队列个数。 + + :param retry_queue_nums: The retry_queue_nums of this MigrationRocketMqSubscriptionGroup. + :type retry_queue_nums: int + """ + self._retry_queue_nums = retry_queue_nums + + @property + def which_broker_when_consume_slow(self): + """Gets the which_broker_when_consume_slow of this MigrationRocketMqSubscriptionGroup. + + 慢消费时选择的broker节点ID。 + + :return: The which_broker_when_consume_slow of this MigrationRocketMqSubscriptionGroup. + :rtype: int + """ + return self._which_broker_when_consume_slow + + @which_broker_when_consume_slow.setter + def which_broker_when_consume_slow(self, which_broker_when_consume_slow): + """Sets the which_broker_when_consume_slow of this MigrationRocketMqSubscriptionGroup. + + 慢消费时选择的broker节点ID。 + + :param which_broker_when_consume_slow: The which_broker_when_consume_slow of this MigrationRocketMqSubscriptionGroup. + :type which_broker_when_consume_slow: int + """ + self._which_broker_when_consume_slow = which_broker_when_consume_slow + + 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, MigrationRocketMqSubscriptionGroup): + 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-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_topic_config.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_topic_config.py new file mode 100644 index 0000000000..b5f04b4cac --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_topic_config.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MigrationRocketMqTopicConfig: + + """ + 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 = { + 'topic_name': 'str', + 'order': 'bool', + 'perm': 'int', + 'read_queue_nums': 'int', + 'write_queue_nums': 'int', + 'topic_filter_type': 'str', + 'topic_sys_flag': 'int' + } + + attribute_map = { + 'topic_name': 'topicName', + 'order': 'order', + 'perm': 'perm', + 'read_queue_nums': 'readQueueNums', + 'write_queue_nums': 'writeQueueNums', + 'topic_filter_type': 'topicFilterType', + 'topic_sys_flag': 'topicSysFlag' + } + + def __init__(self, topic_name=None, order=None, perm=None, read_queue_nums=None, write_queue_nums=None, topic_filter_type=None, topic_sys_flag=None): + """MigrationRocketMqTopicConfig + + The model defined in huaweicloud sdk + + :param topic_name: topic名称。 + :type topic_name: str + :param order: 是否有序消息。 + :type order: bool + :param perm: topic权限。 + :type perm: int + :param read_queue_nums: 读队列个数。 + :type read_queue_nums: int + :param write_queue_nums: 写队列个数。 + :type write_queue_nums: int + :param topic_filter_type: topic过滤类型。 - SINGLE_TAG:单标签 - MULTI_TAG:多标签 + :type topic_filter_type: str + :param topic_sys_flag: topic系统标志位。 + :type topic_sys_flag: int + """ + + + + self._topic_name = None + self._order = None + self._perm = None + self._read_queue_nums = None + self._write_queue_nums = None + self._topic_filter_type = None + self._topic_sys_flag = None + self.discriminator = None + + if topic_name is not None: + self.topic_name = topic_name + if order is not None: + self.order = order + if perm is not None: + self.perm = perm + if read_queue_nums is not None: + self.read_queue_nums = read_queue_nums + if write_queue_nums is not None: + self.write_queue_nums = write_queue_nums + if topic_filter_type is not None: + self.topic_filter_type = topic_filter_type + if topic_sys_flag is not None: + self.topic_sys_flag = topic_sys_flag + + @property + def topic_name(self): + """Gets the topic_name of this MigrationRocketMqTopicConfig. + + topic名称。 + + :return: The topic_name of this MigrationRocketMqTopicConfig. + :rtype: str + """ + return self._topic_name + + @topic_name.setter + def topic_name(self, topic_name): + """Sets the topic_name of this MigrationRocketMqTopicConfig. + + topic名称。 + + :param topic_name: The topic_name of this MigrationRocketMqTopicConfig. + :type topic_name: str + """ + self._topic_name = topic_name + + @property + def order(self): + """Gets the order of this MigrationRocketMqTopicConfig. + + 是否有序消息。 + + :return: The order of this MigrationRocketMqTopicConfig. + :rtype: bool + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this MigrationRocketMqTopicConfig. + + 是否有序消息。 + + :param order: The order of this MigrationRocketMqTopicConfig. + :type order: bool + """ + self._order = order + + @property + def perm(self): + """Gets the perm of this MigrationRocketMqTopicConfig. + + topic权限。 + + :return: The perm of this MigrationRocketMqTopicConfig. + :rtype: int + """ + return self._perm + + @perm.setter + def perm(self, perm): + """Sets the perm of this MigrationRocketMqTopicConfig. + + topic权限。 + + :param perm: The perm of this MigrationRocketMqTopicConfig. + :type perm: int + """ + self._perm = perm + + @property + def read_queue_nums(self): + """Gets the read_queue_nums of this MigrationRocketMqTopicConfig. + + 读队列个数。 + + :return: The read_queue_nums of this MigrationRocketMqTopicConfig. + :rtype: int + """ + return self._read_queue_nums + + @read_queue_nums.setter + def read_queue_nums(self, read_queue_nums): + """Sets the read_queue_nums of this MigrationRocketMqTopicConfig. + + 读队列个数。 + + :param read_queue_nums: The read_queue_nums of this MigrationRocketMqTopicConfig. + :type read_queue_nums: int + """ + self._read_queue_nums = read_queue_nums + + @property + def write_queue_nums(self): + """Gets the write_queue_nums of this MigrationRocketMqTopicConfig. + + 写队列个数。 + + :return: The write_queue_nums of this MigrationRocketMqTopicConfig. + :rtype: int + """ + return self._write_queue_nums + + @write_queue_nums.setter + def write_queue_nums(self, write_queue_nums): + """Sets the write_queue_nums of this MigrationRocketMqTopicConfig. + + 写队列个数。 + + :param write_queue_nums: The write_queue_nums of this MigrationRocketMqTopicConfig. + :type write_queue_nums: int + """ + self._write_queue_nums = write_queue_nums + + @property + def topic_filter_type(self): + """Gets the topic_filter_type of this MigrationRocketMqTopicConfig. + + topic过滤类型。 - SINGLE_TAG:单标签 - MULTI_TAG:多标签 + + :return: The topic_filter_type of this MigrationRocketMqTopicConfig. + :rtype: str + """ + return self._topic_filter_type + + @topic_filter_type.setter + def topic_filter_type(self, topic_filter_type): + """Sets the topic_filter_type of this MigrationRocketMqTopicConfig. + + topic过滤类型。 - SINGLE_TAG:单标签 - MULTI_TAG:多标签 + + :param topic_filter_type: The topic_filter_type of this MigrationRocketMqTopicConfig. + :type topic_filter_type: str + """ + self._topic_filter_type = topic_filter_type + + @property + def topic_sys_flag(self): + """Gets the topic_sys_flag of this MigrationRocketMqTopicConfig. + + topic系统标志位。 + + :return: The topic_sys_flag of this MigrationRocketMqTopicConfig. + :rtype: int + """ + return self._topic_sys_flag + + @topic_sys_flag.setter + def topic_sys_flag(self, topic_sys_flag): + """Sets the topic_sys_flag of this MigrationRocketMqTopicConfig. + + topic系统标志位。 + + :param topic_sys_flag: The topic_sys_flag of this MigrationRocketMqTopicConfig. + :type topic_sys_flag: int + """ + self._topic_sys_flag = topic_sys_flag + + 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, MigrationRocketMqTopicConfig): + 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-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py index 0fe55ef6fb..bf21f7ad29 100644 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py @@ -49,6 +49,8 @@ class RocketMQRegion: "https://dms.tr-west-1.myhuaweicloud.com") AE_AD_1 = Region("ae-ad-1", "https://dms.ae-ad-1.myhuaweicloud.com") + EU_WEST_0 = Region("eu-west-0", + "https://dms.eu-west-0.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -71,6 +73,7 @@ class RocketMQRegion: "ap-southeast-4": AP_SOUTHEAST_4, "tr-west-1": TR_WEST_1, "ae-ad-1": AE_AD_1, + "eu-west-0": EU_WEST_0, } @classmethod diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index e338732231..c857426e1a 100644 --- a/huaweicloud-sdk-rocketmq/setup.py +++ b/huaweicloud-sdk-rocketmq/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrocketmq" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index 888c07a337..8dff6aae9a 100644 --- a/huaweicloud-sdk-roma/setup.py +++ b/huaweicloud-sdk-roma/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkroma" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index 72b43c4772..f0dfeb099f 100644 --- a/huaweicloud-sdk-sa/setup.py +++ b/huaweicloud-sdk-sa/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksa" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index 9f15af371e..18fd5ac83a 100644 --- a/huaweicloud-sdk-scm/setup.py +++ b/huaweicloud-sdk-scm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkscm" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index d352dbb3a1..a373d82490 100644 --- a/huaweicloud-sdk-sdrs/setup.py +++ b/huaweicloud-sdk-sdrs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksdrs" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/__init__.py b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/__init__.py index 3095bf0833..b633a58fa7 100644 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/__init__.py +++ b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/__init__.py @@ -96,8 +96,6 @@ from huaweicloudsdksecmaster.v2.model.dataobject_search import DataobjectSearch from huaweicloudsdksecmaster.v2.model.dataobject_search_condition import DataobjectSearchCondition from huaweicloudsdksecmaster.v2.model.dataobject_search_condition_conditions import DataobjectSearchConditionConditions -from huaweicloudsdksecmaster.v2.model.dataobject_search_condition_data import DataobjectSearchConditionData -from huaweicloudsdksecmaster.v2.model.dataobject_search_condition_logics import DataobjectSearchConditionLogics from huaweicloudsdksecmaster.v2.model.delete_alert_request import DeleteAlertRequest from huaweicloudsdksecmaster.v2.model.delete_alert_request_body import DeleteAlertRequestBody from huaweicloudsdksecmaster.v2.model.delete_alert_response import DeleteAlertResponse diff --git a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/__init__.py b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/__init__.py index 8d351b2ea2..4515f25f32 100644 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/__init__.py +++ b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/__init__.py @@ -94,8 +94,6 @@ from huaweicloudsdksecmaster.v2.model.dataobject_search import DataobjectSearch from huaweicloudsdksecmaster.v2.model.dataobject_search_condition import DataobjectSearchCondition from huaweicloudsdksecmaster.v2.model.dataobject_search_condition_conditions import DataobjectSearchConditionConditions -from huaweicloudsdksecmaster.v2.model.dataobject_search_condition_data import DataobjectSearchConditionData -from huaweicloudsdksecmaster.v2.model.dataobject_search_condition_logics import DataobjectSearchConditionLogics from huaweicloudsdksecmaster.v2.model.delete_alert_request import DeleteAlertRequest from huaweicloudsdksecmaster.v2.model.delete_alert_request_body import DeleteAlertRequestBody from huaweicloudsdksecmaster.v2.model.delete_alert_response import DeleteAlertResponse diff --git a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition.py b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition.py index 4091375b33..6451646b71 100644 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition.py +++ b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition.py @@ -18,7 +18,7 @@ class DataobjectSearchCondition: openapi_types = { 'conditions': 'list[DataobjectSearchConditionConditions]', - 'logics': 'list[DataobjectSearchConditionLogics]' + 'logics': 'list[str]' } attribute_map = { @@ -33,8 +33,8 @@ def __init__(self, conditions=None, logics=None): :param conditions: 表达式列表 :type conditions: list[:class:`huaweicloudsdksecmaster.v2.DataobjectSearchConditionConditions`] - :param logics: 表达式逻辑 - :type logics: list[:class:`huaweicloudsdksecmaster.v2.DataobjectSearchConditionLogics`] + :param logics: 表达式名称列表 + :type logics: list[str] """ @@ -74,10 +74,10 @@ def conditions(self, conditions): def logics(self): """Gets the logics of this DataobjectSearchCondition. - 表达式逻辑 + 表达式名称列表 :return: The logics of this DataobjectSearchCondition. - :rtype: list[:class:`huaweicloudsdksecmaster.v2.DataobjectSearchConditionLogics`] + :rtype: list[str] """ return self._logics @@ -85,10 +85,10 @@ def logics(self): def logics(self, logics): """Sets the logics of this DataobjectSearchCondition. - 表达式逻辑 + 表达式名称列表 :param logics: The logics of this DataobjectSearchCondition. - :type logics: list[:class:`huaweicloudsdksecmaster.v2.DataobjectSearchConditionLogics`] + :type logics: list[str] """ self._logics = logics diff --git a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition_conditions.py b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition_conditions.py index 32213711b5..95ce2013b9 100644 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition_conditions.py +++ b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/dataobject_search_condition_conditions.py @@ -18,7 +18,7 @@ class DataobjectSearchConditionConditions: openapi_types = { 'name': 'str', - 'data': 'list[DataobjectSearchConditionData]' + 'data': 'list[str]' } attribute_map = { @@ -33,8 +33,8 @@ def __init__(self, name=None, data=None): :param name: 表达式名称 :type name: str - :param data: 表达式内容 - :type data: list[:class:`huaweicloudsdksecmaster.v2.DataobjectSearchConditionData`] + :param data: 表达式内容列表 + :type data: list[str] """ @@ -74,10 +74,10 @@ def name(self, name): def data(self): """Gets the data of this DataobjectSearchConditionConditions. - 表达式内容 + 表达式内容列表 :return: The data of this DataobjectSearchConditionConditions. - :rtype: list[:class:`huaweicloudsdksecmaster.v2.DataobjectSearchConditionData`] + :rtype: list[str] """ return self._data @@ -85,10 +85,10 @@ def data(self): def data(self, data): """Sets the data of this DataobjectSearchConditionConditions. - 表达式内容 + 表达式内容列表 :param data: The data of this DataobjectSearchConditionConditions. - :type data: list[:class:`huaweicloudsdksecmaster.v2.DataobjectSearchConditionData`] + :type data: list[str] """ self._data = data diff --git a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/indicator_list_search_request.py b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/indicator_list_search_request.py index 9b8b9c7b97..df7ef38e62 100644 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/indicator_list_search_request.py +++ b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/indicator_list_search_request.py @@ -20,7 +20,7 @@ class IndicatorListSearchRequest: 'ids': 'list[str]', 'name': 'str', 'dataclass_id': 'str', - 'condition': 'str', + 'condition': 'DataobjectSearchCondition', 'offset': 'int', 'limit': 'int', 'sort_by': 'str', @@ -51,8 +51,8 @@ def __init__(self, ids=None, name=None, dataclass_id=None, condition=None, offse :type name: str :param dataclass_id: 数据类ID :type dataclass_id: str - :param condition: 查询条件 - :type condition: str + :param condition: + :type condition: :class:`huaweicloudsdksecmaster.v2.DataobjectSearchCondition` :param offset: request offset, from 0 :type offset: int :param limit: request limit size @@ -164,10 +164,8 @@ def dataclass_id(self, dataclass_id): def condition(self): """Gets the condition of this IndicatorListSearchRequest. - 查询条件 - :return: The condition of this IndicatorListSearchRequest. - :rtype: str + :rtype: :class:`huaweicloudsdksecmaster.v2.DataobjectSearchCondition` """ return self._condition @@ -175,10 +173,8 @@ def condition(self): def condition(self, condition): """Sets the condition of this IndicatorListSearchRequest. - 查询条件 - :param condition: The condition of this IndicatorListSearchRequest. - :type condition: str + :type condition: :class:`huaweicloudsdksecmaster.v2.DataobjectSearchCondition` """ self._condition = condition diff --git a/huaweicloud-sdk-secmaster/requirements.txt b/huaweicloud-sdk-secmaster/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-secmaster/requirements.txt +++ b/huaweicloud-sdk-secmaster/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-secmaster/setup.py b/huaweicloud-sdk-secmaster/setup.py index e789aa5d25..6b63f55e9d 100644 --- a/huaweicloud-sdk-secmaster/setup.py +++ b/huaweicloud-sdk-secmaster/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksecmaster" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index 340ed84db2..9d70aafa2f 100644 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index fa0b5fbc29..80fef16261 100644 --- a/huaweicloud-sdk-sfsturbo/setup.py +++ b/huaweicloud-sdk-sfsturbo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksfsturbo" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index 7156346268..457206895b 100644 --- a/huaweicloud-sdk-sis/setup.py +++ b/huaweicloud-sdk-sis/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksis" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index b3950566f7..6ffd823335 100644 --- a/huaweicloud-sdk-smn/setup.py +++ b/huaweicloud-sdk-smn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksmn" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/__init__.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/__init__.py index de2cf182e5..6197dda747 100644 --- a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/__init__.py +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/__init__.py @@ -17,6 +17,8 @@ from huaweicloudsdksms.v3.model.command_body import CommandBody from huaweicloudsdksms.v3.model.config_body import ConfigBody from huaweicloudsdksms.v3.model.configuration_request_body import ConfigurationRequestBody +from huaweicloudsdksms.v3.model.consistency_result import ConsistencyResult +from huaweicloudsdksms.v3.model.consistency_result_request_body import ConsistencyResultRequestBody from huaweicloudsdksms.v3.model.create_migproject_request import CreateMigprojectRequest from huaweicloudsdksms.v3.model.create_migproject_response import CreateMigprojectResponse from huaweicloudsdksms.v3.model.create_privacy_agreements_request import CreatePrivacyAgreementsRequest @@ -96,6 +98,8 @@ from huaweicloudsdksms.v3.model.show_config_response import ShowConfigResponse from huaweicloudsdksms.v3.model.show_config_setting_request import ShowConfigSettingRequest from huaweicloudsdksms.v3.model.show_config_setting_response import ShowConfigSettingResponse +from huaweicloudsdksms.v3.model.show_consistency_result_request import ShowConsistencyResultRequest +from huaweicloudsdksms.v3.model.show_consistency_result_response import ShowConsistencyResultResponse from huaweicloudsdksms.v3.model.show_migproject_request import ShowMigprojectRequest from huaweicloudsdksms.v3.model.show_migproject_response import ShowMigprojectResponse from huaweicloudsdksms.v3.model.show_overview_request import ShowOverviewRequest @@ -142,6 +146,8 @@ from huaweicloudsdksms.v3.model.unlock_target_ecs_response import UnlockTargetEcsResponse from huaweicloudsdksms.v3.model.update_command_result_request import UpdateCommandResultRequest from huaweicloudsdksms.v3.model.update_command_result_response import UpdateCommandResultResponse +from huaweicloudsdksms.v3.model.update_consistency_result_request import UpdateConsistencyResultRequest +from huaweicloudsdksms.v3.model.update_consistency_result_response import UpdateConsistencyResultResponse from huaweicloudsdksms.v3.model.update_copy_state_request import UpdateCopyStateRequest from huaweicloudsdksms.v3.model.update_copy_state_response import UpdateCopyStateResponse from huaweicloudsdksms.v3.model.update_default_migproject_request import UpdateDefaultMigprojectRequest diff --git a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/__init__.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/__init__.py index edbeab1dd8..6a964e3238 100644 --- a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/__init__.py +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/__init__.py @@ -15,6 +15,8 @@ from huaweicloudsdksms.v3.model.command_body import CommandBody from huaweicloudsdksms.v3.model.config_body import ConfigBody from huaweicloudsdksms.v3.model.configuration_request_body import ConfigurationRequestBody +from huaweicloudsdksms.v3.model.consistency_result import ConsistencyResult +from huaweicloudsdksms.v3.model.consistency_result_request_body import ConsistencyResultRequestBody from huaweicloudsdksms.v3.model.create_migproject_request import CreateMigprojectRequest from huaweicloudsdksms.v3.model.create_migproject_response import CreateMigprojectResponse from huaweicloudsdksms.v3.model.create_privacy_agreements_request import CreatePrivacyAgreementsRequest @@ -94,6 +96,8 @@ from huaweicloudsdksms.v3.model.show_config_response import ShowConfigResponse from huaweicloudsdksms.v3.model.show_config_setting_request import ShowConfigSettingRequest from huaweicloudsdksms.v3.model.show_config_setting_response import ShowConfigSettingResponse +from huaweicloudsdksms.v3.model.show_consistency_result_request import ShowConsistencyResultRequest +from huaweicloudsdksms.v3.model.show_consistency_result_response import ShowConsistencyResultResponse from huaweicloudsdksms.v3.model.show_migproject_request import ShowMigprojectRequest from huaweicloudsdksms.v3.model.show_migproject_response import ShowMigprojectResponse from huaweicloudsdksms.v3.model.show_overview_request import ShowOverviewRequest @@ -140,6 +144,8 @@ from huaweicloudsdksms.v3.model.unlock_target_ecs_response import UnlockTargetEcsResponse from huaweicloudsdksms.v3.model.update_command_result_request import UpdateCommandResultRequest from huaweicloudsdksms.v3.model.update_command_result_response import UpdateCommandResultResponse +from huaweicloudsdksms.v3.model.update_consistency_result_request import UpdateConsistencyResultRequest +from huaweicloudsdksms.v3.model.update_consistency_result_response import UpdateConsistencyResultResponse from huaweicloudsdksms.v3.model.update_copy_state_request import UpdateCopyStateRequest from huaweicloudsdksms.v3.model.update_copy_state_response import UpdateCopyStateResponse from huaweicloudsdksms.v3.model.update_default_migproject_request import UpdateDefaultMigprojectRequest diff --git a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/consistency_result.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/consistency_result.py new file mode 100644 index 0000000000..43f30bb1a2 --- /dev/null +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/consistency_result.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConsistencyResult: + + """ + 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 = { + 'dir_check': 'str', + 'num_total_files': 'int', + 'num_different_files': 'int', + 'num_target_miss_files': 'int', + 'num_target_more_files': 'int' + } + + attribute_map = { + 'dir_check': 'dir_check', + 'num_total_files': 'num_total_files', + 'num_different_files': 'num_different_files', + 'num_target_miss_files': 'num_target_miss_files', + 'num_target_more_files': 'num_target_more_files' + } + + def __init__(self, dir_check=None, num_total_files=None, num_different_files=None, num_target_miss_files=None, num_target_more_files=None): + """ConsistencyResult + + The model defined in huaweicloud sdk + + :param dir_check: 校验目录 + :type dir_check: str + :param num_total_files: 文件总数 + :type num_total_files: int + :param num_different_files: 差异文件数量 + :type num_different_files: int + :param num_target_miss_files: 目的端缺少文件数量 + :type num_target_miss_files: int + :param num_target_more_files: 目的端多余文件数量 + :type num_target_more_files: int + """ + + + + self._dir_check = None + self._num_total_files = None + self._num_different_files = None + self._num_target_miss_files = None + self._num_target_more_files = None + self.discriminator = None + + self.dir_check = dir_check + self.num_total_files = num_total_files + self.num_different_files = num_different_files + self.num_target_miss_files = num_target_miss_files + self.num_target_more_files = num_target_more_files + + @property + def dir_check(self): + """Gets the dir_check of this ConsistencyResult. + + 校验目录 + + :return: The dir_check of this ConsistencyResult. + :rtype: str + """ + return self._dir_check + + @dir_check.setter + def dir_check(self, dir_check): + """Sets the dir_check of this ConsistencyResult. + + 校验目录 + + :param dir_check: The dir_check of this ConsistencyResult. + :type dir_check: str + """ + self._dir_check = dir_check + + @property + def num_total_files(self): + """Gets the num_total_files of this ConsistencyResult. + + 文件总数 + + :return: The num_total_files of this ConsistencyResult. + :rtype: int + """ + return self._num_total_files + + @num_total_files.setter + def num_total_files(self, num_total_files): + """Sets the num_total_files of this ConsistencyResult. + + 文件总数 + + :param num_total_files: The num_total_files of this ConsistencyResult. + :type num_total_files: int + """ + self._num_total_files = num_total_files + + @property + def num_different_files(self): + """Gets the num_different_files of this ConsistencyResult. + + 差异文件数量 + + :return: The num_different_files of this ConsistencyResult. + :rtype: int + """ + return self._num_different_files + + @num_different_files.setter + def num_different_files(self, num_different_files): + """Sets the num_different_files of this ConsistencyResult. + + 差异文件数量 + + :param num_different_files: The num_different_files of this ConsistencyResult. + :type num_different_files: int + """ + self._num_different_files = num_different_files + + @property + def num_target_miss_files(self): + """Gets the num_target_miss_files of this ConsistencyResult. + + 目的端缺少文件数量 + + :return: The num_target_miss_files of this ConsistencyResult. + :rtype: int + """ + return self._num_target_miss_files + + @num_target_miss_files.setter + def num_target_miss_files(self, num_target_miss_files): + """Sets the num_target_miss_files of this ConsistencyResult. + + 目的端缺少文件数量 + + :param num_target_miss_files: The num_target_miss_files of this ConsistencyResult. + :type num_target_miss_files: int + """ + self._num_target_miss_files = num_target_miss_files + + @property + def num_target_more_files(self): + """Gets the num_target_more_files of this ConsistencyResult. + + 目的端多余文件数量 + + :return: The num_target_more_files of this ConsistencyResult. + :rtype: int + """ + return self._num_target_more_files + + @num_target_more_files.setter + def num_target_more_files(self, num_target_more_files): + """Sets the num_target_more_files of this ConsistencyResult. + + 目的端多余文件数量 + + :param num_target_more_files: The num_target_more_files of this ConsistencyResult. + :type num_target_more_files: int + """ + self._num_target_more_files = num_target_more_files + + 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, ConsistencyResult): + 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-sms/huaweicloudsdksms/v3/model/consistency_result_request_body.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/consistency_result_request_body.py new file mode 100644 index 0000000000..113d7f05cd --- /dev/null +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/consistency_result_request_body.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConsistencyResultRequestBody: + + """ + 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 = { + 'consistency_result': 'list[ConsistencyResult]', + 'finished_time': 'int' + } + + attribute_map = { + 'consistency_result': 'consistency_result', + 'finished_time': 'finished_time' + } + + def __init__(self, consistency_result=None, finished_time=None): + """ConsistencyResultRequestBody + + The model defined in huaweicloud sdk + + :param consistency_result: 校验结果 + :type consistency_result: list[:class:`huaweicloudsdksms.v3.ConsistencyResult`] + :param finished_time: 检验完成时间 + :type finished_time: int + """ + + + + self._consistency_result = None + self._finished_time = None + self.discriminator = None + + self.consistency_result = consistency_result + self.finished_time = finished_time + + @property + def consistency_result(self): + """Gets the consistency_result of this ConsistencyResultRequestBody. + + 校验结果 + + :return: The consistency_result of this ConsistencyResultRequestBody. + :rtype: list[:class:`huaweicloudsdksms.v3.ConsistencyResult`] + """ + return self._consistency_result + + @consistency_result.setter + def consistency_result(self, consistency_result): + """Sets the consistency_result of this ConsistencyResultRequestBody. + + 校验结果 + + :param consistency_result: The consistency_result of this ConsistencyResultRequestBody. + :type consistency_result: list[:class:`huaweicloudsdksms.v3.ConsistencyResult`] + """ + self._consistency_result = consistency_result + + @property + def finished_time(self): + """Gets the finished_time of this ConsistencyResultRequestBody. + + 检验完成时间 + + :return: The finished_time of this ConsistencyResultRequestBody. + :rtype: int + """ + return self._finished_time + + @finished_time.setter + def finished_time(self, finished_time): + """Sets the finished_time of this ConsistencyResultRequestBody. + + 检验完成时间 + + :param finished_time: The finished_time of this ConsistencyResultRequestBody. + :type finished_time: int + """ + self._finished_time = finished_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, ConsistencyResultRequestBody): + 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-sms/huaweicloudsdksms/v3/model/list_servers_request.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/list_servers_request.py index 5c012704d7..6168af4f7e 100644 --- a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/list_servers_request.py +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/list_servers_request.py @@ -26,7 +26,8 @@ class ListServersRequest: 'offset': 'int', 'migration_cycle': 'str', 'connected': 'bool', - 'enterprise_project_id': 'str' + 'enterprise_project_id': 'str', + 'is_consistency_result_exist': 'bool' } attribute_map = { @@ -39,10 +40,11 @@ class ListServersRequest: 'offset': 'offset', 'migration_cycle': 'migration_cycle', 'connected': 'connected', - 'enterprise_project_id': 'enterprise_project_id' + 'enterprise_project_id': 'enterprise_project_id', + 'is_consistency_result_exist': 'is_consistency_result_exist' } - def __init__(self, state=None, name=None, id=None, ip=None, migproject=None, limit=None, offset=None, migration_cycle=None, connected=None, enterprise_project_id=None): + def __init__(self, state=None, name=None, id=None, ip=None, migproject=None, limit=None, offset=None, migration_cycle=None, connected=None, enterprise_project_id=None, is_consistency_result_exist=None): """ListServersRequest The model defined in huaweicloud sdk @@ -67,6 +69,8 @@ def __init__(self, state=None, name=None, id=None, ip=None, migproject=None, lim :type connected: bool :param enterprise_project_id: 需要查询的企业项目ID :type enterprise_project_id: str + :param is_consistency_result_exist: 是否存在一致性校验结果 + :type is_consistency_result_exist: bool """ @@ -81,6 +85,7 @@ def __init__(self, state=None, name=None, id=None, ip=None, migproject=None, lim self._migration_cycle = None self._connected = None self._enterprise_project_id = None + self._is_consistency_result_exist = None self.discriminator = None if state is not None: @@ -103,6 +108,8 @@ def __init__(self, state=None, name=None, id=None, ip=None, migproject=None, lim self.connected = connected if enterprise_project_id is not None: self.enterprise_project_id = enterprise_project_id + if is_consistency_result_exist is not None: + self.is_consistency_result_exist = is_consistency_result_exist @property def state(self): @@ -324,6 +331,28 @@ def enterprise_project_id(self, enterprise_project_id): """ self._enterprise_project_id = enterprise_project_id + @property + def is_consistency_result_exist(self): + """Gets the is_consistency_result_exist of this ListServersRequest. + + 是否存在一致性校验结果 + + :return: The is_consistency_result_exist of this ListServersRequest. + :rtype: bool + """ + return self._is_consistency_result_exist + + @is_consistency_result_exist.setter + def is_consistency_result_exist(self, is_consistency_result_exist): + """Sets the is_consistency_result_exist of this ListServersRequest. + + 是否存在一致性校验结果 + + :param is_consistency_result_exist: The is_consistency_result_exist of this ListServersRequest. + :type is_consistency_result_exist: bool + """ + self._is_consistency_result_exist = is_consistency_result_exist + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/show_consistency_result_request.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/show_consistency_result_request.py new file mode 100644 index 0000000000..a9fc6ea2ce --- /dev/null +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/show_consistency_result_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowConsistencyResultRequest: + + """ + 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 = { + 'task_id': 'str' + } + + attribute_map = { + 'task_id': 'task_id' + } + + def __init__(self, task_id=None): + """ShowConsistencyResultRequest + + The model defined in huaweicloud sdk + + :param task_id: 任务id + :type task_id: str + """ + + + + self._task_id = None + self.discriminator = None + + self.task_id = task_id + + @property + def task_id(self): + """Gets the task_id of this ShowConsistencyResultRequest. + + 任务id + + :return: The task_id of this ShowConsistencyResultRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this ShowConsistencyResultRequest. + + 任务id + + :param task_id: The task_id of this ShowConsistencyResultRequest. + :type task_id: str + """ + self._task_id = task_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, ShowConsistencyResultRequest): + 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-sms/huaweicloudsdksms/v3/model/show_consistency_result_response.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/show_consistency_result_response.py new file mode 100644 index 0000000000..357a518488 --- /dev/null +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/show_consistency_result_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 ShowConsistencyResultResponse(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 = { + 'consistency_result': 'list[ConsistencyResult]', + 'finished_time': 'int' + } + + attribute_map = { + 'consistency_result': 'consistency_result', + 'finished_time': 'finished_time' + } + + def __init__(self, consistency_result=None, finished_time=None): + """ShowConsistencyResultResponse + + The model defined in huaweicloud sdk + + :param consistency_result: 校验结果 + :type consistency_result: list[:class:`huaweicloudsdksms.v3.ConsistencyResult`] + :param finished_time: 检验完成时间 + :type finished_time: int + """ + + super(ShowConsistencyResultResponse, self).__init__() + + self._consistency_result = None + self._finished_time = None + self.discriminator = None + + if consistency_result is not None: + self.consistency_result = consistency_result + if finished_time is not None: + self.finished_time = finished_time + + @property + def consistency_result(self): + """Gets the consistency_result of this ShowConsistencyResultResponse. + + 校验结果 + + :return: The consistency_result of this ShowConsistencyResultResponse. + :rtype: list[:class:`huaweicloudsdksms.v3.ConsistencyResult`] + """ + return self._consistency_result + + @consistency_result.setter + def consistency_result(self, consistency_result): + """Sets the consistency_result of this ShowConsistencyResultResponse. + + 校验结果 + + :param consistency_result: The consistency_result of this ShowConsistencyResultResponse. + :type consistency_result: list[:class:`huaweicloudsdksms.v3.ConsistencyResult`] + """ + self._consistency_result = consistency_result + + @property + def finished_time(self): + """Gets the finished_time of this ShowConsistencyResultResponse. + + 检验完成时间 + + :return: The finished_time of this ShowConsistencyResultResponse. + :rtype: int + """ + return self._finished_time + + @finished_time.setter + def finished_time(self, finished_time): + """Sets the finished_time of this ShowConsistencyResultResponse. + + 检验完成时间 + + :param finished_time: The finished_time of this ShowConsistencyResultResponse. + :type finished_time: int + """ + self._finished_time = finished_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, ShowConsistencyResultResponse): + 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-sms/huaweicloudsdksms/v3/model/source_servers_response_body.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/source_servers_response_body.py index 083b4d7f74..8069c5e827 100644 --- a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/source_servers_response_body.py +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/source_servers_response_body.py @@ -37,7 +37,8 @@ class SourceServersResponseBody: 'totalsize': 'int', 'last_visit_time': 'int', 'migration_cycle': 'str', - 'state_action_time': 'int' + 'state_action_time': 'int', + 'is_consistency_result_exist': 'bool' } attribute_map = { @@ -61,10 +62,11 @@ class SourceServersResponseBody: 'totalsize': 'totalsize', 'last_visit_time': 'last_visit_time', 'migration_cycle': 'migration_cycle', - 'state_action_time': 'state_action_time' + 'state_action_time': 'state_action_time', + 'is_consistency_result_exist': 'is_consistency_result_exist' } - def __init__(self, id=None, ip=None, name=None, enterprise_project_id=None, add_date=None, os_type=None, os_version=None, oem_system=None, state=None, connected=None, cpu_quantity=None, memory=None, current_task=None, checks=None, init_target_server=None, replicatesize=None, stage_action_time=None, totalsize=None, last_visit_time=None, migration_cycle=None, state_action_time=None): + def __init__(self, id=None, ip=None, name=None, enterprise_project_id=None, add_date=None, os_type=None, os_version=None, oem_system=None, state=None, connected=None, cpu_quantity=None, memory=None, current_task=None, checks=None, init_target_server=None, replicatesize=None, stage_action_time=None, totalsize=None, last_visit_time=None, migration_cycle=None, state_action_time=None, is_consistency_result_exist=None): """SourceServersResponseBody The model defined in huaweicloud sdk @@ -111,6 +113,8 @@ def __init__(self, id=None, ip=None, name=None, enterprise_project_id=None, add_ :type migration_cycle: str :param state_action_time: 源端状态(state)上次发生变化的时间 :type state_action_time: int + :param is_consistency_result_exist: 是否有一致性校验结果 + :type is_consistency_result_exist: bool """ @@ -136,6 +140,7 @@ def __init__(self, id=None, ip=None, name=None, enterprise_project_id=None, add_ self._last_visit_time = None self._migration_cycle = None self._state_action_time = None + self._is_consistency_result_exist = None self.discriminator = None if id is not None: @@ -180,6 +185,8 @@ def __init__(self, id=None, ip=None, name=None, enterprise_project_id=None, add_ self.migration_cycle = migration_cycle if state_action_time is not None: self.state_action_time = state_action_time + if is_consistency_result_exist is not None: + self.is_consistency_result_exist = is_consistency_result_exist @property def id(self): @@ -635,6 +642,28 @@ def state_action_time(self, state_action_time): """ self._state_action_time = state_action_time + @property + def is_consistency_result_exist(self): + """Gets the is_consistency_result_exist of this SourceServersResponseBody. + + 是否有一致性校验结果 + + :return: The is_consistency_result_exist of this SourceServersResponseBody. + :rtype: bool + """ + return self._is_consistency_result_exist + + @is_consistency_result_exist.setter + def is_consistency_result_exist(self, is_consistency_result_exist): + """Sets the is_consistency_result_exist of this SourceServersResponseBody. + + 是否有一致性校验结果 + + :param is_consistency_result_exist: The is_consistency_result_exist of this SourceServersResponseBody. + :type is_consistency_result_exist: bool + """ + self._is_consistency_result_exist = is_consistency_result_exist + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/update_consistency_result_request.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/update_consistency_result_request.py new file mode 100644 index 0000000000..6306e42c42 --- /dev/null +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/update_consistency_result_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateConsistencyResultRequest: + + """ + 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 = { + 'task_id': 'str', + 'body': 'ConsistencyResultRequestBody' + } + + attribute_map = { + 'task_id': 'task_id', + 'body': 'body' + } + + def __init__(self, task_id=None, body=None): + """UpdateConsistencyResultRequest + + The model defined in huaweicloud sdk + + :param task_id: 任务id + :type task_id: str + :param body: Body of the UpdateConsistencyResultRequest + :type body: :class:`huaweicloudsdksms.v3.ConsistencyResultRequestBody` + """ + + + + self._task_id = None + self._body = None + self.discriminator = None + + self.task_id = task_id + if body is not None: + self.body = body + + @property + def task_id(self): + """Gets the task_id of this UpdateConsistencyResultRequest. + + 任务id + + :return: The task_id of this UpdateConsistencyResultRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this UpdateConsistencyResultRequest. + + 任务id + + :param task_id: The task_id of this UpdateConsistencyResultRequest. + :type task_id: str + """ + self._task_id = task_id + + @property + def body(self): + """Gets the body of this UpdateConsistencyResultRequest. + + :return: The body of this UpdateConsistencyResultRequest. + :rtype: :class:`huaweicloudsdksms.v3.ConsistencyResultRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateConsistencyResultRequest. + + :param body: The body of this UpdateConsistencyResultRequest. + :type body: :class:`huaweicloudsdksms.v3.ConsistencyResultRequestBody` + """ + 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, UpdateConsistencyResultRequest): + 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-sms/huaweicloudsdksms/v3/model/update_consistency_result_response.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/update_consistency_result_response.py new file mode 100644 index 0000000000..b001414379 --- /dev/null +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/update_consistency_result_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 UpdateConsistencyResultResponse(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): + """UpdateConsistencyResultResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(UpdateConsistencyResultResponse, 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 UpdateConsistencyResultResponse. + + :return: The body of this UpdateConsistencyResultResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateConsistencyResultResponse. + + :param body: The body of this UpdateConsistencyResultResponse. + :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, UpdateConsistencyResultResponse): + 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-sms/huaweicloudsdksms/v3/model/update_task_status_req.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/update_task_status_req.py index 89297bb25b..76680f3771 100644 --- a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/update_task_status_req.py +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/update_task_status_req.py @@ -19,16 +19,18 @@ class UpdateTaskStatusReq: openapi_types = { 'operation': 'str', 'param': 'dict(str, str)', - 'switch_hce': 'bool' + 'switch_hce': 'bool', + 'is_need_consistency_check': 'bool' } attribute_map = { 'operation': 'operation', 'param': 'param', - 'switch_hce': 'switch_hce' + 'switch_hce': 'switch_hce', + 'is_need_consistency_check': 'is_need_consistency_check' } - def __init__(self, operation=None, param=None, switch_hce=None): + def __init__(self, operation=None, param=None, switch_hce=None, is_need_consistency_check=None): """UpdateTaskStatusReq The model defined in huaweicloud sdk @@ -39,6 +41,8 @@ def __init__(self, operation=None, param=None, switch_hce=None): :type param: dict(str, str) :param switch_hce: 是否切换hce :type switch_hce: bool + :param is_need_consistency_check: 是否进行一致性校验 + :type is_need_consistency_check: bool """ @@ -46,6 +50,7 @@ def __init__(self, operation=None, param=None, switch_hce=None): self._operation = None self._param = None self._switch_hce = None + self._is_need_consistency_check = None self.discriminator = None self.operation = operation @@ -53,6 +58,8 @@ def __init__(self, operation=None, param=None, switch_hce=None): self.param = param if switch_hce is not None: self.switch_hce = switch_hce + if is_need_consistency_check is not None: + self.is_need_consistency_check = is_need_consistency_check @property def operation(self): @@ -120,6 +127,28 @@ def switch_hce(self, switch_hce): """ self._switch_hce = switch_hce + @property + def is_need_consistency_check(self): + """Gets the is_need_consistency_check of this UpdateTaskStatusReq. + + 是否进行一致性校验 + + :return: The is_need_consistency_check of this UpdateTaskStatusReq. + :rtype: bool + """ + return self._is_need_consistency_check + + @is_need_consistency_check.setter + def is_need_consistency_check(self, is_need_consistency_check): + """Sets the is_need_consistency_check of this UpdateTaskStatusReq. + + 是否进行一致性校验 + + :param is_need_consistency_check: The is_need_consistency_check of this UpdateTaskStatusReq. + :type is_need_consistency_check: bool + """ + self._is_need_consistency_check = is_need_consistency_check + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/sms_async_client.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/sms_async_client.py index 329adfba25..0386d586d6 100644 --- a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/sms_async_client.py +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/sms_async_client.py @@ -1077,6 +1077,8 @@ def _list_servers_http_info(self, request): query_params.append(('connected', local_var_params['connected'])) if 'enterprise_project_id' in local_var_params: query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'is_consistency_result_exist' in local_var_params: + query_params.append(('is_consistency_result_exist', local_var_params['is_consistency_result_exist'])) header_params = {} @@ -1518,6 +1520,71 @@ def _show_config_setting_http_info(self, request): return http_info + def show_consistency_result_async(self, request): + """获取一致性校验结果 + + 获取一致性校验结果简报 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowConsistencyResult + :type request: :class:`huaweicloudsdksms.v3.ShowConsistencyResultRequest` + :rtype: :class:`huaweicloudsdksms.v3.ShowConsistencyResultResponse` + """ + http_info = self._show_consistency_result_http_info(request) + return self._call_api(**http_info) + + def show_consistency_result_async_invoker(self, request): + http_info = self._show_consistency_result_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_consistency_result_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/tasks/{task_id}/consistency-result", + "request_type": request.__class__.__name__, + "response_type": "ShowConsistencyResultResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_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_migproject_async(self, request): """查询指定ID迁移项目详情 @@ -2296,6 +2363,73 @@ def _update_command_result_http_info(self, request): return http_info + def update_consistency_result_async(self, request): + """上传一致性校验结果 + + Agent 上传一致性校验结果简报 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateConsistencyResult + :type request: :class:`huaweicloudsdksms.v3.UpdateConsistencyResultRequest` + :rtype: :class:`huaweicloudsdksms.v3.UpdateConsistencyResultResponse` + """ + http_info = self._update_consistency_result_http_info(request) + return self._call_api(**http_info) + + def update_consistency_result_async_invoker(self, request): + http_info = self._update_consistency_result_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_consistency_result_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/tasks/{task_id}/consistency-result", + "request_type": request.__class__.__name__, + "response_type": "UpdateConsistencyResultResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_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;charset=UTF-8']) + + 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_copy_state_async(self, request): """更新任务对应源端复制状态 diff --git a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/sms_client.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/sms_client.py index a45aa5ca4d..b7a961212f 100644 --- a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/sms_client.py +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/sms_client.py @@ -1077,6 +1077,8 @@ def _list_servers_http_info(cls, request): query_params.append(('connected', local_var_params['connected'])) if 'enterprise_project_id' in local_var_params: query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'is_consistency_result_exist' in local_var_params: + query_params.append(('is_consistency_result_exist', local_var_params['is_consistency_result_exist'])) header_params = {} @@ -1518,6 +1520,71 @@ def _show_config_setting_http_info(cls, request): return http_info + def show_consistency_result(self, request): + """获取一致性校验结果 + + 获取一致性校验结果简报 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowConsistencyResult + :type request: :class:`huaweicloudsdksms.v3.ShowConsistencyResultRequest` + :rtype: :class:`huaweicloudsdksms.v3.ShowConsistencyResultResponse` + """ + http_info = self._show_consistency_result_http_info(request) + return self._call_api(**http_info) + + def show_consistency_result_invoker(self, request): + http_info = self._show_consistency_result_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_consistency_result_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/tasks/{task_id}/consistency-result", + "request_type": request.__class__.__name__, + "response_type": "ShowConsistencyResultResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_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_migproject(self, request): """查询指定ID迁移项目详情 @@ -2296,6 +2363,73 @@ def _update_command_result_http_info(cls, request): return http_info + def update_consistency_result(self, request): + """上传一致性校验结果 + + Agent 上传一致性校验结果简报 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateConsistencyResult + :type request: :class:`huaweicloudsdksms.v3.UpdateConsistencyResultRequest` + :rtype: :class:`huaweicloudsdksms.v3.UpdateConsistencyResultResponse` + """ + http_info = self._update_consistency_result_http_info(request) + return self._call_api(**http_info) + + def update_consistency_result_invoker(self, request): + http_info = self._update_consistency_result_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_consistency_result_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/tasks/{task_id}/consistency-result", + "request_type": request.__class__.__name__, + "response_type": "UpdateConsistencyResultResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_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;charset=UTF-8']) + + 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_copy_state(self, request): """更新任务对应源端复制状态 diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index 6f22cf5dd8..afff8e45cd 100644 --- a/huaweicloud-sdk-sms/setup.py +++ b/huaweicloud-sdk-sms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksms" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index 5da389b0a0..1f2141b5c5 100644 --- a/huaweicloud-sdk-swr/setup.py +++ b/huaweicloud-sdk-swr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkswr" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tics/requirements.txt b/huaweicloud-sdk-tics/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-tics/requirements.txt +++ b/huaweicloud-sdk-tics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-tics/setup.py b/huaweicloud-sdk-tics/setup.py index 09789c5da4..2477632378 100644 --- a/huaweicloud-sdk-tics/setup.py +++ b/huaweicloud-sdk-tics/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdktics" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index 7fdc208746..5769aaecca 100644 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index f2522604cd..765406a180 100644 --- a/huaweicloud-sdk-ugo/setup.py +++ b/huaweicloud-sdk-ugo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkugo" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index 7f25b28ddb..e6bad5be05 100644 --- a/huaweicloud-sdk-vas/setup.py +++ b/huaweicloud-sdk-vas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvas" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index 6ef2abff8f..075806890f 100644 --- a/huaweicloud-sdk-vcm/setup.py +++ b/huaweicloud-sdk-vcm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvcm" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index bfe3a990c7..169b4c6b8a 100644 --- a/huaweicloud-sdk-vod/setup.py +++ b/huaweicloud-sdk-vod/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvod" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/region/vpc_region.py b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/region/vpc_region.py index 35c9323dc0..7f3cc491e3 100644 --- a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/region/vpc_region.py +++ b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/region/vpc_region.py @@ -53,6 +53,8 @@ class VpcRegion: "https://vpc.me-east-1.myhuaweicloud.com") AE_AD_1 = Region("ae-ad-1", "https://vpc.ae-ad-1.myhuaweicloud.com") + EU_WEST_0 = Region("eu-west-0", + "https://vpc.eu-west-0.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, @@ -77,6 +79,7 @@ class VpcRegion: "eu-west-101": EU_WEST_101, "me-east-1": ME_EAST_1, "ae-ad-1": AE_AD_1, + "eu-west-0": EU_WEST_0, } @classmethod diff --git a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py index 35c9323dc0..7f3cc491e3 100644 --- a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py +++ b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py @@ -53,6 +53,8 @@ class VpcRegion: "https://vpc.me-east-1.myhuaweicloud.com") AE_AD_1 = Region("ae-ad-1", "https://vpc.ae-ad-1.myhuaweicloud.com") + EU_WEST_0 = Region("eu-west-0", + "https://vpc.eu-west-0.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, @@ -77,6 +79,7 @@ class VpcRegion: "eu-west-101": EU_WEST_101, "me-east-1": ME_EAST_1, "ae-ad-1": AE_AD_1, + "eu-west-0": EU_WEST_0, } @classmethod diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 1abd9cf518..c083481b0e 100644 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index f7e169431c..7d9fb73610 100644 --- a/huaweicloud-sdk-vpcep/setup.py +++ b/huaweicloud-sdk-vpcep/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpcep" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpn/requirements.txt b/huaweicloud-sdk-vpn/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-vpn/requirements.txt +++ b/huaweicloud-sdk-vpn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-vpn/setup.py b/huaweicloud-sdk-vpn/setup.py index 2605aa4436..b111f76489 100644 --- a/huaweicloud-sdk-vpn/setup.py +++ b/huaweicloud-sdk-vpn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpn" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 7032b505df..f88fc52ad4 100644 --- a/huaweicloud-sdk-waf/setup.py +++ b/huaweicloud-sdk-waf/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkwaf" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index 9ae3486874..0474aa4a0e 100644 --- a/huaweicloud-sdk-workspace/setup.py +++ b/huaweicloud-sdk-workspace/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspace" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspaceapp/requirements.txt b/huaweicloud-sdk-workspaceapp/requirements.txt index 117d903422..f899c8b9d8 100644 --- a/huaweicloud-sdk-workspaceapp/requirements.txt +++ b/huaweicloud-sdk-workspaceapp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.71 \ No newline at end of file +huaweicloudsdkcore >= 3.1.72 \ No newline at end of file diff --git a/huaweicloud-sdk-workspaceapp/setup.py b/huaweicloud-sdk-workspaceapp/setup.py index a529959f5e..52a909803b 100644 --- a/huaweicloud-sdk-workspaceapp/setup.py +++ b/huaweicloud-sdk-workspaceapp/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspaceapp" -VERSION = "3.1.71" +VERSION = "3.1.72" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.71"] +REQUIRES = ["huaweicloudsdkcore>=3.1.72"] OPTIONS = { 'bdist_wheel': {